Searched refs:GpuMemoryTracker (Results 1 - 13 of 13) sorted by path

/frameworks/base/libs/hwui/
H A DAndroid.mk65 GpuMemoryTracker.cpp \
H A DGpuMemoryTracker.cpp21 #include <GpuMemoryTracker.h>
47 static std::unordered_set<GpuMemoryTracker*> gObjectSet;
49 void GpuMemoryTracker::notifySizeChanged(int newSize) {
55 void GpuMemoryTracker::startTrackingObject() {
62 void GpuMemoryTracker::stopTrackingObject() {
70 void GpuMemoryTracker::onGLContextCreated() {
76 void GpuMemoryTracker::onGLContextDestroyed() {
86 void GpuMemoryTracker::dump() {
92 void GpuMemoryTracker::dump(std::ostream& stream) {
102 int GpuMemoryTracker
[all...]
H A DGpuMemoryTracker.h41 class GpuMemoryTracker { class in namespace:android::uirenderer
55 GpuMemoryTracker(GpuObjectType type) : mType(type) { function in class:android::uirenderer::GpuMemoryTracker
60 ~GpuMemoryTracker() {
H A DLayer.cpp39 : GpuMemoryTracker(GpuObjectType::Layer)
H A DLayer.h27 #include <GpuMemoryTracker.h>
58 class Layer : public VirtualLightRefBase, GpuMemoryTracker {
H A DOpenGLRenderer.cpp17 #include <GpuMemoryTracker.h>
H A DTexture.h20 #include "GpuMemoryTracker.h"
35 class Texture : public GpuMemoryTracker {
38 : GpuMemoryTracker(GpuObjectType::Texture)
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.cpp38 : GpuMemoryTracker(GpuObjectType::OffscreenBuffer)
H A DOffscreenBufferPool.h20 #include <GpuMemoryTracker.h>
43 class OffscreenBuffer : GpuMemoryTracker {
H A DRenderState.cpp16 #include <GpuMemoryTracker.h>
43 GpuMemoryTracker::onGLContextCreated();
112 GpuMemoryTracker::onGLContextDestroyed();
/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.cpp17 #include <GpuMemoryTracker.h>
548 GpuMemoryTracker::onFrameCompleted();
/frameworks/base/libs/hwui/tests/unit/
H A DGpuMemoryTrackerTests.cpp19 #include <GpuMemoryTracker.h>
31 class TestGPUObject : public GpuMemoryTracker {
33 TestGPUObject() : GpuMemoryTracker(GpuObjectType::Texture) {}
51 TEST(GpuMemoryTracker, sizeCheck) {
54 GpuMemoryTracker::onGLContextCreated();
55 ASSERT_EQ(0, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture));
56 ASSERT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture));
59 ASSERT_EQ(1, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture));
61 ASSERT_EQ(500, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture));
63 ASSERT_EQ(1000, GpuMemoryTracker
[all...]
H A DOffscreenBufferPoolTests.cpp137 EXPECT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::OffscreenBuffer));
150 EXPECT_EQ(40, GpuMemoryTracker::getInstanceCount(GpuObjectType::OffscreenBuffer));
154 EXPECT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::OffscreenBuffer));

Completed in 317 milliseconds