[core] change std::array<uint16_t, 2> to mbgl::Size
This commit is contained in:
@@ -21,12 +21,12 @@ TEST(API, RenderWithoutCallback) {
|
||||
util::RunLoop loop;
|
||||
|
||||
HeadlessBackend backend;
|
||||
OffscreenView view(backend.getContext(), {{ 128, 512 }});
|
||||
OffscreenView view(backend.getContext(), { 128, 512 });
|
||||
StubFileSource fileSource;
|
||||
ThreadPool threadPool(4);
|
||||
|
||||
std::unique_ptr<Map> map =
|
||||
std::make_unique<Map>(backend, view.getSize(), 1, fileSource, threadPool, MapMode::Still);
|
||||
std::make_unique<Map>(backend, view.size, 1, fileSource, threadPool, MapMode::Still);
|
||||
map->renderStill(view, nullptr);
|
||||
|
||||
// Force Map thread to join.
|
||||
@@ -46,11 +46,11 @@ TEST(API, RenderWithoutStyle) {
|
||||
util::RunLoop loop;
|
||||
|
||||
HeadlessBackend backend;
|
||||
OffscreenView view(backend.getContext(), {{ 128, 512 }});
|
||||
OffscreenView view(backend.getContext(), { 128, 512 });
|
||||
StubFileSource fileSource;
|
||||
ThreadPool threadPool(4);
|
||||
|
||||
Map map(backend, view.getSize(), 1, fileSource, threadPool, MapMode::Still);
|
||||
Map map(backend, view.size, 1, fileSource, threadPool, MapMode::Still);
|
||||
|
||||
std::exception_ptr error;
|
||||
map.renderStill(view, [&](std::exception_ptr error_) {
|
||||
|
||||
Reference in New Issue
Block a user