Searched refs:GpuObjectType (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/libs/hwui/tests/unit/ |
D | GpuMemoryTrackerTests.cpp | 33 TestGPUObject() : GpuMemoryTracker(GpuObjectType::Texture) {} in TestGPUObject() 55 ASSERT_EQ(0, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture)); in TEST() 56 ASSERT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture)); in TEST() 59 ASSERT_EQ(1, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture)); in TEST() 61 ASSERT_EQ(500, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture)); in TEST() 63 ASSERT_EQ(1000, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture)); in TEST() 65 ASSERT_EQ(300, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture)); in TEST() 67 ASSERT_EQ(0, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture)); in TEST() 68 ASSERT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture)); in TEST()
|
D | TextureCacheTests.cpp | 30 int initialCount = GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 36 ASSERT_EQ(GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture), initialCount + 1); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 38 ASSERT_EQ(GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture), initialCount); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
|
D | OffscreenBufferPoolTests.cpp | 228 EXPECT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::OffscreenBuffer)); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 241 EXPECT_EQ(40, GpuMemoryTracker::getInstanceCount(GpuObjectType::OffscreenBuffer)); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 245 EXPECT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::OffscreenBuffer)); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
|
/frameworks/base/libs/hwui/ |
D | GpuMemoryTracker.h | 34 enum class GpuObjectType { enum 44 GpuObjectType objectType() { return mType; } in objectType() 51 static int getInstanceCount(GpuObjectType type); 52 static int getTotalSize(GpuObjectType type); 56 explicit GpuMemoryTracker(GpuObjectType type) : mType(type) { in GpuMemoryTracker() 73 GpuObjectType mType;
|
D | GpuMemoryTracker.cpp | 33 #define NUM_TYPES static_cast<int>(GpuObjectType::TypeCount) 102 int GpuMemoryTracker::getInstanceCount(GpuObjectType type) { in getInstanceCount() 106 int GpuMemoryTracker::getTotalSize(GpuObjectType type) { in getTotalSize() 124 if (obj->objectType() == GpuObjectType::Texture) { in onFrameCompleted()
|
D | Layer.cpp | 28 : GpuMemoryTracker(GpuObjectType::Layer) in Layer()
|
D | Texture.h | 58 : GpuMemoryTracker(GpuObjectType::Texture) in Texture()
|
/frameworks/base/libs/hwui/renderstate/ |
D | OffscreenBufferPool.cpp | 38 : GpuMemoryTracker(GpuObjectType::OffscreenBuffer) in OffscreenBuffer()
|