Make pixelRatio constant across a Map object lifetime
also moves framebuffer size out of TransformState into its own object
This commit is contained in:
@@ -11,9 +11,9 @@ using namespace mbgl;
|
||||
|
||||
TEST(MapContext, DoubleStyleLoad) {
|
||||
std::shared_ptr<HeadlessDisplay> display = std::make_shared<HeadlessDisplay>();
|
||||
HeadlessView view(display, 512, 512, 1);
|
||||
HeadlessView view(display, 1, 512, 512);
|
||||
DefaultFileSource fileSource(nullptr);
|
||||
MapData data(MapMode::Continuous);
|
||||
MapData data(MapMode::Continuous, view.getPixelRatio());
|
||||
|
||||
util::Thread<MapContext> context({"Map", util::ThreadType::Map, util::ThreadPriority::Regular}, view, fileSource, data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user