Searched refs:GpuMemoryTracker (Results 1 – 6 of 6) sorted by relevance
30 class TestGPUObject : public GpuMemoryTracker {32 TestGPUObject() : GpuMemoryTracker(GpuObjectType::Texture) {} in TestGPUObject()46 TEST(GpuMemoryTracker, sizeCheck) { in TEST() argument49 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 …]
44 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 …]
42 class GpuMemoryTracker {56 explicit GpuMemoryTracker(GpuObjectType type) : mType(type) { in GpuMemoryTracker() function61 ~GpuMemoryTracker() { in ~GpuMemoryTracker()
207 "GpuMemoryTracker.cpp",
29 GpuMemoryTracker::onGpuContextCreated(); in onContextCreated()36 GpuMemoryTracker::onGpuContextDestroyed(); in onContextDestroyed()
527 GpuMemoryTracker::onFrameCompleted(); in draw()