summaryrefslogtreecommitdiff
path: root/platform/qt/include/qmapboxgl.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2018-01-25 02:20:09 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2018-02-09 20:28:54 +0200
commit4f8a23cd8fe920ca7009e0ca6689d0c5bcb8c7eb (patch)
tree7e5784f10471f378fb3dae685af2b6e65e4732ee /platform/qt/include/qmapboxgl.hpp
parentbb00f558fb31f000eefa1bb825bb580445cedc10 (diff)
downloadqtlocation-mapboxgl-4f8a23cd8fe920ca7009e0ca6689d0c5bcb8c7eb.tar.gz
[qt] Expose an interface to create a renderer on a separated thread
If not called, it will render on the main thread as usual.
Diffstat (limited to 'platform/qt/include/qmapboxgl.hpp')
-rw-r--r--platform/qt/include/qmapboxgl.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/qt/include/qmapboxgl.hpp b/platform/qt/include/qmapboxgl.hpp
index 8b319b0453..a1758ba6e6 100644
--- a/platform/qt/include/qmapboxgl.hpp
+++ b/platform/qt/include/qmapboxgl.hpp
@@ -226,6 +226,11 @@ public:
void setFilter(const QString &layer, const QVariant &filter);
+ // When rendering on a different thread,
+ // should be called on this thread
+ void createRenderer();
+ void destroyRenderer();
+
public slots:
void render();
void connectionEstablished();