diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-06-12 17:25:44 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-06-12 18:08:18 +0200 |
commit | ce91218b420cd9e57a3367679300f8ba4027d6c5 (patch) | |
tree | ce4298d2f35793bf788d3834b07f63c611846641 /src/mbgl/gfx | |
parent | d37212421955bb144f67905fbd1e7321a74b465b (diff) | |
download | qtlocation-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.hpp | 3 |
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, |