summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2015-09-24 17:18:30 +1000
committerLeith Bade <leith@mapbox.com>2015-09-24 18:04:26 +1000
commit85ec3eb0a5739c4f7b160d82715d3be51e10a02b (patch)
tree1524ad5c8786d0ba0487f6a05f5e46d05e42f4ae /include
parente5ff4638b38c497cf37cffde30b46d9af54cc60d (diff)
downloadqtlocation-mapboxgl-85ec3eb0a5739c4f7b160d82715d3be51e10a02b.tar.gz
Refactor Android render loop to limit frame rate to 60 FPS
Move expensive cache size calulation to initialisation Fix setGestureInProgress bug Renamed several functions to match current usage Refactor map updates to reduce GPS marker lag Fixes #1676 Fixes #2290 Fixes #2396
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/android/native_map_view.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/mbgl/android/native_map_view.hpp b/include/mbgl/android/native_map_view.hpp
index fe619ba6f2..0908f75630 100644
--- a/include/mbgl/android/native_map_view.hpp
+++ b/include/mbgl/android/native_map_view.hpp
@@ -50,7 +50,7 @@ public:
void enableFps(bool enable);
void updateFps();
- void onInvalidate();
+ void renderSync();
void resizeView(int width, int height);
void resizeFramebuffer(int width, int height);
@@ -93,8 +93,6 @@ private:
std::shared_ptr<mbgl::SQLiteCache> fileCache;
std::unique_ptr<mbgl::DefaultFileSource> fileSource;
std::unique_ptr<mbgl::Map> map;
-
- std::atomic_flag clean = ATOMIC_FLAG_INIT;
};
}
}