[general] moving ios and android project under ./platform folder

This commit is contained in:
Petr Pokorny
2020-12-20 12:38:56 +01:00
parent 8e759a51e4
commit 41f0be34e7
9877 changed files with 141 additions and 2889 deletions

View File

@@ -0,0 +1,37 @@
#pragma once
namespace mbgl {
namespace gfx {
struct RenderingStats {
RenderingStats() = default;
bool isZero() const;
int numDrawCalls;
int numActiveTextures;
int numCreatedTextures;
int numBuffers;
int numFrameBuffers;
int memTextures;
int memIndexBuffers;
int memVertexBuffers;
RenderingStats& operator+=(const RenderingStats& right);
};
inline RenderingStats& RenderingStats::operator+=(const RenderingStats& r) {
numDrawCalls += r.numDrawCalls;
numActiveTextures += r.numActiveTextures;
numCreatedTextures += r.numCreatedTextures;
numBuffers += r.numBuffers;
numFrameBuffers += r.numFrameBuffers;
memTextures += r.memTextures;
memIndexBuffers += r.memIndexBuffers;
memVertexBuffers += r.memVertexBuffers;
return *this;
}
} // namespace gfx
} // namespace mbgl