summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/context.hpp
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/gl/context.hpp
parentd37212421955bb144f67905fbd1e7321a74b465b (diff)
downloadqtlocation-mapboxgl-ce91218b420cd9e57a3367679300f8ba4027d6c5.tar.gz
[core] don't call glFlush on every frame
Diffstat (limited to 'src/mbgl/gl/context.hpp')
-rw-r--r--src/mbgl/gl/context.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/gl/context.hpp b/src/mbgl/gl/context.hpp
index 80278718d1..70f12e5a8d 100644
--- a/src/mbgl/gl/context.hpp
+++ b/src/mbgl/gl/context.hpp
@@ -96,6 +96,8 @@ public:
// Only call this while the OpenGL context is exclusive to this thread.
void performCleanup() override;
+ void reduceMemoryUsage() override;
+
// Drain pools and remove abandoned objects, in preparation for destroying the store.
// Only call this while the OpenGL context is exclusive to this thread.
void reset();