move worker to MapContext

This commit is contained in:
Konstantin Käfer
2015-03-24 10:59:31 +01:00
committed by John Firebaugh
parent 67fa80f5e9
commit f272d13dea
4 changed files with 13 additions and 11 deletions

View File

@@ -11,6 +11,7 @@
#include <mbgl/util/std.hpp>
#include <mbgl/util/uv_detail.hpp>
#include <mbgl/util/worker.hpp>
#include <mbgl/util/texture_pool.hpp>
namespace mbgl {
@@ -24,4 +25,9 @@ MapContext::MapContext(Environment& env)
painter(util::make_unique<Painter>(*spriteAtlas, *glyphAtlas, *lineAtlas)) {
}
Worker& MapContext::getWorker() {
assert(workers);
return *workers;
}
}