diff options
Diffstat (limited to 'src/mbgl/renderer/render_layer.hpp')
-rw-r--r-- | src/mbgl/renderer/render_layer.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mbgl/renderer/render_layer.hpp b/src/mbgl/renderer/render_layer.hpp index 4931893271..6a10898797 100644 --- a/src/mbgl/renderer/render_layer.hpp +++ b/src/mbgl/renderer/render_layer.hpp @@ -28,18 +28,20 @@ public: Immutable<style::LayerProperties> layerProperties; }; +class SortKeyRange { +public: + float sortKey; + size_t start; + size_t end; +}; + class LayerPlacementData { public: - friend bool operator<(const LayerPlacementData& lhs, const LayerPlacementData& rhs) { - return lhs.sortKey < rhs.sortKey; - } std::reference_wrapper<Bucket> bucket; std::reference_wrapper<const RenderTile> tile; std::shared_ptr<FeatureIndex> featureIndex; bool firstInBucket; - float sortKey; - size_t symbolInstanceStart; - size_t symbolInstanceEnd; + optional<SortKeyRange> sortKeyRange; }; class LayerPrepareParameters { |