| 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 const std::vector<FrameTimingRequest>& frame_timing_requests); | 644 const std::vector<FrameTimingRequest>& frame_timing_requests); |
| 645 const std::vector<FrameTimingRequest>& frame_timing_requests() const { | 645 const std::vector<FrameTimingRequest>& frame_timing_requests() const { |
| 646 return frame_timing_requests_; | 646 return frame_timing_requests_; |
| 647 } | 647 } |
| 648 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); | 648 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); |
| 649 | 649 |
| 650 SyncedScrollOffset* synced_scroll_offset() { return scroll_offset_.get(); } | 650 SyncedScrollOffset* synced_scroll_offset() { return scroll_offset_.get(); } |
| 651 | 651 |
| 652 // Get the correct invalidation region instead of conservative Rect | 652 // Get the correct invalidation region instead of conservative Rect |
| 653 // for layers that provide it. | 653 // for layers that provide it. |
| 654 virtual Region GetInvalidationRegion(); | 654 virtual Region GetInvalidationRegionForDebugging(); |
| 655 | 655 |
| 656 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; | 656 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; |
| 657 | 657 |
| 658 void set_visited(bool visited) { visited_ = visited; } | 658 void set_visited(bool visited) { visited_ = visited; } |
| 659 | 659 |
| 660 bool visited() { return visited_; } | 660 bool visited() { return visited_; } |
| 661 | 661 |
| 662 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn) { | 662 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn) { |
| 663 layer_or_descendant_is_drawn_ = layer_or_descendant_is_drawn; | 663 layer_or_descendant_is_drawn_ = layer_or_descendant_is_drawn; |
| 664 } | 664 } |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 bool layer_or_descendant_has_input_handler_; | 896 bool layer_or_descendant_has_input_handler_; |
| 897 bool sorted_for_recursion_; | 897 bool sorted_for_recursion_; |
| 898 bool is_hidden_from_property_trees_; | 898 bool is_hidden_from_property_trees_; |
| 899 | 899 |
| 900 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 900 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 901 }; | 901 }; |
| 902 | 902 |
| 903 } // namespace cc | 903 } // namespace cc |
| 904 | 904 |
| 905 #endif // CC_LAYERS_LAYER_IMPL_H_ | 905 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |