[render] manage backendscope in renderer frontend
This commit is contained in:
committed by
Ivo van Dongen
parent
f69997a19c
commit
e75fdf1075
@@ -90,7 +90,7 @@ int main(int argc, char *argv[]) {
|
||||
OffscreenView view(backend.getContext(), { static_cast<uint32_t>(width * pixelRatio),
|
||||
static_cast<uint32_t>(height * pixelRatio) });
|
||||
ThreadPool threadPool(4);
|
||||
AsyncRendererFrontend rendererFrontend(std::make_unique<Renderer>(backend, pixelRatio, fileSource, threadPool), view);
|
||||
AsyncRendererFrontend rendererFrontend(std::make_unique<Renderer>(backend, pixelRatio, fileSource, threadPool), backend, view);
|
||||
Map map(rendererFrontend, MapObserver::nullObserver(), mbgl::Size { width, height }, pixelRatio, fileSource, threadPool, MapMode::Still);
|
||||
|
||||
if (style_path.find("://") == std::string::npos) {
|
||||
|
||||
Reference in New Issue
Block a user