Fix build
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <mbgl/storage/sqlite_cache.hpp>
|
||||
#include <mbgl/storage/network_status.hpp>
|
||||
#include <mbgl/util/geo.hpp>
|
||||
#include <mbgl/util/constants.hpp>
|
||||
|
||||
#import "MGLTypes.h"
|
||||
#import "NSString+MGLAdditions.h"
|
||||
@@ -627,8 +628,8 @@ mbgl::DefaultFileSource *mbglFileSource = nullptr;
|
||||
CGFloat zoomFactor = mbglMap->getMaxZoom() - mbglMap->getMinZoom() + 1;
|
||||
CGFloat cpuFactor = (CGFloat)[[NSProcessInfo processInfo] processorCount];
|
||||
CGFloat memoryFactor = (CGFloat)[[NSProcessInfo processInfo] physicalMemory] / 1000 / 1000 / 1000;
|
||||
CGFloat sizeFactor = ((CGFloat)mbglMap->getState().getWidth() / mbgl::util::tileSize) *
|
||||
((CGFloat)mbglMap->getState().getHeight() / mbgl::util::tileSize);
|
||||
CGFloat sizeFactor = ((CGFloat)mbglMap->getWidth() / mbgl::util::tileSize) *
|
||||
((CGFloat)mbglMap->getHeight() / mbgl::util::tileSize);
|
||||
|
||||
NSUInteger cacheSize = zoomFactor * cpuFactor * memoryFactor * sizeFactor * 0.5;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ TEST(API, RepeatedRender) {
|
||||
|
||||
Map map(view, fileSource);
|
||||
|
||||
map.start(Map::Mode::Still);
|
||||
map.start(MapMode::Still);
|
||||
|
||||
{
|
||||
view.resize(128, 512, 1);
|
||||
|
||||
@@ -18,7 +18,7 @@ TEST(API, SetStyle) {
|
||||
|
||||
Map map(view, fileSource);
|
||||
|
||||
map.start(Map::Mode::Still);
|
||||
map.start(MapMode::Still);
|
||||
|
||||
map.setStyleJSON("invalid", "test/suite");
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ TEST_P(HeadlessTest, render) {
|
||||
DefaultFileSource fileSource(nullptr);
|
||||
Map map(view, fileSource);
|
||||
|
||||
map.start(Map::Mode::Still);
|
||||
map.start(MapMode::Still);
|
||||
|
||||
map.setClasses(classes);
|
||||
map.setStyleJSON(style, "test/suite");
|
||||
|
||||
Reference in New Issue
Block a user