Home
last modified time | relevance | path

Searched refs:GpuObjectType (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DGpuMemoryTrackerTests.cpp33 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()
DTextureCacheTests.cpp30 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()
DOffscreenBufferPoolTests.cpp228 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/
DGpuMemoryTracker.h34 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;
DGpuMemoryTracker.cpp33 #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()
DLayer.cpp28 : GpuMemoryTracker(GpuObjectType::Layer) in Layer()
DTexture.h58 : GpuMemoryTracker(GpuObjectType::Texture) in Texture()
/frameworks/base/libs/hwui/renderstate/
DOffscreenBufferPool.cpp38 : GpuMemoryTracker(GpuObjectType::OffscreenBuffer) in OffscreenBuffer()