| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_LAYERS_LAYER_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void SetMasksToBounds(bool masks_to_bounds); | 121 void SetMasksToBounds(bool masks_to_bounds); |
| 122 bool masks_to_bounds() const { return masks_to_bounds_; } | 122 bool masks_to_bounds() const { return masks_to_bounds_; } |
| 123 | 123 |
| 124 void SetMaskLayer(Layer* mask_layer); | 124 void SetMaskLayer(Layer* mask_layer); |
| 125 Layer* mask_layer() { return mask_layer_.get(); } | 125 Layer* mask_layer() { return mask_layer_.get(); } |
| 126 const Layer* mask_layer() const { return mask_layer_.get(); } | 126 const Layer* mask_layer() const { return mask_layer_.get(); } |
| 127 | 127 |
| 128 virtual void SetNeedsDisplayRect(const gfx::Rect& dirty_rect); | 128 virtual void SetNeedsDisplayRect(const gfx::Rect& dirty_rect); |
| 129 void SetNeedsDisplay() { SetNeedsDisplayRect(gfx::Rect(bounds())); } | 129 void SetNeedsDisplay() { SetNeedsDisplayRect(gfx::Rect(bounds())); } |
| 130 | 130 |
| 131 void SetOpacity(float opacity); | 131 virtual void SetOpacity(float opacity); |
| 132 float opacity() const { return opacity_; } | 132 float opacity() const { return opacity_; } |
| 133 float EffectiveOpacity() const; | 133 float EffectiveOpacity() const; |
| 134 bool OpacityIsAnimating() const; | 134 bool OpacityIsAnimating() const; |
| 135 bool HasPotentiallyRunningOpacityAnimation() const; | 135 bool HasPotentiallyRunningOpacityAnimation() const; |
| 136 virtual bool OpacityCanAnimateOnImplThread() const; | 136 virtual bool OpacityCanAnimateOnImplThread() const; |
| 137 | 137 |
| 138 virtual bool AlwaysUseActiveTreeOpacity() const; | 138 virtual bool AlwaysUseActiveTreeOpacity() const; |
| 139 | 139 |
| 140 void SetBlendMode(SkXfermode::Mode blend_mode); | 140 void SetBlendMode(SkXfermode::Mode blend_mode); |
| 141 SkXfermode::Mode blend_mode() const { return blend_mode_; } | 141 SkXfermode::Mode blend_mode() const { return blend_mode_; } |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 // These all act like draw properties, so don't need push properties. | 680 // These all act like draw properties, so don't need push properties. |
| 681 gfx::Rect visible_layer_rect_; | 681 gfx::Rect visible_layer_rect_; |
| 682 size_t num_unclipped_descendants_; | 682 size_t num_unclipped_descendants_; |
| 683 | 683 |
| 684 DISALLOW_COPY_AND_ASSIGN(Layer); | 684 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 685 }; | 685 }; |
| 686 | 686 |
| 687 } // namespace cc | 687 } // namespace cc |
| 688 | 688 |
| 689 #endif // CC_LAYERS_LAYER_H_ | 689 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |