diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-04-17 23:46:46 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-04-18 15:45:27 -0700 |
commit | d86e7323cc85a2e9038af71047dbf577c35d80b5 (patch) | |
tree | 18724acf1247848c0d949d9843619df3bb3b8870 /platform/ios/benchmark | |
parent | 1818576fe699f2fc8d63266b0b64c8a743592fbc (diff) | |
download | qtlocation-mapboxgl-d86e7323cc85a2e9038af71047dbf577c35d80b5.tar.gz |
[ios] Deprecated -[MGLMapView emptyMemoryCache]
Deprecated -[MGLMapView emptyMemoryCache]. Switched ios-bench to a redeclared -didReceiveMemoryWarning as a workaround.
Fixes #1833.
Diffstat (limited to 'platform/ios/benchmark')
-rw-r--r-- | platform/ios/benchmark/MBXBenchViewController.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/ios/benchmark/MBXBenchViewController.mm b/platform/ios/benchmark/MBXBenchViewController.mm index 07975de491..5768872160 100644 --- a/platform/ios/benchmark/MBXBenchViewController.mm +++ b/platform/ios/benchmark/MBXBenchViewController.mm @@ -16,6 +16,9 @@ /** Returns whether the map view is currently loading or processing any assets required to render the map */ - (BOOL)isFullyLoaded; +/** Empties the in-memory tile cache. */ +- (void)didReceiveMemoryWarning; + @end @interface MBXBenchViewController () <MGLMapViewDelegate> @@ -142,7 +145,7 @@ static const int benchmarkDuration = 200; // frames { // Start the benchmarking timer. state = State::WarmingUp; - [self.mapView emptyMemoryCache]; + [self.mapView didReceiveMemoryWarning]; NSLog(@"- Warming up for %d frames...", warmupDuration); [mapView setNeedsGLDisplay]; } |