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

Side by Side Diff: cc/layers/layer_impl.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 | « cc/layers/layer.cc ('k') | 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 const gfx::PointF& screen_space_point, 441 const gfx::PointF& screen_space_point,
442 InputHandler::ScrollInputType type) const; 442 InputHandler::ScrollInputType type) const;
443 443
444 void SetDoubleSided(bool double_sided); 444 void SetDoubleSided(bool double_sided);
445 bool double_sided() const { return double_sided_; } 445 bool double_sided() const { return double_sided_; }
446 446
447 void SetTransform(const gfx::Transform& transform); 447 void SetTransform(const gfx::Transform& transform);
448 const gfx::Transform& transform() const { return transform_; } 448 const gfx::Transform& transform() const { return transform_; }
449 bool TransformIsAnimating() const; 449 bool TransformIsAnimating() const;
450 bool TransformIsAnimatingOnImplOnly() const; 450 bool TransformIsAnimatingOnImplOnly() const;
451 void SetTransformAndInvertibility(const gfx::Transform& transform,
452 bool transform_is_invertible);
453 bool transform_is_invertible() const { return transform_is_invertible_; }
451 454
452 // Note this rect is in layer space (not content space). 455 // Note this rect is in layer space (not content space).
453 void SetUpdateRect(const gfx::RectF& update_rect); 456 void SetUpdateRect(const gfx::RectF& update_rect);
454 457
455 const gfx::RectF& update_rect() const { return update_rect_; } 458 const gfx::RectF& update_rect() const { return update_rect_; }
456 459
457 virtual base::DictionaryValue* LayerTreeAsJson() const; 460 virtual base::DictionaryValue* LayerTreeAsJson() const;
458 461
459 void SetStackingOrderChanged(bool stacking_order_changed); 462 void SetStackingOrderChanged(bool stacking_order_changed);
460 463
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 603
601 bool masks_to_bounds_ : 1; 604 bool masks_to_bounds_ : 1;
602 bool contents_opaque_ : 1; 605 bool contents_opaque_ : 1;
603 bool is_root_for_isolated_group_ : 1; 606 bool is_root_for_isolated_group_ : 1;
604 bool use_parent_backface_visibility_ : 1; 607 bool use_parent_backface_visibility_ : 1;
605 bool draw_checkerboard_for_missing_tiles_ : 1; 608 bool draw_checkerboard_for_missing_tiles_ : 1;
606 bool draws_content_ : 1; 609 bool draws_content_ : 1;
607 bool hide_layer_and_subtree_ : 1; 610 bool hide_layer_and_subtree_ : 1;
608 bool force_render_surface_ : 1; 611 bool force_render_surface_ : 1;
609 612
613 // Cache transform_'s invertibility.
614 bool transform_is_invertible_ : 1;
615
610 // Set for the layer that other layers are fixed to. 616 // Set for the layer that other layers are fixed to.
611 bool is_container_for_fixed_position_layers_ : 1; 617 bool is_container_for_fixed_position_layers_ : 1;
612 bool is_3d_sorted_ : 1; 618 bool is_3d_sorted_ : 1;
613 Region non_fast_scrollable_region_; 619 Region non_fast_scrollable_region_;
614 Region touch_event_handler_region_; 620 Region touch_event_handler_region_;
615 SkColor background_color_; 621 SkColor background_color_;
616 622
617 float opacity_; 623 float opacity_;
618 SkXfermode::Mode blend_mode_; 624 SkXfermode::Mode blend_mode_;
619 gfx::PointF position_; 625 gfx::PointF position_;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 DrawProperties<LayerImpl> draw_properties_; 673 DrawProperties<LayerImpl> draw_properties_;
668 674
669 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 675 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
670 676
671 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 677 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
672 }; 678 };
673 679
674 } // namespace cc 680 } // namespace cc
675 681
676 #endif // CC_LAYERS_LAYER_IMPL_H_ 682 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698