drive Android rendering from the main thread via invalidate() calls
This commit is contained in:
committed by
John Firebaugh
parent
84e2ea886d
commit
dca42018d2
@@ -16,6 +16,7 @@ extern std::string dataPath;
|
||||
extern std::string apkPath;
|
||||
extern std::string androidRelease;
|
||||
|
||||
extern jmethodID onInvalidateId;
|
||||
extern jmethodID onMapChangedId;
|
||||
extern jmethodID onFpsChangedId;
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ public:
|
||||
void enableFps(bool enable);
|
||||
void updateFps();
|
||||
|
||||
void onInvalidate();
|
||||
|
||||
private:
|
||||
EGLConfig chooseConfig(const EGLConfig configs[], EGLint numConfigs);
|
||||
|
||||
@@ -76,6 +78,7 @@ private:
|
||||
mbgl::DefaultFileSource fileSource;
|
||||
mbgl::Map map;
|
||||
|
||||
std::atomic_flag clean = ATOMIC_FLAG_INIT;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user