[core] remove tile cache size setter

This commit is contained in:
Ivo van Dongen
2017-06-26 10:06:47 -07:00
committed by Ivo van Dongen
parent 88b2fbd4ec
commit 20189db67f
14 changed files with 0 additions and 42 deletions

View File

@@ -157,7 +157,6 @@ public:
AnnotationIDs queryPointAnnotations(const ScreenBox&);
// Memory
void setSourceTileCacheSize(size_t);
void onLowMemory();
// Debug

View File

@@ -69,10 +69,6 @@ std::vector<Feature> RenderAnnotationSource::querySourceFeatures(const SourceQue
return {};
}
void RenderAnnotationSource::setCacheSize(size_t size) {
tilePyramid.setCacheSize(size);
}
void RenderAnnotationSource::onLowMemory() {
tilePyramid.onLowMemory();
}

View File

@@ -32,7 +32,6 @@ public:
std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const final;
void setCacheSize(size_t) final;
void onLowMemory() final;
void dumpDebugLogs() const final;

View File

@@ -92,8 +92,6 @@ public:
std::unique_ptr<RenderStyle> renderStyle;
bool cameraMutated = false;
size_t sourceCacheSize;
bool loading = false;
util::AsyncTask asyncInvalidate;
@@ -823,15 +821,6 @@ bool Map::isFullyLoaded() const {
return impl->style->impl->isLoaded() && impl->renderStyle && impl->renderStyle->isLoaded();
}
void Map::setSourceTileCacheSize(size_t size) {
if (size != impl->sourceCacheSize) {
impl->sourceCacheSize = size;
if (!impl->renderStyle) return;
impl->renderStyle->setSourceTileCacheSize(size);
impl->backend.invalidate();
}
}
void Map::onLowMemory() {
if (impl->painter) {
BackendScope guard(impl->backend);

View File

@@ -68,7 +68,6 @@ public:
virtual std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const = 0;
virtual void setCacheSize(size_t) = 0;
virtual void onLowMemory() = 0;
virtual void dumpDebugLogs() const = 0;

View File

@@ -417,12 +417,6 @@ std::vector<Feature> RenderStyle::queryRenderedFeatures(const ScreenLineString&
return result;
}
void RenderStyle::setSourceTileCacheSize(size_t size) {
for (const auto& entry : renderSources) {
entry.second->setCacheSize(size);
}
}
void RenderStyle::onLowMemory() {
for (const auto& entry : renderSources) {
entry.second->onLowMemory();

View File

@@ -59,7 +59,6 @@ public:
const TransformState& transformState,
const RenderedQueryOptions& options) const;
void setSourceTileCacheSize(size_t);
void onLowMemory();
void dumpDebugLogs() const;

View File

@@ -84,10 +84,6 @@ std::vector<Feature> RenderGeoJSONSource::querySourceFeatures(const SourceQueryO
return tilePyramid.querySourceFeatures(options);
}
void RenderGeoJSONSource::setCacheSize(size_t size) {
tilePyramid.setCacheSize(size);
}
void RenderGeoJSONSource::onLowMemory() {
tilePyramid.onLowMemory();
}

View File

@@ -36,7 +36,6 @@ public:
std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const final;
void setCacheSize(size_t) final;
void onLowMemory() final;
void dumpDebugLogs() const final;

View File

@@ -42,8 +42,6 @@ public:
std::vector<Feature> querySourceFeatures(const SourceQueryOptions&) const final;
void setCacheSize(size_t) final {
}
void onLowMemory() final {
}
void dumpDebugLogs() const final;

View File

@@ -80,10 +80,6 @@ std::vector<Feature> RenderRasterSource::querySourceFeatures(const SourceQueryOp
return {};
}
void RenderRasterSource::setCacheSize(size_t size) {
tilePyramid.setCacheSize(size);
}
void RenderRasterSource::onLowMemory() {
tilePyramid.onLowMemory();
}

View File

@@ -32,7 +32,6 @@ public:
std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const final;
void setCacheSize(size_t) final;
void onLowMemory() final;
void dumpDebugLogs() const final;

View File

@@ -85,10 +85,6 @@ std::vector<Feature> RenderVectorSource::querySourceFeatures(const SourceQueryOp
return tilePyramid.querySourceFeatures(options);
}
void RenderVectorSource::setCacheSize(size_t size) {
tilePyramid.setCacheSize(size);
}
void RenderVectorSource::onLowMemory() {
tilePyramid.onLowMemory();
}

View File

@@ -32,7 +32,6 @@ public:
std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const final;
void setCacheSize(size_t) final;
void onLowMemory() final;
void dumpDebugLogs() const final;