diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-09-11 11:04:53 +0300 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-09-22 23:33:56 +0300 |
commit | 15a47d116a0fc15d249b37574fcd932ce88909df (patch) | |
tree | 520327b215324b19cf30ecd207fad651b7b83fba /platform/android/src/android_renderer_frontend.hpp | |
parent | 347d7c19c0a70f91252163b14e37583eea83fdd5 (diff) | |
download | qtlocation-mapboxgl-15a47d116a0fc15d249b37574fcd932ce88909df.tar.gz |
[android] schedule work on the gl thread using GLSurfaceView#queueEvent
Diffstat (limited to 'platform/android/src/android_renderer_frontend.hpp')
-rw-r--r-- | platform/android/src/android_renderer_frontend.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/android/src/android_renderer_frontend.hpp b/platform/android/src/android_renderer_frontend.hpp index f2e951bd05..57bfd62b26 100644 --- a/platform/android/src/android_renderer_frontend.hpp +++ b/platform/android/src/android_renderer_frontend.hpp @@ -30,13 +30,15 @@ class AndroidRendererBackend; class AndroidRendererFrontend : public RendererFrontend { public: - using InvalidateCallback = std::function<void ()>; + using RequestRenderCallback = std::function<void ()>; + using RequestProcessingCallback = std::function<void ()>; AndroidRendererFrontend(float pixelRatio, mbgl::FileSource&, mbgl::Scheduler&, std::string programCacheDir, - InvalidateCallback); + RequestRenderCallback, + RequestProcessingCallback); ~AndroidRendererFrontend() override; void reset() override; @@ -46,6 +48,7 @@ public: // Called from OpenGL Thread void render(); + void process(); // Feature querying std::vector<Feature> queryRenderedFeatures(const ScreenCoordinate&, const RenderedQueryOptions&) const; |