summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/cpp/native_map_view.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/android/cpp/native_map_view.cpp b/android/cpp/native_map_view.cpp
index 1d25442a55..845d10ea67 100644
--- a/android/cpp/native_map_view.cpp
+++ b/android/cpp/native_map_view.cpp
@@ -124,12 +124,16 @@ void NativeMapView::deactivate() {
}
}
-void NativeMapView::invalidate(std::function<void()> render) {
+void NativeMapView::invalidate() {
mbgl::Log::Debug(mbgl::Event::Android, "NativeMapView::invalidate");
- if ((display != EGL_NO_DISPLAY) && (surface != EGL_NO_SURFACE)) {
- render();
+ // TODO: inform the main thread that it must call map->renderSync();
+}
+void NativeMapView::swap() {
+ mbgl::Log::Debug(mbgl::Event::Android, "NativeMapView::invalidate");
+
+ if ((display != EGL_NO_DISPLAY) && (surface != EGL_NO_SURFACE)) {
if (!eglSwapBuffers(display, surface)) {
mbgl::Log::Error(mbgl::Event::OpenGL, "eglSwapBuffers() returned error %d",
eglGetError());