| 194 | } |
| 195 | |
| 196 | void Corkscrew::setCachingEnabled(bool enabled) { |
| 197 | if (!enabled && mCachingEnabled) { |
| 198 | // Caching was enabled, now disabling - clear the cache |
| 199 | mTileCache.clear(); |
| 200 | mCacheInitialized = false; |
| 201 | } |
| 202 | mCachingEnabled = enabled; |
| 203 | } |
| 204 | |
| 205 | void Corkscrew::initializeCache() const { |
| 206 | if (!mCacheInitialized && mCachingEnabled) { |
no test coverage detected