summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2015-08-20 16:11:32 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2015-08-25 14:39:49 -0400
commit4540c3c0e8c80de4f0074c1c4328840ebf708470 (patch)
treeed131f161734d494655b05fe65b20c44d15f6daa /android
parent15a5532d76c387142db60913c4ce0876d4450eb8 (diff)
downloadqtlocation-mapboxgl-4540c3c0e8c80de4f0074c1c4328840ebf708470.tar.gz
View::swap -> View::beforeRender View::afterRender
To be able to resize the framebuffer on the map thread in HeadlessView.
Diffstat (limited to 'android')
-rw-r--r--android/cpp/native_map_view.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/android/cpp/native_map_view.cpp b/android/cpp/native_map_view.cpp
index d7c40ba5a1..0cb68408a4 100644
--- a/android/cpp/native_map_view.cpp
+++ b/android/cpp/native_map_view.cpp
@@ -159,7 +159,11 @@ void NativeMapView::invalidate() {
detach_jni_thread(vm, &env, detach);
}
-void NativeMapView::swap() {
+void NativeMapView::beforeRender() {
+ // no-op
+}
+
+void NativeMapView::afterRender() {
mbgl::Log::Debug(mbgl::Event::Android, "NativeMapView::swap");
if ((display != EGL_NO_DISPLAY) && (surface != EGL_NO_SURFACE)) {