summaryrefslogtreecommitdiff
path: root/platform/qt/src/qmapboxgl_p.hpp
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-06-28 16:32:00 -0700
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-07-18 10:45:12 +0200
commitee205ca9ca3f808fa2cc16295ebde0a7c3867381 (patch)
treef66be15105c449570eebe846723596a5dbaf9d99 /platform/qt/src/qmapboxgl_p.hpp
parent2e9fb06941720f7cc22fa8d8d54aa2d0b3fd71c0 (diff)
downloadqtlocation-mapboxgl-ee205ca9ca3f808fa2cc16295ebde0a7c3867381.tar.gz
[qt] rendering interface changes
Diffstat (limited to 'platform/qt/src/qmapboxgl_p.hpp')
-rw-r--r--platform/qt/src/qmapboxgl_p.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/platform/qt/src/qmapboxgl_p.hpp b/platform/qt/src/qmapboxgl_p.hpp
index d89234531b..b9c1124551 100644
--- a/platform/qt/src/qmapboxgl_p.hpp
+++ b/platform/qt/src/qmapboxgl_p.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "qmapboxgl.hpp"
+#include "qmapboxgl_renderer_frontend_p.hpp"
#include <mbgl/map/map.hpp>
#include <mbgl/map/backend.hpp>
@@ -22,14 +23,17 @@ public:
mbgl::Size framebufferSize() const;
+
// mbgl::View implementation.
void bind() final;
// mbgl::Backend implementation.
void updateAssumedState() final;
- void invalidate() final;
void activate() final {}
void deactivate() final {}
+ mbgl::BackendScope::ScopeType getScopeType() const final {
+ return mbgl::BackendScope::ScopeType::Implicit;
+ }
// mbgl::MapObserver implementation.
void onCameraWillChange(mbgl::MapObserver::CameraChangeMode) final;
@@ -55,6 +59,7 @@ public:
std::shared_ptr<mbgl::DefaultFileSource> fileSourceObj;
std::shared_ptr<mbgl::ThreadPool> threadPool;
std::unique_ptr<mbgl::Map> mapObj;
+ std::unique_ptr<QMapboxGLRendererFrontend> frontend;
bool dirty { false };
@@ -63,6 +68,8 @@ private:
public slots:
void connectionEstablished();
+ void invalidate();
+ void render();
signals:
void needsRendering();