| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
| 6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 return test_properties_.get(); | 169 return test_properties_.get(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 void SetBackgroundColor(SkColor background_color); | 172 void SetBackgroundColor(SkColor background_color); |
| 173 SkColor background_color() const { return background_color_; } | 173 SkColor background_color() const { return background_color_; } |
| 174 void SetSafeOpaqueBackgroundColor(SkColor background_color); | 174 void SetSafeOpaqueBackgroundColor(SkColor background_color); |
| 175 // If contents_opaque(), return an opaque color else return a | 175 // If contents_opaque(), return an opaque color else return a |
| 176 // non-opaque color. Tries to return background_color(), if possible. | 176 // non-opaque color. Tries to return background_color(), if possible. |
| 177 SkColor SafeOpaqueBackgroundColor() const; | 177 SkColor SafeOpaqueBackgroundColor() const; |
| 178 | 178 |
| 179 bool FilterIsAnimating() const; | |
| 180 bool HasPotentiallyRunningFilterAnimation() const; | 179 bool HasPotentiallyRunningFilterAnimation() const; |
| 181 | 180 |
| 182 void SetMasksToBounds(bool masks_to_bounds); | 181 void SetMasksToBounds(bool masks_to_bounds); |
| 183 bool masks_to_bounds() const { return masks_to_bounds_; } | 182 bool masks_to_bounds() const { return masks_to_bounds_; } |
| 184 | 183 |
| 185 void SetContentsOpaque(bool opaque); | 184 void SetContentsOpaque(bool opaque); |
| 186 bool contents_opaque() const { return contents_opaque_; } | 185 bool contents_opaque() const { return contents_opaque_; } |
| 187 | 186 |
| 188 float Opacity() const; | 187 float Opacity() const; |
| 189 const gfx::Transform& Transform() const; | 188 const gfx::Transform& Transform() const; |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 bool needs_show_scrollbars_ : 1; | 578 bool needs_show_scrollbars_ : 1; |
| 580 | 579 |
| 581 bool raster_even_if_not_in_rsll_ : 1; | 580 bool raster_even_if_not_in_rsll_ : 1; |
| 582 | 581 |
| 583 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 582 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 584 }; | 583 }; |
| 585 | 584 |
| 586 } // namespace cc | 585 } // namespace cc |
| 587 | 586 |
| 588 #endif // CC_LAYERS_LAYER_IMPL_H_ | 587 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |