[android] remove manual ref counting on activation/deactivation

This commit is contained in:
Ivo van Dongen
2017-07-13 12:38:48 +03:00
committed by Ivo van Dongen
parent 9ebf727f56
commit b5c0bf1b8d
2 changed files with 0 additions and 9 deletions

View File

@@ -117,9 +117,6 @@ gl::ProcAddress NativeMapView::initializeExtension(const char* name) {
}
void NativeMapView::activate() {
if (active++) {
return;
}
oldDisplay = eglGetCurrentDisplay();
oldReadSurface = eglGetCurrentSurface(EGL_READ);
@@ -148,10 +145,6 @@ void NativeMapView::activate() {
* From mbgl::RendererBackend.
*/
void NativeMapView::deactivate() {
if (--active) {
return;
}
assert(vm != nullptr);
if (oldContext != context && oldContext != EGL_NO_CONTEXT) {