Merge branch 'topic/metal-sep21' into main (#1695)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Tim Sylvester <tim@wetdogweather.com> Co-authored-by: Bart Louwers <bart@emeel.net> Co-authored-by: Alex Cristici <alex.cristici@gmail.com> Co-authored-by: Stefan Karschti <stefan.karschti@gmail.com> Co-authored-by: Alex Cristici <alex@skoon.energy> Co-authored-by: Bart Louwers <bart.louwers@gmail.com> Co-authored-by: Wei Chen <alanchenboy@gmail.com> Co-authored-by: Siarhei Fedartsou <siarhei.fedartsou@gmail.com> Co-authored-by: tdcosta100 <tdcosta100@gmail.com>
This commit is contained in:
@@ -211,10 +211,11 @@ protected:
|
||||
void changeLayerIndex(const LayerGroupBasePtr&, int32_t newLayerIndex, UniqueChangeRequestVec&);
|
||||
|
||||
/// Remove all drawables for the tile from the layer group
|
||||
virtual void removeTile(RenderPass, const OverscaledTileID&);
|
||||
/// @return The number of drawables actually removed.
|
||||
virtual std::size_t removeTile(RenderPass, const OverscaledTileID&);
|
||||
|
||||
/// Remove all the drawables for tiles
|
||||
virtual void removeAllDrawables();
|
||||
virtual std::size_t removeAllDrawables();
|
||||
|
||||
/// Update `renderTileIDs` from `renderTiles`
|
||||
void updateRenderTileIDs();
|
||||
@@ -233,6 +234,12 @@ protected:
|
||||
/// @return true if updated, false if the tile ID is not present in the set of tiles to be rendered or the ID is
|
||||
/// unchanged
|
||||
bool setRenderTileBucketID(const OverscaledTileID&, util::SimpleIdentity bucketID);
|
||||
|
||||
/// Update the layer tweaker and drawables which reference it
|
||||
static void replaceTweaker(LayerTweakerPtr& toReplace,
|
||||
LayerTweakerPtr newTweaker,
|
||||
const std::vector<LayerGroupBasePtr>&);
|
||||
|
||||
#endif // MLN_DRAWABLE_RENDERER
|
||||
|
||||
static bool applyColorRamp(const style::ColorRampPropertyValue&, PremultipliedImage&);
|
||||
@@ -251,6 +258,9 @@ protected:
|
||||
// will need to be overriden to handle their activation.
|
||||
LayerGroupBasePtr layerGroup;
|
||||
|
||||
// An optional tweaker that will update drawables
|
||||
LayerTweakerPtr layerTweaker;
|
||||
|
||||
// The set of Tile IDs in `renderTiles`, along with the
|
||||
// identity of the bucket from which they were built.
|
||||
std::unordered_map<OverscaledTileID, util::SimpleIdentity> renderTileIDs;
|
||||
|
||||
Reference in New Issue
Block a user