diff options
Diffstat (limited to 'src/mbgl/gfx/context.hpp')
-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, |