summaryrefslogtreecommitdiff
path: root/platform/default/include
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-06-14 16:53:09 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-06-18 16:26:51 +0300
commit78eeffe1717a37a91e6c59681421a20c52a4d003 (patch)
treeb81e50aba9dcf531a96c9f5a25d1f723b3f72cee /platform/default/include
parent59e7b9a8780e282cf90ede7ae8e3b1affe1e684e (diff)
downloadqtlocation-mapboxgl-78eeffe1717a37a91e6c59681421a20c52a4d003.tar.gz
[core] Clear/Invalidate should also work on non-tile resources
These methods were only affecting tiles, but they should really work on every resource like style, glyphs, etc.
Diffstat (limited to 'platform/default/include')
-rw-r--r--platform/default/include/mbgl/storage/offline_database.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/default/include/mbgl/storage/offline_database.hpp b/platform/default/include/mbgl/storage/offline_database.hpp
index f9c03dc35d..59f41a723f 100644
--- a/platform/default/include/mbgl/storage/offline_database.hpp
+++ b/platform/default/include/mbgl/storage/offline_database.hpp
@@ -56,12 +56,12 @@ public:
// are the latest version. This is more efficient than cleaning the
// cache because if the tile is considered valid after the server
// lookup, it will not get downloaded again.
- std::exception_ptr invalidateTileCache();
+ std::exception_ptr invalidateAmbientCache();
// Clear the tile cache, freeing resources. This operation can be
// potentially slow because it will trigger a VACUUM on SQLite,
// forcing the database to move pages on the filesystem.
- std::exception_ptr clearTileCache();
+ std::exception_ptr clearAmbientCache();
expected<OfflineRegions, std::exception_ptr> listRegions();