Home
last modified time | relevance | path

Searched refs:GpuMemoryTracker (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DGpuMemoryTrackerTests.cpp31 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 …]
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.cpp137 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/
DGpuMemoryTracker.cpp47 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 …]
DGpuMemoryTracker.h42 class GpuMemoryTracker {
56 explicit GpuMemoryTracker(GpuObjectType type) : mType(type) { in GpuMemoryTracker() function
61 ~GpuMemoryTracker() { in ~GpuMemoryTracker()
DTexture.h49 class Texture : public GpuMemoryTracker {
58 : GpuMemoryTracker(GpuObjectType::Texture) in Texture()
DLayer.cpp28 : GpuMemoryTracker(GpuObjectType::Layer) in Layer()
DLayer.h39 class Layer : public VirtualLightRefBase, GpuMemoryTracker {
DAndroid.mk82 GpuMemoryTracker.cpp \
/frameworks/base/libs/hwui/renderstate/
DRenderState.cpp49 GpuMemoryTracker::onGpuContextCreated(); in onGLContextCreated()
87 GpuMemoryTracker::onGpuContextDestroyed(); in onGLContextDestroyed()
93 GpuMemoryTracker::onGpuContextCreated(); in onVkContextCreated()
105 GpuMemoryTracker::onGpuContextDestroyed(); in onVkContextDestroyed()
DOffscreenBufferPool.h43 class OffscreenBuffer : GpuMemoryTracker {
DOffscreenBufferPool.cpp39 : GpuMemoryTracker(GpuObjectType::OffscreenBuffer) in OffscreenBuffer()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.cpp489 GpuMemoryTracker::onFrameCompleted(); in draw()