summaryrefslogtreecommitdiffstats
path: root/chromium/cc/layers/picture_layer_impl.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2024-02-22 13:19:49 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2024-03-12 13:45:06 +0000
commit9c1f44f67466fea2fb20bb6f31fea388d8c65961 (patch)
tree03e7709aa7ed9a7cf2ec26ca410acd0b4c536666 /chromium/cc/layers/picture_layer_impl.h
parentada9ddbf8c604585ac344b72f7bb63ac27c84726 (diff)
BASELINE: Update Chromium to 122.0.6261.72
Change-Id: I655fa6da670f5e82a4c0df33630e388663de2a8e Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/542310 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.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/chromium/cc/layers/picture_layer_impl.h b/chromium/cc/layers/picture_layer_impl.h
index 7715e93a164..26469545444 100644
--- a/chromium/cc/layers/picture_layer_impl.h
+++ b/chromium/cc/layers/picture_layer_impl.h
@@ -164,12 +164,12 @@ class CC_EXPORT PictureLayerImpl
return paint_worklet_records_;
}
- 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);
+ void InvalidatePaintWorklets(const PaintWorkletInput::PropertyKey& key,
+ const PaintWorkletInput::PropertyValue& prev,
+ const PaintWorkletInput::PropertyValue& next);
void SetContentsScaleForTesting(float scale) {
ideal_contents_scale_ = raster_contents_scale_ =
@@ -198,7 +198,8 @@ class CC_EXPORT PictureLayerImpl
// Returns false if raster translation is not applicable.
bool CalculateRasterTranslation(gfx::Vector2dF& raster_translation) const;
void CleanUpTilingsOnActiveLayer(
- const std::vector<PictureLayerTiling*>& used_tilings);
+ const std::vector<raw_ptr<PictureLayerTiling, VectorExperimental>>&
+ used_tilings);
float MinimumContentsScale() const;
float MaximumContentsScale() const;
void UpdateViewportRectForTilePriorityInContentSpace();
@@ -280,19 +281,19 @@ class CC_EXPORT PictureLayerImpl
return std::max(raster_contents_scale_.x(), raster_contents_scale_.y());
}
- bool is_backdrop_filter_mask_ : 1;
+ bool is_backdrop_filter_mask_ : 1 = false;
- bool was_screen_space_transform_animating_ : 1;
- bool only_used_low_res_last_append_quads_ : 1;
+ bool was_screen_space_transform_animating_ : 1 = false;
+ bool only_used_low_res_last_append_quads_ : 1 = false;
- bool nearest_neighbor_ : 1;
+ bool nearest_neighbor_ : 1 = false;
// This is set by UpdateRasterSource() on change of raster source size. It's
// used to recalculate raster scale for will-chagne:transform. It's reset to
// false after raster scale update.
- bool raster_source_size_changed_ : 1;
+ bool raster_source_size_changed_ : 1 = false;
- bool directly_composited_image_default_raster_scale_changed_ : 1;
+ bool directly_composited_image_default_raster_scale_changed_ : 1 = false;
LCDTextDisallowedReason lcd_text_disallowed_reason_ =
LCDTextDisallowedReason::kNoText;
@@ -318,7 +319,8 @@ class CC_EXPORT PictureLayerImpl
// drawn. Note that accessing this vector should only be done in the context
// of comparing pointers, since objects pointed to are not guaranteed to
// exist.
- std::vector<PictureLayerTiling*> last_append_quads_tilings_;
+ std::vector<raw_ptr<PictureLayerTiling, VectorExperimental>>
+ last_append_quads_tilings_;
// The set of PaintWorkletInputs that are part of this PictureLayerImpl, and
// their painted results (if any). During commit, Blink hands us a set of
@@ -327,7 +329,6 @@ class CC_EXPORT PictureLayerImpl
// |LayerTreeHostImpl::UpdateSyncTreeAfterCommitOrImplSideInvalidation|.
PaintWorkletRecordMap paint_worklet_records_;
- gfx::Size content_bounds_;
TileSizeCalculator tile_size_calculator_{this};
// Denotes an area that is damaged and needs redraw. This is in the layer's