Searched refs:GpuMemoryTracker (Results 1 – 13 of 13) sorted by relevance
/frameworks/base/libs/hwui/tests/unit/ |
D | GpuMemoryTrackerTests.cpp | 31 class TestGPUObject : public GpuMemoryTracker { 33 TestGPUObject() : GpuMemoryTracker(GpuObjectType::Texture) {} in TestGPUObject() 51 TEST(GpuMemoryTracker, sizeCheck) { in TEST() argument 54 GpuMemoryTracker::onGpuContextCreated(); in TEST() 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() [all …]
|
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 | 137 EXPECT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::OffscreenBuffer)); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 150 EXPECT_EQ(40, GpuMemoryTracker::getInstanceCount(GpuObjectType::OffscreenBuffer)); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 154 EXPECT_EQ(0, GpuMemoryTracker::getInstanceCount(GpuObjectType::OffscreenBuffer)); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
|
/frameworks/base/libs/hwui/ |
D | GpuMemoryTracker.cpp | 47 static std::unordered_set<GpuMemoryTracker*> gObjectSet; 49 void GpuMemoryTracker::notifySizeChanged(int newSize) { in notifySizeChanged() 55 void GpuMemoryTracker::startTrackingObject() { in startTrackingObject() 62 void GpuMemoryTracker::stopTrackingObject() { in stopTrackingObject() 70 void GpuMemoryTracker::onGpuContextCreated() { in onGpuContextCreated() 76 void GpuMemoryTracker::onGpuContextDestroyed() { in onGpuContextDestroyed() 86 void GpuMemoryTracker::dump() { in dump() 92 void GpuMemoryTracker::dump(std::ostream& stream) { in dump() 102 int GpuMemoryTracker::getInstanceCount(GpuObjectType type) { in getInstanceCount() 106 int GpuMemoryTracker::getTotalSize(GpuObjectType type) { in getTotalSize() [all …]
|
D | GpuMemoryTracker.h | 42 class GpuMemoryTracker { 56 explicit GpuMemoryTracker(GpuObjectType type) : mType(type) { in GpuMemoryTracker() function 61 ~GpuMemoryTracker() { in ~GpuMemoryTracker()
|
D | Texture.h | 49 class Texture : public GpuMemoryTracker { 58 : GpuMemoryTracker(GpuObjectType::Texture) in Texture()
|
D | Layer.cpp | 28 : GpuMemoryTracker(GpuObjectType::Layer) in Layer()
|
D | Layer.h | 39 class Layer : public VirtualLightRefBase, GpuMemoryTracker {
|
D | Android.mk | 82 GpuMemoryTracker.cpp \
|
/frameworks/base/libs/hwui/renderstate/ |
D | RenderState.cpp | 49 GpuMemoryTracker::onGpuContextCreated(); in onGLContextCreated() 87 GpuMemoryTracker::onGpuContextDestroyed(); in onGLContextDestroyed() 93 GpuMemoryTracker::onGpuContextCreated(); in onVkContextCreated() 105 GpuMemoryTracker::onGpuContextDestroyed(); in onVkContextDestroyed()
|
D | OffscreenBufferPool.h | 43 class OffscreenBuffer : GpuMemoryTracker {
|
D | OffscreenBufferPool.cpp | 39 : GpuMemoryTracker(GpuObjectType::OffscreenBuffer) in OffscreenBuffer()
|
/frameworks/base/libs/hwui/renderthread/ |
D | CanvasContext.cpp | 489 GpuMemoryTracker::onFrameCompleted(); in draw()
|