[core] Rename "onLowMemory" to "reduceMemoryUse".

Android still calls "reduceMemoryUse" only while handling a low memory event.
iOS, on the other hand, calls "reduceMemoryUse" every time it enters the background.
This commit is contained in:
Chris Loer
2018-02-14 10:11:45 -08:00
committed by Chris Loer
parent f721779963
commit a11b277bc1
25 changed files with 36 additions and 36 deletions

View File

@@ -76,8 +76,8 @@ std::vector<Feature> RenderCustomGeometrySource::querySourceFeatures(const Sourc
return tilePyramid.querySourceFeatures(options);
}
void RenderCustomGeometrySource::onLowMemory() {
tilePyramid.onLowMemory();
void RenderCustomGeometrySource::reduceMemoryUse() {
tilePyramid.reduceMemoryUse();
}
void RenderCustomGeometrySource::dumpDebugLogs() const {

View File

@@ -33,7 +33,7 @@ public:
std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const final;
void onLowMemory() final;
void reduceMemoryUse() final;
void dumpDebugLogs() const final;
private:

View File

@@ -94,8 +94,8 @@ std::vector<Feature> RenderGeoJSONSource::querySourceFeatures(const SourceQueryO
return tilePyramid.querySourceFeatures(options);
}
void RenderGeoJSONSource::onLowMemory() {
tilePyramid.onLowMemory();
void RenderGeoJSONSource::reduceMemoryUse() {
tilePyramid.reduceMemoryUse();
}
void RenderGeoJSONSource::dumpDebugLogs() const {

View File

@@ -37,7 +37,7 @@ public:
std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const final;
void onLowMemory() final;
void reduceMemoryUse() final;
void dumpDebugLogs() const final;
private:

View File

@@ -37,7 +37,7 @@ public:
std::vector<Feature> querySourceFeatures(const SourceQueryOptions&) const final;
void onLowMemory() final {
void reduceMemoryUse() final {
}
void dumpDebugLogs() const final;

View File

@@ -155,8 +155,8 @@ std::vector<Feature> RenderRasterDEMSource::querySourceFeatures(const SourceQuer
return {};
}
void RenderRasterDEMSource::onLowMemory() {
tilePyramid.onLowMemory();
void RenderRasterDEMSource::reduceMemoryUse() {
tilePyramid.reduceMemoryUse();
}
void RenderRasterDEMSource::dumpDebugLogs() const {

View File

@@ -33,7 +33,7 @@ public:
std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const final;
void onLowMemory() final;
void reduceMemoryUse() final;
void dumpDebugLogs() const final;
private:

View File

@@ -85,8 +85,8 @@ std::vector<Feature> RenderRasterSource::querySourceFeatures(const SourceQueryOp
return {};
}
void RenderRasterSource::onLowMemory() {
tilePyramid.onLowMemory();
void RenderRasterSource::reduceMemoryUse() {
tilePyramid.reduceMemoryUse();
}
void RenderRasterSource::dumpDebugLogs() const {

View File

@@ -33,7 +33,7 @@ public:
std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const final;
void onLowMemory() final;
void reduceMemoryUse() final;
void dumpDebugLogs() const final;
private:

View File

@@ -88,8 +88,8 @@ std::vector<Feature> RenderVectorSource::querySourceFeatures(const SourceQueryOp
return tilePyramid.querySourceFeatures(options);
}
void RenderVectorSource::onLowMemory() {
tilePyramid.onLowMemory();
void RenderVectorSource::reduceMemoryUse() {
tilePyramid.reduceMemoryUse();
}
void RenderVectorSource::dumpDebugLogs() const {

View File

@@ -33,7 +33,7 @@ public:
std::vector<Feature>
querySourceFeatures(const SourceQueryOptions&) const final;
void onLowMemory() final;
void reduceMemoryUse() final;
void dumpDebugLogs() const final;
private: