diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-04-10 14:25:09 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-04-11 15:55:25 +0300 |
commit | 6157d6ed745b88999b6550cfae2d6ae2daa8e6c1 (patch) | |
tree | 3cbc2fd69e21553222a7ec25660504cf5c02e6e4 /src/mbgl/tile/tile.hpp | |
parent | 46b3cc95a73d988dbe915010f443c54d874a8ade (diff) | |
download | qtlocation-mapboxgl-6157d6ed745b88999b6550cfae2d6ae2daa8e6c1.tar.gz |
[core] Update `style::LayerProperties` instances in tiles
Diffstat (limited to 'src/mbgl/tile/tile.hpp')
-rw-r--r-- | src/mbgl/tile/tile.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/tile/tile.hpp b/src/mbgl/tile/tile.hpp index 50fd67bedd..651bafe277 100644 --- a/src/mbgl/tile/tile.hpp +++ b/src/mbgl/tile/tile.hpp @@ -60,6 +60,10 @@ public: virtual const LayerRenderData* getLayerRenderData(const style::Layer::Impl&) const { return nullptr; } + // Updates the contained layer render data with the given properties. + // Returns `true` if the corresponding render layer data is present in this tile (and i.e. it + // was succesfully updated); returns `false` otherwise. + virtual bool updateLayerProperties(const Immutable<style::LayerProperties>&) { return true; } template <class T> T* getBucket(const style::Layer::Impl& layer) const { |