summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-06-12 17:25:44 +0200
committerKonstantin Käfer <mail@kkaefer.com>2019-06-12 18:08:18 +0200
commitce91218b420cd9e57a3367679300f8ba4027d6c5 (patch)
treece4298d2f35793bf788d3834b07f63c611846641 /src/mbgl/gfx
parentd37212421955bb144f67905fbd1e7321a74b465b (diff)
downloadqtlocation-mapboxgl-ce91218b420cd9e57a3367679300f8ba4027d6c5.tar.gz
[core] don't call glFlush on every frame
Diffstat (limited to 'src/mbgl/gfx')
-rw-r--r--src/mbgl/gfx/context.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/gfx/context.hpp b/src/mbgl/gfx/context.hpp
index 64eddf3e5a..2c7cb14899 100644
--- a/src/mbgl/gfx/context.hpp
+++ b/src/mbgl/gfx/context.hpp
@@ -38,6 +38,9 @@ public:
// Called at the end of a frame.
virtual void performCleanup() = 0;
+ // Called when the app receives a memory warning and before it goes to the background.
+ virtual void reduceMemoryUsage() = 0;
+
public:
virtual std::unique_ptr<OffscreenTexture>
createOffscreenTexture(Size,