move worker to MapContext
This commit is contained in:
committed by
John Firebaugh
parent
67fa80f5e9
commit
f272d13dea
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user