[core] remove tile cache size setter
This commit is contained in:
committed by
Ivo van Dongen
parent
88b2fbd4ec
commit
20189db67f
@@ -157,7 +157,6 @@ public:
|
||||
AnnotationIDs queryPointAnnotations(const ScreenBox&);
|
||||
|
||||
// Memory
|
||||
void setSourceTileCacheSize(size_t);
|
||||
void onLowMemory();
|
||||
|
||||
// Debug
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -59,7 +59,6 @@ public:
|
||||
const TransformState& transformState,
|
||||
const RenderedQueryOptions& options) const;
|
||||
|
||||
void setSourceTileCacheSize(size_t);
|
||||
void onLowMemory();
|
||||
|
||||
void dumpDebugLogs() const;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user