summaryrefslogtreecommitdiffstats
path: root/chromium/cc/layers/picture_layer_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/layers/picture_layer_impl.h')
-rw-r--r--chromium/cc/layers/picture_layer_impl.h18
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;