diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-05-15 14:24:26 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-05-19 18:15:33 +0300 |
commit | 0e45138547e906a0a3d918e9ace262e53d35fb46 (patch) | |
tree | e12a7f16cc440b48f1ce5563340ac15876c31def /src/mbgl/renderer/bucket.hpp | |
parent | 52a69044e8a5dfc1df518673e83909b184040615 (diff) | |
download | qtlocation-mapboxgl-0e45138547e906a0a3d918e9ace262e53d35fb46.tar.gz |
[core] RenderLayerSymbolInterface is not used in CrossTileSymbolIndex
Diffstat (limited to 'src/mbgl/renderer/bucket.hpp')
-rw-r--r-- | src/mbgl/renderer/bucket.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mbgl/renderer/bucket.hpp b/src/mbgl/renderer/bucket.hpp index a0d2895b70..92f2c76e4e 100644 --- a/src/mbgl/renderer/bucket.hpp +++ b/src/mbgl/renderer/bucket.hpp @@ -13,6 +13,8 @@ class UploadPass; } // namespace gfx class RenderLayer; +class CrossTileSymbolLayerIndex; +class OverscaledTileID; class PatternDependency; using PatternLayerMap = std::map<std::string, PatternDependency>; @@ -48,7 +50,15 @@ public: // Implementations of this class check at least that this bucket has // the same layer type with the given layer, but extra checks are also // possible. - virtual bool supportsLayer(const style::Layer::Impl&) const = 0; + virtual bool supportsLayer(const style::Layer::Impl&) const = 0; + // The following methods are implemented by buckets that require cross-tile indexing and placement. + + // Returns a pair, the first element of which is a bucket cross-tile id + // on success call; `0` otherwise. The second element is `true` if + // the bucket was originally registered; `false` otherwise. + virtual std::pair<uint32_t, bool> registerAtCrossTileIndex(CrossTileSymbolLayerIndex&, const OverscaledTileID&, uint32_t&) { + return std::make_pair(0u, false); + } protected: Bucket() = default; |