Chromium Code Reviews| Index: cc/layers/layer.h |
| diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
| index 9894bc26b0872ebee197093595f626449e7d9881..c8b168e94a0c57d0587361d4d4e9f40721e563be 100644 |
| --- a/cc/layers/layer.h |
| +++ b/cc/layers/layer.h |
| @@ -121,6 +121,18 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
| bool OpacityIsAnimating() const; |
| virtual bool OpacityCanAnimateOnImplThread() const; |
| + void SetBlendMode(SkXfermode::Mode blendMode); |
|
enne (OOO)
2013/10/11 18:14:35
blend_mode
rosca
2013/10/16 14:54:47
Done.
|
| + 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_; } |
| @@ -540,6 +552,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_; |