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

Unified Diff: cc/test/animation_test_common.h

Issue 2377223002: CC Animations: Rewrite unit tests to work with AnimationPlayer. (Closed)
Patch Set: Reparent. Created 4 years, 2 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/animation/scroll_offset_animations_impl.cc ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/animation_test_common.h
diff --git a/cc/test/animation_test_common.h b/cc/test/animation_test_common.h
index ba35c13cca2ce242fd3200343a0c6103c30bb953..588448fb73bb6e075e826c4ad751bd8f3acb5868 100644
--- a/cc/test/animation_test_common.h
+++ b/cc/test/animation_test_common.h
@@ -15,7 +15,6 @@
namespace cc {
class AnimationPlayer;
-class ElementAnimations;
class LayerImpl;
class Layer;
}
@@ -78,26 +77,10 @@ class FakeFloatTransition : public FloatAnimationCurve {
float to_;
};
-int AddScrollOffsetAnimationToElementAnimations(ElementAnimations* target,
- gfx::ScrollOffset initial_value,
- gfx::ScrollOffset target_value,
- bool impl_only);
-
-int AddOpacityTransitionToElementAnimations(ElementAnimations* target,
- double duration,
- float start_opacity,
- float end_opacity,
- bool use_timing_function);
-
-int AddAnimatedTransformToElementAnimations(ElementAnimations* target,
- double duration,
- int delta_x,
- int delta_y);
-
-int AddAnimatedFilterToElementAnimations(ElementAnimations* target,
- double duration,
- float start_brightness,
- float end_brightness);
+int AddScrollOffsetAnimationToPlayer(AnimationPlayer* player,
+ gfx::ScrollOffset initial_value,
+ gfx::ScrollOffset target_value,
+ bool impl_only);
int AddAnimatedTransformToPlayer(AnimationPlayer* player,
double duration,
@@ -120,11 +103,11 @@ int AddAnimatedFilterToPlayer(AnimationPlayer* player,
float start_brightness,
float end_brightness);
-int AddOpacityStepsToElementAnimations(ElementAnimations* target,
- double duration,
- float start_opacity,
- float end_opacity,
- int num_steps);
+int AddOpacityStepsToPlayer(AnimationPlayer* player,
+ double duration,
+ float start_opacity,
+ float end_opacity,
+ int num_steps);
void AddAnimationToElementWithPlayer(ElementId element_id,
scoped_refptr<AnimationTimeline> timeline,
@@ -173,11 +156,6 @@ int AddOpacityTransitionToElementWithPlayer(
float end_opacity,
bool use_timing_function);
-void AbortAnimationsOnElementWithPlayer(
- ElementId element_id,
- scoped_refptr<AnimationTimeline> timeline,
- TargetProperty::Type target_property);
-
} // namespace cc
#endif // CC_TEST_ANIMATION_TEST_COMMON_H_
« no previous file with comments | « cc/animation/scroll_offset_animations_impl.cc ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698