summaryrefslogtreecommitdiff
path: root/platform/qt/qt.cmake
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2018-06-06 14:15:15 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2018-06-15 19:33:27 +0300
commita5ef72a0516495ebc1663e015ca93d4178e9d091 (patch)
treeb807518f624b659a7dc681657815ce047e508b36 /platform/qt/qt.cmake
parent144c167274f629523d265b9a54326ff544133413 (diff)
downloadqtlocation-mapboxgl-a5ef72a0516495ebc1663e015ca93d4178e9d091.tar.gz
Use a shared scheduler on threads without a default scheduler
Render threads won't have a scheduler, so we create one that is shared by all the maps rendering at this thread. The bad side effect of this is that we need to wake up the render thread to process events. Mapbox GL should get rid of processing events on the render thread. This solution is a workaround.
Diffstat (limited to 'platform/qt/qt.cmake')
-rw-r--r--platform/qt/qt.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/qt/qt.cmake b/platform/qt/qt.cmake
index 989618a59a..dda15174fb 100644
--- a/platform/qt/qt.cmake
+++ b/platform/qt/qt.cmake
@@ -65,8 +65,10 @@ add_library(qmapboxgl SHARED
platform/qt/src/qmapboxgl_map_observer.hpp
platform/qt/src/qmapboxgl_map_renderer.cpp
platform/qt/src/qmapboxgl_map_renderer.hpp
- platform/qt/src/qmapboxgl_renderer_backend.hpp
platform/qt/src/qmapboxgl_renderer_backend.cpp
+ platform/qt/src/qmapboxgl_renderer_backend.hpp
+ platform/qt/src/qmapboxgl_scheduler.cpp
+ platform/qt/src/qmapboxgl_scheduler.hpp
platform/default/mbgl/util/default_styles.hpp
)