diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-23 17:21:03 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-23 16:25:15 +0000 |
commit | c551f43206405019121bd2b2c93714319a0a3300 (patch) | |
tree | 1f48c30631c421fd4bbb3c36da20183c8a2ed7d7 /chromium/cc/layers/picture_layer_impl.h | |
parent | 7961cea6d1041e3e454dae6a1da660b453efd238 (diff) |
BASELINE: Update Chromium to 79.0.3945.139
Change-Id: I336b7182fab9bca80b709682489c07db112eaca5
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 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chromium/cc/layers/picture_layer_impl.h b/chromium/cc/layers/picture_layer_impl.h index 6a2d2ea160b..d2459c42af7 100644 --- a/chromium/cc/layers/picture_layer_impl.h +++ b/chromium/cc/layers/picture_layer_impl.h @@ -34,17 +34,19 @@ class CC_EXPORT PictureLayerImpl public PictureLayerTilingClient, public ImageAnimationController::AnimationDriver { public: - static std::unique_ptr<PictureLayerImpl> - Create(LayerTreeImpl* tree_impl, int id, Layer::LayerMaskType mask_type) { - return base::WrapUnique(new PictureLayerImpl(tree_impl, id, mask_type)); + static std::unique_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, + int id) { + return base::WrapUnique(new PictureLayerImpl(tree_impl, id)); } PictureLayerImpl(const PictureLayerImpl&) = delete; ~PictureLayerImpl() override; PictureLayerImpl& operator=(const PictureLayerImpl&) = delete; - Layer::LayerMaskType mask_type() const { return mask_type_; } - void SetLayerMaskType(Layer::LayerMaskType type); + void SetIsBackdropFilterMask(bool is_backdrop_filter_mask) { + is_backdrop_filter_mask_ = is_backdrop_filter_mask; + } + bool is_backdrop_filter_mask() const { return is_backdrop_filter_mask_; } // LayerImpl overrides. const char* LayerTypeAsString() const override; @@ -158,9 +160,7 @@ class CC_EXPORT PictureLayerImpl void InvalidatePaintWorklets(const PaintWorkletInput::PropertyKey& key); protected: - PictureLayerImpl(LayerTreeImpl* tree_impl, - int id, - Layer::LayerMaskType mask_type); + PictureLayerImpl(LayerTreeImpl* tree_impl, int id); PictureLayerTiling* AddTiling(const gfx::AxisTransform2d& contents_transform); void RemoveAllTilings(); void AddTilingsForRasterScale(); @@ -223,7 +223,7 @@ class CC_EXPORT PictureLayerImpl float raster_contents_scale_; float low_res_raster_contents_scale_; - Layer::LayerMaskType mask_type_; + bool is_backdrop_filter_mask_ : 1; bool was_screen_space_transform_animating_ : 1; bool only_used_low_res_last_append_quads_ : 1; |