| 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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 | 643 |
| 644 // This flag is set when the layer needs to push properties to the impl | 644 // This flag is set when the layer needs to push properties to the impl |
| 645 // side. | 645 // side. |
| 646 bool needs_push_properties_; | 646 bool needs_push_properties_; |
| 647 | 647 |
| 648 // The number of direct children or dependent layers that need to be recursed | 648 // The number of direct children or dependent layers that need to be recursed |
| 649 // to in order for them or a descendent of them to push properties to the impl | 649 // to in order for them or a descendent of them to push properties to the impl |
| 650 // side. | 650 // side. |
| 651 int num_dependents_need_push_properties_; | 651 int num_dependents_need_push_properties_; |
| 652 | 652 |
| 653 // Tracks whether this layer may have changed stacking order with its | |
| 654 // siblings. | |
| 655 bool stacking_order_changed_; | |
| 656 | |
| 657 // The update rect is the region of the compositor resource that was | 653 // The update rect is the region of the compositor resource that was |
| 658 // actually updated by the compositor. For layers that may do updating | 654 // actually updated by the compositor. For layers that may do updating |
| 659 // outside the compositor's control (i.e. plugin layers), this information | 655 // outside the compositor's control (i.e. plugin layers), this information |
| 660 // is not available and the update rect will remain empty. | 656 // is not available and the update rect will remain empty. |
| 661 // Note this rect is in layer space (not content space). | 657 // Note this rect is in layer space (not content space). |
| 662 gfx::Rect update_rect_; | 658 gfx::Rect update_rect_; |
| 663 | 659 |
| 664 scoped_refptr<Layer> mask_layer_; | 660 scoped_refptr<Layer> mask_layer_; |
| 665 | 661 |
| 666 int layer_id_; | 662 int layer_id_; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 | 788 |
| 793 std::vector<FrameTimingRequest> frame_timing_requests_; | 789 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 794 bool frame_timing_requests_dirty_; | 790 bool frame_timing_requests_dirty_; |
| 795 | 791 |
| 796 DISALLOW_COPY_AND_ASSIGN(Layer); | 792 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 797 }; | 793 }; |
| 798 | 794 |
| 799 } // namespace cc | 795 } // namespace cc |
| 800 | 796 |
| 801 #endif // CC_LAYERS_LAYER_H_ | 797 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |