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

Unified Diff: cc/layers/layer_unittest.cc

Issue 1700653002: CC Animation: Expose TargetProperty enum to be aliased in Blink Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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/test/animation_test_common.h » ('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 a1d18ae6771fffcd4436e9c28110feeb6b10d0e4..59b05c944df80baeea09f853b3ec7a80ba552e95 100644
--- a/cc/layers/layer_unittest.cc
+++ b/cc/layers/layer_unittest.cc
@@ -1708,7 +1708,7 @@ TEST_F(LayerTest,
AddOpacityTransitionToController(impl_layer->layer_animation_controller(),
1.0, 0.3f, 0.7f, false);
impl_layer->layer_animation_controller()
- ->GetAnimation(Animation::OPACITY)
+ ->GetAnimation(TargetProperty::OPACITY)
->set_is_impl_only(true);
}
EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetOpacity(0.75f));
@@ -1759,7 +1759,7 @@ TEST_F(LayerTest,
AddAnimatedFilterToController(impl_layer->layer_animation_controller(), 1.0,
1.f, 2.f);
impl_layer->layer_animation_controller()
- ->GetAnimation(Animation::FILTER)
+ ->GetAnimation(TargetProperty::FILTER)
->set_is_impl_only(true);
}
filters.Append(FilterOperation::CreateSepiaFilter(0.5f));
@@ -2093,7 +2093,7 @@ static bool AddTestAnimation(Layer* layer) {
curve->AddKeyframe(
FloatKeyframe::Create(base::TimeDelta::FromSecondsD(1.0), 0.7f, nullptr));
scoped_ptr<Animation> animation =
- Animation::Create(std::move(curve), 0, 0, Animation::OPACITY);
+ Animation::Create(std::move(curve), 0, 0, TargetProperty::OPACITY);
return layer->AddAnimation(std::move(animation));
}
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/test/animation_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698