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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 protected: | 800 protected: |
801 friend class TreeSynchronizer; | 801 friend class TreeSynchronizer; |
802 | 802 |
803 // This flag is set when the layer needs to push properties to the active | 803 // This flag is set when the layer needs to push properties to the active |
804 // side. | 804 // side. |
805 bool needs_push_properties_; | 805 bool needs_push_properties_; |
806 | 806 |
807 // The number of direct children or dependent layers that need to be recursed | 807 // The number of direct children or dependent layers that need to be recursed |
808 // to in order for them or a descendent of them to push properties to the | 808 // to in order for them or a descendent of them to push properties to the |
809 // active side. | 809 // active side. |
810 int num_dependents_need_push_properties_; | 810 size_t num_dependents_need_push_properties_; |
811 | 811 |
812 // Layers that share a sorting context id will be sorted together in 3d | 812 // Layers that share a sorting context id will be sorted together in 3d |
813 // space. 0 is a special value that means this layer will not be sorted and | 813 // space. 0 is a special value that means this layer will not be sorted and |
814 // will be drawn in paint order. | 814 // will be drawn in paint order. |
815 int sorting_context_id_; | 815 int sorting_context_id_; |
816 | 816 |
817 DrawMode current_draw_mode_; | 817 DrawMode current_draw_mode_; |
818 | 818 |
819 private: | 819 private: |
820 // Rect indicating what was repainted/updated during update. | 820 // Rect indicating what was repainted/updated during update. |
(...skipping 26 matching lines...) Expand all Loading... |
847 bool visited_; | 847 bool visited_; |
848 bool layer_or_descendant_is_drawn_; | 848 bool layer_or_descendant_is_drawn_; |
849 bool sorted_for_recursion_; | 849 bool sorted_for_recursion_; |
850 | 850 |
851 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 851 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
852 }; | 852 }; |
853 | 853 |
854 } // namespace cc | 854 } // namespace cc |
855 | 855 |
856 #endif // CC_LAYERS_LAYER_IMPL_H_ | 856 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |