diff options
author | Chris Loer <chris.loer@gmail.com> | 2018-02-14 10:11:45 -0800 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2018-02-14 10:55:16 -0800 |
commit | a11b277bc19bdf142dcc85927f4e7d7acaeb3ff1 (patch) | |
tree | 5e925e08c516725fd630d4d548c37f863765364d /platform/darwin | |
parent | f7217799631dc3e49c59836540f7de5f951f605a (diff) | |
download | qtlocation-mapboxgl-a11b277bc19bdf142dcc85927f4e7d7acaeb3ff1.tar.gz |
[core] Rename "onLowMemory" to "reduceMemoryUse".
Android still calls "reduceMemoryUse" only while handling a low memory event.
iOS, on the other hand, calls "reduceMemoryUse" every time it enters the background.
Diffstat (limited to 'platform/darwin')
-rw-r--r-- | platform/darwin/src/MGLRendererFrontend.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLRendererFrontend.h b/platform/darwin/src/MGLRendererFrontend.h index 76904d008b..2df67ca4e4 100644 --- a/platform/darwin/src/MGLRendererFrontend.h +++ b/platform/darwin/src/MGLRendererFrontend.h @@ -56,9 +56,9 @@ public: return renderer.get(); } - void onLowMemory() { + void reduceMemoryUse() { if (!renderer) return; - renderer->onLowMemory(); + renderer->reduceMemoryUse(); } private: |