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

Unified Diff: cc/test/animation_test_common.cc

Issue 2032643003: CC Animation: Erase EaseTimingFunction helpers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmock
Patch Set: Created 4 years, 7 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/input/top_controls_manager.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/animation_test_common.cc
diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc
index 5d542106d21c8066a5a1b5117f62571502c322bc..2d5dafb7ed91efbabecd344156ed4790e264fb67 100644
--- a/cc/test/animation_test_common.cc
+++ b/cc/test/animation_test_common.cc
@@ -10,6 +10,7 @@
#include "cc/animation/animation_player.h"
#include "cc/animation/element_animations.h"
#include "cc/animation/keyframed_animation_curve.h"
+#include "cc/animation/timing_function.h"
#include "cc/animation/transform_operations.h"
#include "cc/base/time_util.h"
#include "cc/layers/layer.h"
@@ -17,7 +18,6 @@
using cc::Animation;
using cc::AnimationCurve;
-using cc::EaseTimingFunction;
using cc::FloatKeyframe;
using cc::KeyframedFloatAnimationCurve;
using cc::KeyframedTransformAnimationCurve;
@@ -37,7 +37,8 @@ int AddOpacityTransition(Target* target,
std::unique_ptr<TimingFunction> func;
if (!use_timing_function)
- func = EaseTimingFunction::Create();
+ func = CubicBezierTimingFunction::CreatePreset(
+ CubicBezierTimingFunction::EaseType::EASE);
if (duration > 0.0)
curve->AddKeyframe(FloatKeyframe::Create(base::TimeDelta(), start_opacity,
std::move(func)));
« no previous file with comments | « cc/input/top_controls_manager.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698