| 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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 | 541 |
| 542 const SyncedScrollOffset* synced_scroll_offset() const; | 542 const SyncedScrollOffset* synced_scroll_offset() const; |
| 543 SyncedScrollOffset* synced_scroll_offset(); | 543 SyncedScrollOffset* synced_scroll_offset(); |
| 544 | 544 |
| 545 // Get the correct invalidation region instead of conservative Rect | 545 // Get the correct invalidation region instead of conservative Rect |
| 546 // for layers that provide it. | 546 // for layers that provide it. |
| 547 virtual Region GetInvalidationRegionForDebugging(); | 547 virtual Region GetInvalidationRegionForDebugging(); |
| 548 | 548 |
| 549 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; | 549 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; |
| 550 | 550 |
| 551 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn) { | 551 void set_scrolls_drawn_descendant(bool scrolls_drawn_descendant) { |
| 552 layer_or_descendant_is_drawn_ = layer_or_descendant_is_drawn; | 552 scrolls_drawn_descendant_ = scrolls_drawn_descendant; |
| 553 } | 553 } |
| 554 | 554 |
| 555 bool layer_or_descendant_is_drawn() { return layer_or_descendant_is_drawn_; } | 555 bool scrolls_drawn_descendant() { return scrolls_drawn_descendant_; } |
| 556 | 556 |
| 557 void set_layer_or_descendant_has_touch_handler( | 557 void set_layer_or_descendant_has_touch_handler( |
| 558 bool layer_or_descendant_has_touch_handler) { | 558 bool layer_or_descendant_has_touch_handler) { |
| 559 layer_or_descendant_has_touch_handler_ = | 559 layer_or_descendant_has_touch_handler_ = |
| 560 layer_or_descendant_has_touch_handler; | 560 layer_or_descendant_has_touch_handler; |
| 561 } | 561 } |
| 562 | 562 |
| 563 bool layer_or_descendant_has_touch_handler() { | 563 bool layer_or_descendant_has_touch_handler() { |
| 564 return layer_or_descendant_has_touch_handler_; | 564 return layer_or_descendant_has_touch_handler_; |
| 565 } | 565 } |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 | 747 |
| 748 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 748 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
| 749 owned_debug_info_; | 749 owned_debug_info_; |
| 750 base::trace_event::ConvertableToTraceFormat* debug_info_; | 750 base::trace_event::ConvertableToTraceFormat* debug_info_; |
| 751 std::unique_ptr<RenderSurfaceImpl> render_surface_; | 751 std::unique_ptr<RenderSurfaceImpl> render_surface_; |
| 752 | 752 |
| 753 bool force_render_surface_; | 753 bool force_render_surface_; |
| 754 | 754 |
| 755 std::vector<FrameTimingRequest> frame_timing_requests_; | 755 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 756 bool frame_timing_requests_dirty_; | 756 bool frame_timing_requests_dirty_; |
| 757 bool layer_or_descendant_is_drawn_; | 757 bool scrolls_drawn_descendant_; |
| 758 // If true, the layer or one of its descendants has a touch handler. | 758 // If true, the layer or one of its descendants has a touch handler. |
| 759 bool layer_or_descendant_has_touch_handler_; | 759 bool layer_or_descendant_has_touch_handler_; |
| 760 | 760 |
| 761 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 761 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 762 }; | 762 }; |
| 763 | 763 |
| 764 } // namespace cc | 764 } // namespace cc |
| 765 | 765 |
| 766 #endif // CC_LAYERS_LAYER_IMPL_H_ | 766 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |