summaryrefslogtreecommitdiff
path: root/platform/android/src/native_map_view.hpp
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-09-11 11:04:53 +0300
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-09-22 23:33:56 +0300
commit15a47d116a0fc15d249b37574fcd932ce88909df (patch)
tree520327b215324b19cf30ecd207fad651b7b83fba /platform/android/src/native_map_view.hpp
parent347d7c19c0a70f91252163b14e37583eea83fdd5 (diff)
downloadqtlocation-mapboxgl-15a47d116a0fc15d249b37574fcd932ce88909df.tar.gz
[android] schedule work on the gl thread using GLSurfaceView#queueEvent
Diffstat (limited to 'platform/android/src/native_map_view.hpp')
-rwxr-xr-xplatform/android/src/native_map_view.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/platform/android/src/native_map_view.hpp b/platform/android/src/native_map_view.hpp
index 0539a29b46..7376f82c24 100755
--- a/platform/android/src/native_map_view.hpp
+++ b/platform/android/src/native_map_view.hpp
@@ -73,7 +73,10 @@ public:
void onSourceChanged(mbgl::style::Source&) override;
// Signal the view system, we want to redraw
- void invalidate();
+ void requestRender();
+
+ // Request processing on the GL Thread
+ void requestProcessing();
// JNI //
@@ -81,9 +84,10 @@ public:
void onSurfaceCreated(jni::JNIEnv&);
// Called on OpenGL Thread
- void render(jni::JNIEnv&);
+ void process(jni::JNIEnv&);
- void update(jni::JNIEnv&);
+ // Called on OpenGL Thread
+ void render(jni::JNIEnv&);
void resizeView(jni::JNIEnv&, int, int);