diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-01-25 02:20:09 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-02-09 20:28:54 +0200 |
commit | 4f8a23cd8fe920ca7009e0ca6689d0c5bcb8c7eb (patch) | |
tree | 7e5784f10471f378fb3dae685af2b6e65e4732ee /platform/qt/include/qmapboxgl.hpp | |
parent | bb00f558fb31f000eefa1bb825bb580445cedc10 (diff) | |
download | qtlocation-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.hpp | 5 |
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(); |