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

Unified Diff: cc/layers/layer_unittest.cc

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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.cc ('k') | cc/layers/picture_image_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_unittest.cc
diff --git a/cc/layers/layer_unittest.cc b/cc/layers/layer_unittest.cc
index 8a615100378379a2a542c57aa989758ff558bcbb..460726f55335658ec76239bc5608fe9ea0e9314e 100644
--- a/cc/layers/layer_unittest.cc
+++ b/cc/layers/layer_unittest.cc
@@ -738,9 +738,8 @@ TEST_F(LayerTest,
1.0,
0,
100);
- impl_layer->layer_animation_controller()
- ->GetAnimation(Animation::TRANSFORM)
- ->set_is_impl_only(true);
+ impl_layer->layer_animation_controller()->GetAnimation(Animation::Transform)->
+ set_is_impl_only(true);
transform.Rotate(45.0);
EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform(transform));
@@ -780,9 +779,8 @@ TEST_F(LayerTest,
0.3f,
0.7f,
false);
- impl_layer->layer_animation_controller()
- ->GetAnimation(Animation::OPACITY)
- ->set_is_impl_only(true);
+ impl_layer->layer_animation_controller()->GetAnimation(Animation::Opacity)->
+ set_is_impl_only(true);
EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetOpacity(0.75f));
EXPECT_FALSE(impl_layer->LayerPropertyChanged());
@@ -817,9 +815,8 @@ TEST_F(LayerTest,
impl_layer->ResetAllChangeTrackingForSubtree();
AddAnimatedFilterToController(
impl_layer->layer_animation_controller(), 1.0, 1.f, 2.f);
- impl_layer->layer_animation_controller()
- ->GetAnimation(Animation::FILTER)
- ->set_is_impl_only(true);
+ impl_layer->layer_animation_controller()->GetAnimation(Animation::Filter)->
+ set_is_impl_only(true);
filters.Append(FilterOperation::CreateSepiaFilter(0.5f));
EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetFilters(filters));
@@ -1151,7 +1148,7 @@ static bool AddTestAnimation(Layer* layer) {
curve->AddKeyframe(
FloatKeyframe::Create(base::TimeDelta::FromSecondsD(1.0), 0.7f, nullptr));
scoped_ptr<Animation> animation =
- Animation::Create(curve.Pass(), 0, 0, Animation::OPACITY);
+ Animation::Create(curve.Pass(), 0, 0, Animation::Opacity);
return layer->AddAnimation(animation.Pass());
}
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/picture_image_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698