summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/style_diff.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-06-01 08:26:24 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-06-05 19:38:08 -0700
commit5d5f9405b4f20ea208916ade17fe085c240ce8c2 (patch)
tree6ddbece98f34fc9045c3c3d8537b99e4fdbfa5e3 /src/mbgl/renderer/style_diff.hpp
parent9dfc2d924d440560adb2db13c758b2c5b3b7dd47 (diff)
downloadqtlocation-mapboxgl-5d5f9405b4f20ea208916ade17fe085c240ce8c2.tar.gz
[core] Named members for diff before/after
Diffstat (limited to 'src/mbgl/renderer/style_diff.hpp')
-rw-r--r--src/mbgl/renderer/style_diff.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mbgl/renderer/style_diff.hpp b/src/mbgl/renderer/style_diff.hpp
index ef788c380c..a5b42fc662 100644
--- a/src/mbgl/renderer/style_diff.hpp
+++ b/src/mbgl/renderer/style_diff.hpp
@@ -11,11 +11,18 @@
namespace mbgl {
template <class T>
+class StyleChange {
+public:
+ T before;
+ T after;
+};
+
+template <class T>
class StyleDifference {
public:
std::unordered_map<std::string, T> added;
std::unordered_map<std::string, T> removed;
- std::unordered_map<std::string, std::array<T, 2>> changed;
+ std::unordered_map<std::string, StyleChange<T>> changed;
};
using ImmutableImage = Immutable<style::Image::Impl>;