Searched refs:GpuObjectType (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/libs/hwui/
H A DGpuMemoryTracker.h33 enum class GpuObjectType { class in namespace:android::uirenderer
43 GpuObjectType objectType() { return mType; }
50 static int getInstanceCount(GpuObjectType type);
51 static int getTotalSize(GpuObjectType type);
55 GpuMemoryTracker(GpuObjectType type) : mType(type) {
72 GpuObjectType mType;
H A DGpuMemoryTracker.cpp33 #define NUM_TYPES static_cast<int>(GpuObjectType::TypeCount)
102 int GpuMemoryTracker::getInstanceCount(GpuObjectType type) {
106 int GpuMemoryTracker::getTotalSize(GpuObjectType type) {
124 if (obj->objectType() == GpuObjectType::Texture) {
H A DTexture.h38 : GpuMemoryTracker(GpuObjectType::Texture)
H A DLayer.cpp39 : GpuMemoryTracker(GpuObjectType::Layer)
/frameworks/base/libs/hwui/tests/unit/
H A DGpuMemoryTrackerTests.cpp33 TestGPUObject() : GpuMemoryTracker(GpuObjectType::Texture) {}
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::getTotalSize(GpuObjectType::Texture));
65 ASSERT_EQ(300, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture));
67 ASSERT_EQ(0, GpuMemoryTracker::getTotalSize(GpuObjectType::Texture));
68 ASSERT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture));
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));
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.cpp38 : GpuMemoryTracker(GpuObjectType::OffscreenBuffer)

Completed in 133 milliseconds