From a5ef72a0516495ebc1663e015ca93d4178e9d091 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Wed, 6 Jun 2018 14:15:15 +0300 Subject: 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. --- platform/qt/qt.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'platform/qt/qt.cmake') 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 ) -- cgit v1.2.1