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

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

Issue 1405993008: compositor-worker: plumb element id and mutable properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix rebase error. Created 5 years 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 | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.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 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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 // TODO(weiliangc): this should move to the effect tree. 539 // TODO(weiliangc): this should move to the effect tree.
540 void set_num_layer_or_descendant_with_copy_request( 540 void set_num_layer_or_descendant_with_copy_request(
541 int num_layer_or_descendants_with_copy_request) { 541 int num_layer_or_descendants_with_copy_request) {
542 num_layer_or_descendants_with_copy_request_ = 542 num_layer_or_descendants_with_copy_request_ =
543 num_layer_or_descendants_with_copy_request; 543 num_layer_or_descendants_with_copy_request;
544 } 544 }
545 int num_layer_or_descendants_with_copy_request() { 545 int num_layer_or_descendants_with_copy_request() {
546 return num_layer_or_descendants_with_copy_request_; 546 return num_layer_or_descendants_with_copy_request_;
547 } 547 }
548 548
549 void SetElementId(uint64_t id);
550 uint64_t element_id() const { return element_id_; }
551
552 void SetMutableProperties(uint32_t properties);
553 uint32_t mutable_properties() const { return mutable_properties_; }
554
549 void set_visited(bool visited); 555 void set_visited(bool visited);
550 bool visited(); 556 bool visited();
551 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn); 557 void set_layer_or_descendant_is_drawn(bool layer_or_descendant_is_drawn);
552 bool layer_or_descendant_is_drawn(); 558 bool layer_or_descendant_is_drawn();
553 void set_sorted_for_recursion(bool sorted_for_recursion); 559 void set_sorted_for_recursion(bool sorted_for_recursion);
554 bool sorted_for_recursion(); 560 bool sorted_for_recursion();
555 561
556 // LayerAnimationValueProvider implementation. 562 // LayerAnimationValueProvider implementation.
557 gfx::ScrollOffset ScrollOffsetForAnimation() const override; 563 gfx::ScrollOffset ScrollOffsetForAnimation() const override;
558 564
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 // This variable indicates which ancestor layer (if any) whose size, 706 // This variable indicates which ancestor layer (if any) whose size,
701 // transformed relative to this layer, defines the maximum scroll offset for 707 // transformed relative to this layer, defines the maximum scroll offset for
702 // this layer. 708 // this layer.
703 int scroll_clip_layer_id_; 709 int scroll_clip_layer_id_;
704 int num_descendants_that_draw_content_; 710 int num_descendants_that_draw_content_;
705 int transform_tree_index_; 711 int transform_tree_index_;
706 int effect_tree_index_; 712 int effect_tree_index_;
707 int clip_tree_index_; 713 int clip_tree_index_;
708 int property_tree_sequence_number_; 714 int property_tree_sequence_number_;
709 int num_layer_or_descendants_with_copy_request_; 715 int num_layer_or_descendants_with_copy_request_;
716 uint64_t element_id_;
717 uint32_t mutable_properties_;
710 gfx::Vector2dF offset_to_transform_parent_; 718 gfx::Vector2dF offset_to_transform_parent_;
711 bool should_flatten_transform_from_property_tree_ : 1; 719 bool should_flatten_transform_from_property_tree_ : 1;
712 bool should_scroll_on_main_thread_ : 1; 720 bool should_scroll_on_main_thread_ : 1;
713 bool have_wheel_event_handlers_ : 1; 721 bool have_wheel_event_handlers_ : 1;
714 bool have_scroll_event_handlers_ : 1; 722 bool have_scroll_event_handlers_ : 1;
715 bool user_scrollable_horizontal_ : 1; 723 bool user_scrollable_horizontal_ : 1;
716 bool user_scrollable_vertical_ : 1; 724 bool user_scrollable_vertical_ : 1;
717 bool is_root_for_isolated_group_ : 1; 725 bool is_root_for_isolated_group_ : 1;
718 bool is_container_for_fixed_position_layers_ : 1; 726 bool is_container_for_fixed_position_layers_ : 1;
719 bool is_drawable_ : 1; 727 bool is_drawable_ : 1;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 783
776 std::vector<FrameTimingRequest> frame_timing_requests_; 784 std::vector<FrameTimingRequest> frame_timing_requests_;
777 bool frame_timing_requests_dirty_; 785 bool frame_timing_requests_dirty_;
778 786
779 DISALLOW_COPY_AND_ASSIGN(Layer); 787 DISALLOW_COPY_AND_ASSIGN(Layer);
780 }; 788 };
781 789
782 } // namespace cc 790 } // namespace cc
783 791
784 #endif // CC_LAYERS_LAYER_H_ 792 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698