Chromium Code Reviews| Index: cc/layers/layer.h |
| diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
| index 274e82fc7c8656e600f1c23caff01176caedb241..de00e8822fb96eba022fc964e20e229ff83a5929 100644 |
| --- a/cc/layers/layer.h |
| +++ b/cc/layers/layer.h |
| @@ -126,6 +126,18 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
| bool OpacityIsAnimating() const; |
| virtual bool OpacityCanAnimateOnImplThread() const; |
| + void SetBlendMode(SkXfermode::Mode blend_mode); |
|
enne (OOO)
2013/11/01 18:49:02
Can you help my understanding of the blend mode sp
rosca
2013/11/04 17:14:35
It sounds good, thanks. I added checks for this.
|
| + SkXfermode::Mode blend_mode() const { return blend_mode_; } |
| + |
| + bool uses_default_blend_mode() const { |
| + return blend_mode_ == SkXfermode::kSrcOver_Mode; |
| + } |
| + |
| + void SetIsRootForIsolatedGroup(bool root); |
| + bool is_root_for_isolated_group() const { |
| + return is_root_for_isolated_group_; |
| + } |
| + |
| void SetFilters(const FilterOperations& filters); |
| const FilterOperations& filters() const { return filters_; } |
| bool FilterIsAnimating() const; |
| @@ -553,6 +565,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
| SkColor background_color_; |
| CompositingReasons compositing_reasons_; |
| float opacity_; |
| + SkXfermode::Mode blend_mode_; |
| + bool is_root_for_isolated_group_; |
| FilterOperations filters_; |
| FilterOperations background_filters_; |
| float anchor_point_z_; |