| 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 const std::vector<FrameTimingRequest>& frame_timing_requests); | 633 const std::vector<FrameTimingRequest>& frame_timing_requests); |
| 634 const std::vector<FrameTimingRequest>& frame_timing_requests() const { | 634 const std::vector<FrameTimingRequest>& frame_timing_requests() const { |
| 635 return frame_timing_requests_; | 635 return frame_timing_requests_; |
| 636 } | 636 } |
| 637 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); | 637 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); |
| 638 | 638 |
| 639 SyncedScrollOffset* synced_scroll_offset() { return scroll_offset_.get(); } | 639 SyncedScrollOffset* synced_scroll_offset() { return scroll_offset_.get(); } |
| 640 | 640 |
| 641 // Get the correct invalidation region instead of conservative Rect | 641 // Get the correct invalidation region instead of conservative Rect |
| 642 // for layers that provide it. | 642 // for layers that provide it. |
| 643 virtual Region GetInvalidationRegion(); | 643 virtual Region GetInvalidationRegionForDebugging(); |
| 644 | 644 |
| 645 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; | 645 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; |
| 646 | 646 |
| 647 void set_visited(bool visited) { visited_ = visited; } | 647 void set_visited(bool visited) { visited_ = visited; } |
| 648 | 648 |
| 649 bool visited() { return visited_; } | 649 bool visited() { return visited_; } |
| 650 | 650 |
| 651 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn) { | 651 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn) { |
| 652 layer_or_descendant_is_drawn_ = layer_or_descendant_is_drawn; | 652 layer_or_descendant_is_drawn_ = layer_or_descendant_is_drawn; |
| 653 } | 653 } |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 // If true, the layer or one of its descendants has a touch handler. | 875 // If true, the layer or one of its descendants has a touch handler. |
| 876 bool layer_or_descendant_has_touch_handler_; | 876 bool layer_or_descendant_has_touch_handler_; |
| 877 bool sorted_for_recursion_; | 877 bool sorted_for_recursion_; |
| 878 | 878 |
| 879 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 879 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 880 }; | 880 }; |
| 881 | 881 |
| 882 } // namespace cc | 882 } // namespace cc |
| 883 | 883 |
| 884 #endif // CC_LAYERS_LAYER_IMPL_H_ | 884 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |