[render-test] Add resource usage tracking to gfx context

This commit is contained in:
Mikko Pulkki
2019-10-15 12:09:21 +03:00
committed by Mikko Pulkki
parent c8576e089f
commit fb062bb23e
16 changed files with 176 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
#include <mbgl/gfx/rendering_stats.hpp>
namespace mbgl {
namespace gfx {
bool RenderingStats::isZero() const {
return numActiveTextures == 0 && numCreatedTextures == 0 && numBuffers == 0 && numFrameBuffers == 0 &&
memTextures == 0 && memIndexBuffers == 0 && memVertexBuffers == 0;
}
} // namespace gfx
} // namespace mbgl