summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx/context.hpp
diff options
context:
space:
mode:
authorMikko Pulkki <mikko.pulkki@mapbox.com>2019-10-15 12:09:21 +0300
committerMikko Pulkki <55925868+mpulkki-mapbox@users.noreply.github.com>2019-10-30 14:32:27 +0200
commitfb062bb23e66af3d5a889b767aae380884b259e5 (patch)
tree4cb52d0a85e5eebbef4a340dce767c938e6052fa /src/mbgl/gfx/context.hpp
parentc8576e089f12438a2384a4fe822af650e94ace74 (diff)
downloadqtlocation-mapboxgl-fb062bb23e66af3d5a889b767aae380884b259e5.tar.gz
[render-test] Add resource usage tracking to gfx context
Diffstat (limited to 'src/mbgl/gfx/context.hpp')
-rw-r--r--src/mbgl/gfx/context.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mbgl/gfx/context.hpp b/src/mbgl/gfx/context.hpp
index 2c7cb14899..fe0851be11 100644
--- a/src/mbgl/gfx/context.hpp
+++ b/src/mbgl/gfx/context.hpp
@@ -1,12 +1,13 @@
#pragma once
#include <mbgl/gfx/backend.hpp>
-#include <mbgl/gfx/renderbuffer.hpp>
#include <mbgl/gfx/command_encoder.hpp>
#include <mbgl/gfx/draw_scope.hpp>
#include <mbgl/gfx/program.hpp>
-#include <mbgl/gfx/types.hpp>
+#include <mbgl/gfx/renderbuffer.hpp>
+#include <mbgl/gfx/rendering_stats.hpp>
#include <mbgl/gfx/texture.hpp>
+#include <mbgl/gfx/types.hpp>
namespace mbgl {
@@ -85,6 +86,8 @@ public:
public:
virtual std::unique_ptr<CommandEncoder> createCommandEncoder() = 0;
+ virtual const RenderingStats& renderingStats() const = 0;
+
#if not defined(NDEBUG)
public:
virtual void visualizeStencilBuffer() = 0;