[render-test] Implement fps benchmarking tests (#15803)

This commit is contained in:
Mikko Pulkki
2019-10-22 12:13:55 +03:00
committed by GitHub
parent bb0e5ffb2c
commit 0ca96fd8a4
27 changed files with 424 additions and 124 deletions

View File

@@ -483,6 +483,7 @@
"mbgl/util/indexed_tuple.hpp": "include/mbgl/util/indexed_tuple.hpp",
"mbgl/util/interpolate.hpp": "include/mbgl/util/interpolate.hpp",
"mbgl/util/logging.hpp": "include/mbgl/util/logging.hpp",
"mbgl/util/monotonic_timer.hpp": "include/mbgl/util/monotonic_timer.hpp",
"mbgl/util/noncopyable.hpp": "include/mbgl/util/noncopyable.hpp",
"mbgl/util/optional.hpp": "include/mbgl/util/optional.hpp",
"mbgl/util/platform.hpp": "include/mbgl/util/platform.hpp",

View File

@@ -583,6 +583,10 @@ std::unique_ptr<gfx::CommandEncoder> Context::createCommandEncoder() {
return std::make_unique<gl::CommandEncoder>(*this);
}
void Context::finish() {
MBGL_CHECK_ERROR(glFinish());
}
void Context::draw(const gfx::DrawMode& drawMode,
std::size_t indexOffset,
std::size_t indexLength) {

View File

@@ -92,6 +92,8 @@ public:
std::size_t indexOffset,
std::size_t indexLength);
void finish();
// Actually remove the objects we marked as abandoned with the above methods.
// Only call this while the OpenGL context is exclusive to this thread.
void performCleanup() override;