diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-20 13:40:20 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-22 12:41:23 +0000 |
commit | 7961cea6d1041e3e454dae6a1da660b453efd238 (patch) | |
tree | c0eeb4a9ff9ba32986289c1653d9608e53ccb444 /chromium/cc/layers/picture_layer_impl.h | |
parent | b7034d0803538058e5c9d904ef03cf5eab34f6ef (diff) | |
download | qtwebengine-chromium-7961cea6d1041e3e454dae6a1da660b453efd238.tar.gz |
BASELINE: Update Chromium to 78.0.3904.130
Change-Id: If185e0c0061b3437531c97c9c8c78f239352a68b
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/cc/layers/picture_layer_impl.h')
-rw-r--r-- | chromium/cc/layers/picture_layer_impl.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/chromium/cc/layers/picture_layer_impl.h b/chromium/cc/layers/picture_layer_impl.h index c7fa5fa0d74..6a2d2ea160b 100644 --- a/chromium/cc/layers/picture_layer_impl.h +++ b/chromium/cc/layers/picture_layer_impl.h @@ -16,6 +16,7 @@ #include "cc/layers/layer.h" #include "cc/layers/layer_impl.h" #include "cc/layers/tile_size_calculator.h" +#include "cc/paint/discardable_image_map.h" #include "cc/paint/image_id.h" #include "cc/tiles/picture_layer_tiling.h" #include "cc/tiles/picture_layer_tiling_set.h" @@ -139,7 +140,7 @@ class CC_EXPORT PictureLayerImpl const Region& InvalidationForTesting() const { return invalidation_; } // Set the paint result (PaintRecord) for a given PaintWorkletInput. - void SetPaintWorkletRecord(scoped_refptr<PaintWorkletInput>, + void SetPaintWorkletRecord(scoped_refptr<const PaintWorkletInput>, sk_sp<PaintRecord>); // Retrieve the map of PaintWorkletInputs to their painted results @@ -151,6 +152,11 @@ class CC_EXPORT PictureLayerImpl gfx::Size content_bounds() { return content_bounds_; } + // Invalidates all PaintWorklets in this layer who depend on the given + // property to be painted. Used when the value for the property is changed by + // an animation, at which point the PaintWorklet must be re-painted. + void InvalidatePaintWorklets(const PaintWorkletInput::PropertyKey& key); + protected: PictureLayerImpl(LayerTreeImpl* tree_impl, int id, @@ -185,9 +191,11 @@ class CC_EXPORT PictureLayerImpl std::unique_ptr<base::DictionaryValue> LayerAsJson() const override; - // Set the collection of PaintWorkletInputs that are part of this layer. + // Set the collection of PaintWorkletInput as well as their PaintImageId that + // are part of this layer. void SetPaintWorkletInputs( - const std::vector<scoped_refptr<PaintWorkletInput>>& inputs); + const std::vector<DiscardableImageMap::PaintWorkletInputWithImageId>& + inputs); PictureLayerImpl* twin_layer_; |