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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void DistributeScroll(ScrollState* scroll_state); | 93 void DistributeScroll(ScrollState* scroll_state); |
94 | 94 |
95 void set_property_tree_sequence_number(int sequence_number) {} | 95 void set_property_tree_sequence_number(int sequence_number) {} |
96 | 96 |
97 void SetTransformTreeIndex(int index); | 97 void SetTransformTreeIndex(int index); |
98 int transform_tree_index() const { return transform_tree_index_; } | 98 int transform_tree_index() const { return transform_tree_index_; } |
99 | 99 |
100 void SetClipTreeIndex(int index); | 100 void SetClipTreeIndex(int index); |
101 int clip_tree_index() const { return clip_tree_index_; } | 101 int clip_tree_index() const { return clip_tree_index_; } |
102 | 102 |
| 103 void SetNewClipTreeIndex(int index); |
| 104 int new_clip_tree_index() const { return new_clip_tree_index_; } |
| 105 |
103 void SetEffectTreeIndex(int index); | 106 void SetEffectTreeIndex(int index); |
104 int effect_tree_index() const { return effect_tree_index_; } | 107 int effect_tree_index() const { return effect_tree_index_; } |
105 int render_target_effect_tree_index() const; | 108 int render_target_effect_tree_index() const; |
106 | 109 |
107 void SetScrollTreeIndex(int index); | 110 void SetScrollTreeIndex(int index); |
108 int scroll_tree_index() const { return scroll_tree_index_; } | 111 int scroll_tree_index() const { return scroll_tree_index_; } |
109 | 112 |
110 void set_offset_to_transform_parent(const gfx::Vector2dF& offset) { | 113 void set_offset_to_transform_parent(const gfx::Vector2dF& offset) { |
111 offset_to_transform_parent_ = offset; | 114 offset_to_transform_parent_ = offset; |
112 } | 115 } |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 SkColor background_color_; | 527 SkColor background_color_; |
525 SkColor safe_opaque_background_color_; | 528 SkColor safe_opaque_background_color_; |
526 | 529 |
527 SkBlendMode draw_blend_mode_; | 530 SkBlendMode draw_blend_mode_; |
528 gfx::PointF position_; | 531 gfx::PointF position_; |
529 | 532 |
530 gfx::Rect clip_rect_in_target_space_; | 533 gfx::Rect clip_rect_in_target_space_; |
531 int transform_tree_index_; | 534 int transform_tree_index_; |
532 int effect_tree_index_; | 535 int effect_tree_index_; |
533 int clip_tree_index_; | 536 int clip_tree_index_; |
| 537 int new_clip_tree_index_; |
534 int scroll_tree_index_; | 538 int scroll_tree_index_; |
535 | 539 |
536 protected: | 540 protected: |
537 friend class TreeSynchronizer; | 541 friend class TreeSynchronizer; |
538 | 542 |
539 // Layers that share a sorting context id will be sorted together in 3d | 543 // Layers that share a sorting context id will be sorted together in 3d |
540 // space. 0 is a special value that means this layer will not be sorted and | 544 // space. 0 is a special value that means this layer will not be sorted and |
541 // will be drawn in paint order. | 545 // will be drawn in paint order. |
542 int sorting_context_id_; | 546 int sorting_context_id_; |
543 | 547 |
(...skipping 30 matching lines...) Expand all Loading... |
574 bool has_will_change_transform_hint_ : 1; | 578 bool has_will_change_transform_hint_ : 1; |
575 bool needs_push_properties_ : 1; | 579 bool needs_push_properties_ : 1; |
576 bool scrollbars_hidden_ : 1; | 580 bool scrollbars_hidden_ : 1; |
577 | 581 |
578 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 582 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
579 }; | 583 }; |
580 | 584 |
581 } // namespace cc | 585 } // namespace cc |
582 | 586 |
583 #endif // CC_LAYERS_LAYER_IMPL_H_ | 587 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |