| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 void SetSafeOpaqueBackgroundColor(SkColor background_color); | 189 void SetSafeOpaqueBackgroundColor(SkColor background_color); |
| 190 // If contents_opaque(), return an opaque color else return a | 190 // If contents_opaque(), return an opaque color else return a |
| 191 // non-opaque color. Tries to return background_color(), if possible. | 191 // non-opaque color. Tries to return background_color(), if possible. |
| 192 SkColor SafeOpaqueBackgroundColor() const; | 192 SkColor SafeOpaqueBackgroundColor() const; |
| 193 | 193 |
| 194 void SetFilters(const FilterOperations& filters); | 194 void SetFilters(const FilterOperations& filters); |
| 195 const FilterOperations& filters() const { return filters_; } | 195 const FilterOperations& filters() const { return filters_; } |
| 196 bool FilterIsAnimating() const; | 196 bool FilterIsAnimating() const; |
| 197 bool HasPotentiallyRunningFilterAnimation() const; | 197 bool HasPotentiallyRunningFilterAnimation() const; |
| 198 | 198 |
| 199 void SetBackgroundFilters(const FilterOperations& filters); | |
| 200 const FilterOperations& background_filters() const { | |
| 201 return background_filters_; | |
| 202 } | |
| 203 | |
| 204 void SetMasksToBounds(bool masks_to_bounds); | 199 void SetMasksToBounds(bool masks_to_bounds); |
| 205 bool masks_to_bounds() const { return masks_to_bounds_; } | 200 bool masks_to_bounds() const { return masks_to_bounds_; } |
| 206 | 201 |
| 207 void SetContentsOpaque(bool opaque); | 202 void SetContentsOpaque(bool opaque); |
| 208 bool contents_opaque() const { return contents_opaque_; } | 203 bool contents_opaque() const { return contents_opaque_; } |
| 209 | 204 |
| 210 float Opacity() const; | 205 float Opacity() const; |
| 211 bool OpacityIsAnimating() const; | 206 bool OpacityIsAnimating() const; |
| 212 bool HasPotentiallyRunningOpacityAnimation() const; | 207 bool HasPotentiallyRunningOpacityAnimation() const; |
| 213 | 208 |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 gfx::PointF position_; | 552 gfx::PointF position_; |
| 558 gfx::Transform transform_; | 553 gfx::Transform transform_; |
| 559 | 554 |
| 560 gfx::Rect clip_rect_in_target_space_; | 555 gfx::Rect clip_rect_in_target_space_; |
| 561 int transform_tree_index_; | 556 int transform_tree_index_; |
| 562 int effect_tree_index_; | 557 int effect_tree_index_; |
| 563 int clip_tree_index_; | 558 int clip_tree_index_; |
| 564 int scroll_tree_index_; | 559 int scroll_tree_index_; |
| 565 | 560 |
| 566 FilterOperations filters_; | 561 FilterOperations filters_; |
| 567 FilterOperations background_filters_; | |
| 568 | 562 |
| 569 protected: | 563 protected: |
| 570 friend class TreeSynchronizer; | 564 friend class TreeSynchronizer; |
| 571 | 565 |
| 572 // Layers that share a sorting context id will be sorted together in 3d | 566 // Layers that share a sorting context id will be sorted together in 3d |
| 573 // space. 0 is a special value that means this layer will not be sorted and | 567 // space. 0 is a special value that means this layer will not be sorted and |
| 574 // will be drawn in paint order. | 568 // will be drawn in paint order. |
| 575 int sorting_context_id_; | 569 int sorting_context_id_; |
| 576 | 570 |
| 577 DrawMode current_draw_mode_; | 571 DrawMode current_draw_mode_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 601 bool scrolls_drawn_descendant_ : 1; | 595 bool scrolls_drawn_descendant_ : 1; |
| 602 bool has_will_change_transform_hint_ : 1; | 596 bool has_will_change_transform_hint_ : 1; |
| 603 bool needs_push_properties_ : 1; | 597 bool needs_push_properties_ : 1; |
| 604 | 598 |
| 605 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 599 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 606 }; | 600 }; |
| 607 | 601 |
| 608 } // namespace cc | 602 } // namespace cc |
| 609 | 603 |
| 610 #endif // CC_LAYERS_LAYER_IMPL_H_ | 604 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |