Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/unit/
DGpuMemoryTrackerTests.cpp32 TestGPUObject() : GpuMemoryTracker(GpuObjectType::Texture) {} in TestGPUObject()
50 ASSERT_EQ(0, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture)); in TEST()
51 ASSERT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture)); in TEST()
54 ASSERT_EQ(1, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture)); in TEST()
56 ASSERT_EQ(500, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture)); in TEST()
58 ASSERT_EQ(1000, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture)); in TEST()
60 ASSERT_EQ(300, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture)); in TEST()
62 ASSERT_EQ(0, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture)); in TEST()
63 ASSERT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture)); in 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.cpp32 #define NUM_TYPES static_cast<int>(GpuObjectType::TypeCount)
100 int GpuMemoryTracker::getInstanceCount(GpuObjectType type) { in getInstanceCount()
104 int GpuMemoryTracker::getTotalSize(GpuObjectType type) { in getTotalSize()