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

Unified Diff: cc/layers/layer_position_constraint_unittest.cc

Issue 332873005: Rendering context information added to SharedQuadState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer_tree_json_parser fix Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_position_constraint_unittest.cc
diff --git a/cc/layers/layer_position_constraint_unittest.cc b/cc/layers/layer_position_constraint_unittest.cc
index 269bc9656c57af57147eeaad03061078b3bc2bc8..d9e1f64bbc8fd6ce3fa60dadd71964901d581579 100644
--- a/cc/layers/layer_position_constraint_unittest.cc
+++ b/cc/layers/layer_position_constraint_unittest.cc
@@ -22,14 +22,12 @@ void SetLayerPropertiesForTesting(LayerImpl* layer,
const gfx::Point3F& transform_origin,
const gfx::PointF& position,
const gfx::Size& bounds,
- bool flatten_transform,
- bool is_3d_sorted) {
+ bool flatten_transform) {
layer->SetTransform(transform);
layer->SetTransformOrigin(transform_origin);
layer->SetPosition(position);
layer->SetBounds(bounds);
layer->SetShouldFlattenTransform(flatten_transform);
- layer->SetIs3dSorted(is_3d_sorted);
layer->SetContentBounds(bounds);
}
@@ -96,29 +94,21 @@ class LayerPositionConstraintTest : public testing::Test {
transform_origin,
position,
bounds,
- true,
- false);
- SetLayerPropertiesForTesting(child.get(),
- IdentityMatrix,
- transform_origin,
- position,
- bounds,
- true,
- false);
+ true);
+ SetLayerPropertiesForTesting(
+ child.get(), IdentityMatrix, transform_origin, position, bounds, true);
SetLayerPropertiesForTesting(grand_child.get(),
IdentityMatrix,
transform_origin,
position,
bounds,
- true,
- false);
+ true);
SetLayerPropertiesForTesting(great_grand_child.get(),
IdentityMatrix,
transform_origin,
position,
bounds,
- true,
- false);
+ true);
root->SetBounds(clip_bounds);
scroll_layer->SetScrollClipLayer(root->id());
@@ -744,8 +734,7 @@ TEST_F(LayerPositionConstraintTest,
gfx::Point3F(),
gfx::PointF(),
gfx::Size(100, 100),
- true,
- false);
+ true);
great_grand_child->AddChild(fixed_position_child.Pass());
}
LayerImpl* fixed_position_child = great_grand_child->children()[0];
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698