Fix build

This commit is contained in:
John Firebaugh
2015-04-20 13:59:04 -07:00
parent d67f862400
commit 7bd735220d
4 changed files with 6 additions and 5 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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");

View File

@@ -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");