MCPcopy Create free account
hub / github.com/comaps/comaps / SetUsed

Method SetUsed

libs/drape/utils/gpu_mem_tracker.cpp:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void GPUMemTracker::SetUsed(std::string const & tag, uint32_t id, uint32_t size)
79{
80 std::lock_guard<std::mutex> g(m_mutex);
81 TAlocUsedMem & node = m_memTracker[make_pair(tag, id)];
82 node.second = size;
83 ASSERT_LESS_OR_EQUAL(node.second, node.first, ("Can't use more than allocated"));
84}
85
86void GPUMemTracker::RemoveDeallocated(std::string const & tag, uint32_t id)
87{

Callers 3

UploadDataMethod · 0.80
ResizeMethod · 0.80
CreateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected