Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: cc/layers/layer_impl.h

Issue 1882413006: cc: Construct the RSLL without using layer hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698