diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-11-12 14:58:13 -0800 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-11-12 14:58:13 -0800 |
commit | f2bc00267cd6430f85763beeb03b98109ff7b023 (patch) | |
tree | c589e1f6cc0759d5806af3b01a5c4d3773232deb /platform/glfw/glfw_view.hpp | |
parent | 9f3cc7b7075b29595dec394733b10fbd26f274e4 (diff) | |
download | qtlocation-mapboxgl-upstream/feature-state-changesets.tar.gz |
Prototype ChangeSets based approach to feature state.upstream/feature-state-changesets
- A change set keeps track of all feature state changes for a source between two render.
- The change set is applied to the TilePyramid to update the full feature state map, and generate the map of update features for the single frame.
The Front end renderer may throttle updates. This results in some changesets not making it to the renderer, and data in that set being dropped entirely.
To workaround this the front end renderers would need to accumulate the changes, or some other way to collect all change sets between throttled frames.
Diffstat (limited to 'platform/glfw/glfw_view.hpp')
-rw-r--r-- | platform/glfw/glfw_view.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/glfw/glfw_view.hpp b/platform/glfw/glfw_view.hpp index d5acf697f7..9a784660e3 100644 --- a/platform/glfw/glfw_view.hpp +++ b/platform/glfw/glfw_view.hpp @@ -125,6 +125,7 @@ private: mbgl::util::RunLoop runLoop; mbgl::util::Timer frameTick; + mbgl::optional<mbgl::FeatureIdentifier> hoveredId; GLFWwindow *window = nullptr; bool dirty = false; |