summaryrefslogtreecommitdiff
path: root/include/mbgl/platform/default/glfw_view.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/platform/default/glfw_view.hpp')
-rw-r--r--include/mbgl/platform/default/glfw_view.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mbgl/platform/default/glfw_view.hpp b/include/mbgl/platform/default/glfw_view.hpp
index ae5bf340d5..802f61b0c0 100644
--- a/include/mbgl/platform/default/glfw_view.hpp
+++ b/include/mbgl/platform/default/glfw_view.hpp
@@ -2,6 +2,8 @@
#define MBGL_COMMON_GLFW_VIEW
#include <mbgl/mbgl.hpp>
+#include <mbgl/util/run_loop.hpp>
+#include <mbgl/util/timer.hpp>
#ifdef MBGL_USE_GLES2
#define GLFW_INCLUDE_ES2
@@ -92,6 +94,9 @@ private:
std::function<void()> changeStyleCallback;
+ mbgl::util::RunLoop runLoop;
+ mbgl::util::Timer frameTick;
+
GLFWwindow *window = nullptr;
std::atomic_flag clean = ATOMIC_FLAG_INIT;
};