View::swap -> View::beforeRender View::afterRender

To be able to resize the framebuffer on the map thread
in HeadlessView.
This commit is contained in:
Mike Morris
2015-08-20 16:11:32 -04:00
parent 15a5532d76
commit 4540c3c0e8
10 changed files with 47 additions and 14 deletions

View File

@@ -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)) {