Make pixelRatio constant across a Map object lifetime
also moves framebuffer size out of TransformState into its own object
This commit is contained in:
@@ -141,11 +141,10 @@ TEST_P(HeadlessTest, render) {
|
||||
|
||||
std::promise<void> promise;
|
||||
|
||||
HeadlessView view(display, width, height, pixelRatio);
|
||||
HeadlessView view(display, pixelRatio, width, height);
|
||||
DefaultFileSource fileSource(nullptr);
|
||||
Map map(view, fileSource, MapMode::Still);
|
||||
|
||||
map.resize(width, height, pixelRatio);
|
||||
map.setClasses(classes);
|
||||
map.setStyleJSON(style, "test/suite");
|
||||
map.setLatLngZoom(mbgl::LatLng(latitude, longitude), zoom);
|
||||
|
||||
Reference in New Issue
Block a user