Add asynchronous deletion option for Android renderer backend (#4287)

This commit is contained in:
Adrian Cojocaru
2026-05-13 17:07:13 +03:00
committed by GitHub
parent 6b9b342bf3
commit bccfcddfcf
9 changed files with 68 additions and 8 deletions

View File

@@ -92,6 +92,8 @@ public:
AndroidRendererBackend& getRendererBackend() const { return *backend; }
const TaggedScheduler& getThreadPool() const { return threadPool; }
void SetAsyncRendererCleanup(bool value) { asyncRendererCleanup = value; }
protected:
// Called from the GL Thread //
@@ -156,6 +158,7 @@ private:
bool framebufferSizeChanged = false;
bool swapBehaviorFlush = false;
bool asyncRendererCleanup = false;
mapbox::base::WeakPtrFactory<Scheduler> weakFactory{this};
// Do not add members here, see `WeakPtrFactory`