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

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

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « cc/input/input_handler.h ('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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 virtual void SetContentsOpaque(bool opaque); 168 virtual void SetContentsOpaque(bool opaque);
169 bool contents_opaque() const { return contents_opaque_; } 169 bool contents_opaque() const { return contents_opaque_; }
170 170
171 void SetPosition(const gfx::PointF& position); 171 void SetPosition(const gfx::PointF& position);
172 gfx::PointF position() const { return position_; } 172 gfx::PointF position() const { return position_; }
173 173
174 void SetIsContainerForFixedPositionLayers(bool container); 174 void SetIsContainerForFixedPositionLayers(bool container);
175 bool IsContainerForFixedPositionLayers() const; 175 bool IsContainerForFixedPositionLayers() const;
176 176
177 gfx::Vector2dF FixedContainerSizeDelta() const {
178 return gfx::Vector2dF();
179 }
180
177 void SetPositionConstraint(const LayerPositionConstraint& constraint); 181 void SetPositionConstraint(const LayerPositionConstraint& constraint);
178 const LayerPositionConstraint& position_constraint() const { 182 const LayerPositionConstraint& position_constraint() const {
179 return position_constraint_; 183 return position_constraint_;
180 } 184 }
181 185
182 void SetTransform(const gfx::Transform& transform); 186 void SetTransform(const gfx::Transform& transform);
183 const gfx::Transform& transform() const { return transform_; } 187 const gfx::Transform& transform() const { return transform_; }
184 bool TransformIsAnimating() const; 188 bool TransformIsAnimating() const;
185 bool AnimationsPreserveAxisAlignment() const; 189 bool AnimationsPreserveAxisAlignment() const;
186 bool transform_is_invertible() const { return transform_is_invertible_; } 190 bool transform_is_invertible() const { return transform_is_invertible_; }
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 void set_visible_rect_from_property_trees(const gfx::Rect& rect) { 501 void set_visible_rect_from_property_trees(const gfx::Rect& rect) {
498 visible_rect_from_property_trees_ = rect; 502 visible_rect_from_property_trees_ = rect;
499 } 503 }
500 504
501 gfx::Transform screen_space_transform_from_property_trees( 505 gfx::Transform screen_space_transform_from_property_trees(
502 const TransformTree& tree) const; 506 const TransformTree& tree) const;
503 gfx::Transform draw_transform_from_property_trees( 507 gfx::Transform draw_transform_from_property_trees(
504 const TransformTree& tree) const; 508 const TransformTree& tree) const;
505 float DrawOpacityFromPropertyTrees(const OpacityTree& tree) const; 509 float DrawOpacityFromPropertyTrees(const OpacityTree& tree) const;
506 510
511 void set_should_flatten_transform_from_property_tree(bool should_flatten) {
512 should_flatten_transform_from_property_tree_ = should_flatten;
513 }
514
507 // TODO(vollick): These values are temporary and will be removed as soon as 515 // TODO(vollick): These values are temporary and will be removed as soon as
508 // render surface determinations are moved out of CDP. They only exist because 516 // render surface determinations are moved out of CDP. They only exist because
509 // certain logic depends on whether or not a layer would render to a separate 517 // certain logic depends on whether or not a layer would render to a separate
510 // surface, but CDP destroys surfaces and targets it doesn't need, so without 518 // surface, but CDP destroys surfaces and targets it doesn't need, so without
511 // this boolean, this is impossible to determine after the fact without 519 // this boolean, this is impossible to determine after the fact without
512 // wastefully recomputing it. This is public for the time being so that it can 520 // wastefully recomputing it. This is public for the time being so that it can
513 // be accessed from CDP. 521 // be accessed from CDP.
514 bool has_render_surface() const { 522 bool has_render_surface() const {
515 return has_render_surface_; 523 return has_render_surface_;
516 } 524 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 gfx::Vector2dF scroll_compensation_adjustment_; 655 gfx::Vector2dF scroll_compensation_adjustment_;
648 // This variable indicates which ancestor layer (if any) whose size, 656 // This variable indicates which ancestor layer (if any) whose size,
649 // transformed relative to this layer, defines the maximum scroll offset for 657 // transformed relative to this layer, defines the maximum scroll offset for
650 // this layer. 658 // this layer.
651 int scroll_clip_layer_id_; 659 int scroll_clip_layer_id_;
652 int num_descendants_that_draw_content_; 660 int num_descendants_that_draw_content_;
653 int transform_tree_index_; 661 int transform_tree_index_;
654 int opacity_tree_index_; 662 int opacity_tree_index_;
655 int clip_tree_index_; 663 int clip_tree_index_;
656 gfx::Vector2dF offset_to_transform_parent_; 664 gfx::Vector2dF offset_to_transform_parent_;
665 bool should_flatten_transform_from_property_tree_ : 1;
657 bool should_scroll_on_main_thread_ : 1; 666 bool should_scroll_on_main_thread_ : 1;
658 bool have_wheel_event_handlers_ : 1; 667 bool have_wheel_event_handlers_ : 1;
659 bool have_scroll_event_handlers_ : 1; 668 bool have_scroll_event_handlers_ : 1;
660 bool user_scrollable_horizontal_ : 1; 669 bool user_scrollable_horizontal_ : 1;
661 bool user_scrollable_vertical_ : 1; 670 bool user_scrollable_vertical_ : 1;
662 bool is_root_for_isolated_group_ : 1; 671 bool is_root_for_isolated_group_ : 1;
663 bool is_container_for_fixed_position_layers_ : 1; 672 bool is_container_for_fixed_position_layers_ : 1;
664 bool is_drawable_ : 1; 673 bool is_drawable_ : 1;
665 bool draws_content_ : 1; 674 bool draws_content_ : 1;
666 bool hide_layer_and_subtree_ : 1; 675 bool hide_layer_and_subtree_ : 1;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 724
716 std::vector<FrameTimingRequest> frame_timing_requests_; 725 std::vector<FrameTimingRequest> frame_timing_requests_;
717 bool frame_timing_requests_dirty_; 726 bool frame_timing_requests_dirty_;
718 727
719 DISALLOW_COPY_AND_ASSIGN(Layer); 728 DISALLOW_COPY_AND_ASSIGN(Layer);
720 }; 729 };
721 730
722 } // namespace cc 731 } // namespace cc
723 732
724 #endif // CC_LAYERS_LAYER_H_ 733 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698