diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-12-23 14:54:31 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-01-06 12:03:48 -0800 |
commit | b6894dd4fc24f93c77b1ad39f466997f1525f2bd (patch) | |
tree | 0fe83574bf67fc232704d66f00d46a4cb30b3539 /src/mbgl/map/update.hpp | |
parent | 4617d18e37cfaeec6ee18b4f3a17a1248e9a28ad (diff) | |
download | qtlocation-mapboxgl-b6894dd4fc24f93c77b1ad39f466997f1525f2bd.tar.gz |
[core] Unify update and render into a single step
Update only when, and just prior to, rendering, giving no opportunity to interleave unexpected state changes. This means that every time anything about the state is changed, we'll have to attempt a render to reflect that change. In the case of continuous rendering this has happened before this change as well, but it leaves no room for time to pass between an update and a render. In the case of still image rendering, a render call will only actually paint something to the view when all resources have been loaded.
Diffstat (limited to 'src/mbgl/map/update.hpp')
-rw-r--r-- | src/mbgl/map/update.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbgl/map/update.hpp b/src/mbgl/map/update.hpp index dc383b819e..74ab22dd8a 100644 --- a/src/mbgl/map/update.hpp +++ b/src/mbgl/map/update.hpp @@ -6,10 +6,9 @@ namespace mbgl { enum class Update { Nothing = 0, + Repaint = 1 << 0, Classes = 1 << 2, RecalculateStyle = 1 << 3, - RenderStill = 1 << 4, - Repaint = 1 << 5, AnnotationStyle = 1 << 6, AnnotationData = 1 << 7, Layout = 1 << 8 |