Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/unit/
DGpuMemoryTrackerTests.cpp30 class TestGPUObject : public GpuMemoryTracker {
32 TestGPUObject() : GpuMemoryTracker(GpuObjectType::Texture) {} in TestGPUObject()
46 TEST(GpuMemoryTracker, sizeCheck) { in TEST() argument
49 GpuMemoryTracker::onGpuContextCreated(); in TEST()
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()
[all …]
/frameworks/base/libs/hwui/
DGpuMemoryTracker.cpp44 static std::unordered_set<GpuMemoryTracker*> gObjectSet;
46 void GpuMemoryTracker::notifySizeChanged(int newSize) { in notifySizeChanged()
52 void GpuMemoryTracker::startTrackingObject() { in startTrackingObject()
59 void GpuMemoryTracker::stopTrackingObject() { in stopTrackingObject()
66 void GpuMemoryTracker::onGpuContextCreated() { in onGpuContextCreated()
74 void GpuMemoryTracker::onGpuContextDestroyed() { in onGpuContextDestroyed()
84 void GpuMemoryTracker::dump() { in dump()
90 void GpuMemoryTracker::dump(std::ostream& stream) { in dump()
100 int GpuMemoryTracker::getInstanceCount(GpuObjectType type) { in getInstanceCount()
104 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()
DAndroid.bp207 "GpuMemoryTracker.cpp",
/frameworks/base/libs/hwui/renderstate/
DRenderState.cpp29 GpuMemoryTracker::onGpuContextCreated(); in onContextCreated()
36 GpuMemoryTracker::onGpuContextDestroyed(); in onContextDestroyed()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.cpp527 GpuMemoryTracker::onFrameCompleted(); in draw()