Inline getWorker()

This commit is contained in:
John Firebaugh
2015-04-23 15:31:56 -07:00
parent 3bf0bf9538
commit bb7c453b3e
2 changed files with 1 additions and 7 deletions

View File

@@ -122,11 +122,6 @@ void MapContext::setStyleJSON(const std::string& json, const std::string& base)
loadStyleJSON(json, base);
}
Worker& MapContext::getWorker() {
assert(workers);
return *workers;
}
util::ptr<Sprite> MapContext::getSprite() {
assert(Environment::currentlyOn(ThreadType::Map));
const float pixelRatio = transformState.getPixelRatio();
@@ -168,7 +163,7 @@ void MapContext::updateTiles() {
assert(Environment::currentlyOn(ThreadType::Map));
if (!style) return;
for (const auto& source : style->sources) {
source->update(data, transformState, getWorker(), style, *glyphAtlas, *glyphStore, *spriteAtlas,
source->update(data, transformState, *workers, style, *glyphAtlas, *glyphStore, *spriteAtlas,
getSprite(), *texturePool, [this]() {
assert(Environment::currentlyOn(ThreadType::Map));
triggerUpdate();

View File

@@ -63,7 +63,6 @@ public:
void onLowMemory();
private:
Worker& getWorker();
util::ptr<Sprite> getSprite();
void updateTiles();