diff options
author | dstockwell@chromium.org <dstockwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-10 01:21:49 +0000 |
---|---|---|
committer | dstockwell@chromium.org <dstockwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-10 01:21:49 +0000 |
commit | 48c46ebdd30b499ed153efc88e8f67468cc1d0e2 (patch) | |
tree | 9834c2ab84f58569ddb125c31749adae6904bc08 /cc/layers/layer_impl.h | |
parent | 2b3c3e1ec12d742b412c0bcdc85d0a6b35352dee (diff) | |
download | chromium_src-48c46ebdd30b499ed153efc88e8f67468cc1d0e2.zip chromium_src-48c46ebdd30b499ed153efc88e8f67468cc1d0e2.tar.gz chromium_src-48c46ebdd30b499ed153efc88e8f67468cc1d0e2.tar.bz2 |
Revert of Split preserve3d into: "should-flatten" and "is-3d-sorted" (https://codereview.chromium.org/147833003/)
Reason for revert:
Introduces flakiness in Blink layout tests:
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%2540ToT%2520Blink&tests=compositing%252Fbackface-visibility-transformed
Original issue's description:
> Split preserve3d into: "should-flatten" and "is-3d-sorted"
>
> Preserve3d has implications for both sorting and flattening of
> transforms. This is a bummer. Sometimes we want to allow a transform to
> remain unflattened, but we don't want that to affect 3d sorting. With
> this CL, we will have the ability to do that.
>
> Note: this is essentially this cl
> https://codereview.chromium.org/100393005/
>
> ..minus the generalizations to sorting that were being attempted in that
> patch.
>
> Note, this CL is gated on https://codereview.chromium.org/98373011/
>
> R=enne@chromium.org
> BUG=338980
>
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249974
TBR=enne@chromium.org,shawnsingh@chromium.org,vollick@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=338980
Review URL: https://codereview.chromium.org/158563003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250031 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/layer_impl.h')
-rw-r--r-- | cc/layers/layer_impl.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h index da00bca..36ce818 100644 --- a/cc/layers/layer_impl.h +++ b/cc/layers/layer_impl.h @@ -68,8 +68,6 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, typedef LayerImplList LayerListType; typedef RenderSurfaceImpl RenderSurfaceType; - enum RenderingContextConstants { NO_RENDERING_CONTEXT = 0 }; - static scoped_ptr<LayerImpl> Create(LayerTreeImpl* tree_impl, int id) { return make_scoped_ptr(new LayerImpl(tree_impl, id)); } @@ -262,11 +260,8 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, return position_constraint_; } - void SetShouldFlattenTransform(bool flatten); - bool should_flatten_transform() const { return should_flatten_transform_; } - - void SetIs3dSorted(bool sorted); - bool is_3d_sorted() const { return is_3d_sorted_; } + void SetPreserves3d(bool preserves_3d); + bool preserves_3d() const { return preserves_3d_; } void SetUseParentBackfaceVisibility(bool use) { use_parent_backface_visibility_ = use; @@ -591,7 +586,6 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, bool stacking_order_changed_ : 1; // Whether the "back" of this layer should draw. bool double_sided_ : 1; - bool should_flatten_transform_ : 1; // Tracks if drawing-related properties have changed since last redraw. bool layer_property_changed_ : 1; @@ -599,6 +593,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, bool masks_to_bounds_ : 1; bool contents_opaque_ : 1; bool is_root_for_isolated_group_ : 1; + bool preserves_3d_ : 1; bool use_parent_backface_visibility_ : 1; bool draw_checkerboard_for_missing_tiles_ : 1; bool draws_content_ : 1; @@ -607,7 +602,6 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, // Set for the layer that other layers are fixed to. bool is_container_for_fixed_position_layers_ : 1; - bool is_3d_sorted_ : 1; Region non_fast_scrollable_region_; Region touch_event_handler_region_; SkColor background_color_; |