Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] remove manual ref counting on activation/deactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
ivovandongen committed Jul 18, 2017
1 parent e3c602c commit 7089d6b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions platform/android/src/native_map_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ gl::ProcAddress NativeMapView::initializeExtension(const char* name) {
}

void NativeMapView::activate() {
if (active++) {
return;
}

oldDisplay = eglGetCurrentDisplay();
oldReadSurface = eglGetCurrentSurface(EGL_READ);
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 0 additions & 2 deletions platform/android/src/native_map_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,6 @@ class NativeMapView : public View, public RendererBackend, public MapObserver {
std::shared_ptr<mbgl::ThreadPool> threadPool;
std::unique_ptr<mbgl::Map> map;
mbgl::EdgeInsets insets;

unsigned active = 0;
};

} // namespace android
Expand Down

0 comments on commit 7089d6b

Please sign in to comment.