[core] private OffscreenView implementation

This commit is contained in:
Konstantin Käfer
2017-02-24 16:03:31 +01:00
parent e3500c1f79
commit 9ca9adf69c
11 changed files with 86 additions and 57 deletions

View File

@@ -27,7 +27,7 @@ TEST(API, RenderWithoutCallback) {
ThreadPool threadPool(4);
std::unique_ptr<Map> map =
std::make_unique<Map>(backend, view.size, 1, fileSource, threadPool, MapMode::Still);
std::make_unique<Map>(backend, view.getSize(), 1, fileSource, threadPool, MapMode::Still);
map->renderStill(view, nullptr);
// Force Map thread to join.
@@ -51,7 +51,7 @@ TEST(API, RenderWithoutStyle) {
StubFileSource fileSource;
ThreadPool threadPool(4);
Map map(backend, view.size, 1, fileSource, threadPool, MapMode::Still);
Map map(backend, view.getSize(), 1, fileSource, threadPool, MapMode::Still);
std::exception_ptr error;
map.renderStill(view, [&](std::exception_ptr error_) {