Chromium Code Reviews| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 628 | 628 |
| 629 void reset_raster_scale_to_unknown() { raster_scale_ = 0.f; } | 629 void reset_raster_scale_to_unknown() { raster_scale_ = 0.f; } |
| 630 | 630 |
| 631 // This flag is set when the layer needs to push properties to the impl | 631 // This flag is set when the layer needs to push properties to the impl |
| 632 // side. | 632 // side. |
| 633 bool needs_push_properties_; | 633 bool needs_push_properties_; |
| 634 | 634 |
| 635 // The number of direct children or dependent layers that need to be recursed | 635 // The number of direct children or dependent layers that need to be recursed |
| 636 // to in order for them or a descendent of them to push properties to the impl | 636 // to in order for them or a descendent of them to push properties to the impl |
| 637 // side. | 637 // side. |
| 638 int num_dependents_need_push_properties_; | 638 size_t num_dependents_need_push_properties_; |
|
danakj
2015/06/09 17:39:49
How come? We just ++ and -- it, it's not related t
vmpstr
2015/06/09 18:37:17
Hmm. I think this might've been just a test thing
| |
| 639 | 639 |
| 640 // Tracks whether this layer may have changed stacking order with its | 640 // Tracks whether this layer may have changed stacking order with its |
| 641 // siblings. | 641 // siblings. |
| 642 bool stacking_order_changed_; | 642 bool stacking_order_changed_; |
| 643 | 643 |
| 644 // The update rect is the region of the compositor resource that was | 644 // The update rect is the region of the compositor resource that was |
| 645 // actually updated by the compositor. For layers that may do updating | 645 // actually updated by the compositor. For layers that may do updating |
| 646 // outside the compositor's control (i.e. plugin layers), this information | 646 // outside the compositor's control (i.e. plugin layers), this information |
| 647 // is not available and the update rect will remain empty. | 647 // is not available and the update rect will remain empty. |
| 648 // Note this rect is in layer space (not content space). | 648 // Note this rect is in layer space (not content space). |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 797 | 797 |
| 798 std::vector<FrameTimingRequest> frame_timing_requests_; | 798 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 799 bool frame_timing_requests_dirty_; | 799 bool frame_timing_requests_dirty_; |
| 800 | 800 |
| 801 DISALLOW_COPY_AND_ASSIGN(Layer); | 801 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 802 }; | 802 }; |
| 803 | 803 |
| 804 } // namespace cc | 804 } // namespace cc |
| 805 | 805 |
| 806 #endif // CC_LAYERS_LAYER_H_ | 806 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |