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

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

Issue 217313003: Stop displaying layers with non-invertible transforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test comment for cases 2-3. Created 6 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.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 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 bool IsContainerForFixedPositionLayers() const; 173 bool IsContainerForFixedPositionLayers() const;
174 174
175 void SetPositionConstraint(const LayerPositionConstraint& constraint); 175 void SetPositionConstraint(const LayerPositionConstraint& constraint);
176 const LayerPositionConstraint& position_constraint() const { 176 const LayerPositionConstraint& position_constraint() const {
177 return position_constraint_; 177 return position_constraint_;
178 } 178 }
179 179
180 void SetTransform(const gfx::Transform& transform); 180 void SetTransform(const gfx::Transform& transform);
181 const gfx::Transform& transform() const { return transform_; } 181 const gfx::Transform& transform() const { return transform_; }
182 bool TransformIsAnimating() const; 182 bool TransformIsAnimating() const;
183 bool transform_is_invertible() const { return transform_is_invertible_; }
183 184
184 void SetScrollParent(Layer* parent); 185 void SetScrollParent(Layer* parent);
185 186
186 Layer* scroll_parent() { return scroll_parent_; } 187 Layer* scroll_parent() { return scroll_parent_; }
187 const Layer* scroll_parent() const { return scroll_parent_; } 188 const Layer* scroll_parent() const { return scroll_parent_; }
188 189
189 void AddScrollChild(Layer* child); 190 void AddScrollChild(Layer* child);
190 void RemoveScrollChild(Layer* child); 191 void RemoveScrollChild(Layer* child);
191 192
192 std::set<Layer*>* scroll_children() { return scroll_children_.get(); } 193 std::set<Layer*>* scroll_children() { return scroll_children_.get(); }
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 bool is_drawable_ : 1; 585 bool is_drawable_ : 1;
585 bool hide_layer_and_subtree_ : 1; 586 bool hide_layer_and_subtree_ : 1;
586 bool masks_to_bounds_ : 1; 587 bool masks_to_bounds_ : 1;
587 bool contents_opaque_ : 1; 588 bool contents_opaque_ : 1;
588 bool double_sided_ : 1; 589 bool double_sided_ : 1;
589 bool should_flatten_transform_ : 1; 590 bool should_flatten_transform_ : 1;
590 bool use_parent_backface_visibility_ : 1; 591 bool use_parent_backface_visibility_ : 1;
591 bool draw_checkerboard_for_missing_tiles_ : 1; 592 bool draw_checkerboard_for_missing_tiles_ : 1;
592 bool force_render_surface_ : 1; 593 bool force_render_surface_ : 1;
593 bool is_3d_sorted_ : 1; 594 bool is_3d_sorted_ : 1;
595 bool transform_is_invertible_ : 1;
594 Region non_fast_scrollable_region_; 596 Region non_fast_scrollable_region_;
595 Region touch_event_handler_region_; 597 Region touch_event_handler_region_;
596 gfx::PointF position_; 598 gfx::PointF position_;
597 gfx::PointF anchor_point_; 599 gfx::PointF anchor_point_;
598 SkColor background_color_; 600 SkColor background_color_;
599 float opacity_; 601 float opacity_;
600 SkXfermode::Mode blend_mode_; 602 SkXfermode::Mode blend_mode_;
601 FilterOperations filters_; 603 FilterOperations filters_;
602 FilterOperations background_filters_; 604 FilterOperations background_filters_;
603 float anchor_point_z_; 605 float anchor_point_z_;
(...skipping 21 matching lines...) Expand all
625 DrawProperties<Layer> draw_properties_; 627 DrawProperties<Layer> draw_properties_;
626 628
627 PaintProperties paint_properties_; 629 PaintProperties paint_properties_;
628 630
629 DISALLOW_COPY_AND_ASSIGN(Layer); 631 DISALLOW_COPY_AND_ASSIGN(Layer);
630 }; 632 };
631 633
632 } // namespace cc 634 } // namespace cc
633 635
634 #endif // CC_LAYERS_LAYER_H_ 636 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698