[android] - unify has surface state handling

This commit is contained in:
tobrun
2019-04-15 11:58:46 +02:00
committed by Tobrun
parent 425553646b
commit d89b13f955
8 changed files with 29 additions and 46 deletions

View File

@@ -94,10 +94,11 @@ private:
void onSurfaceChanged(JNIEnv&, jint width, jint height);
void onSurfaceDestroyed(JNIEnv&);
private:
// Called on either Main or GL thread //
void onSurfaceDestroyed(JNIEnv&);
void onRendererReset(JNIEnv&);
private:
jni::WeakReference<jni::Object<MapRenderer>, jni::EnvAttachingDeleter> javaPeer;