summaryrefslogtreecommitdiff
path: root/platform/android/src/android_renderer_backend.hpp
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-09-13 14:34:05 +0300
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-09-22 23:33:56 +0300
commit67285f3a95f74966324fc59f271ba8b6b763b2b5 (patch)
tree444065837cebe710f54429cbfc61180c1e6f8ae8 /platform/android/src/android_renderer_backend.hpp
parent6211db69680e08a1f463ec098ed843ca49a859b2 (diff)
downloadqtlocation-mapboxgl-67285f3a95f74966324fc59f271ba8b6b763b2b5.tar.gz
[android] Re-initialise renderer, backend and context when the android system destroyed the underlying gl resources
Diffstat (limited to 'platform/android/src/android_renderer_backend.hpp')
-rwxr-xr-xplatform/android/src/android_renderer_backend.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/android/src/android_renderer_backend.hpp b/platform/android/src/android_renderer_backend.hpp
index 8dbc1f2be8..c5c552459f 100755
--- a/platform/android/src/android_renderer_backend.hpp
+++ b/platform/android/src/android_renderer_backend.hpp
@@ -13,6 +13,10 @@ public:
void updateAssumedState() override;
mbgl::Size getFramebufferSize() const override;
+ // Ensures the current context is not
+ // cleaned up when destroyed
+ void markContextLost();
+
void updateViewPort();
void resizeFramebuffer(int width, int height);