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

Unified Diff: Source/core/animation/CompositorAnimations.h

Issue 51943004: Creating a helper class for reversing timing functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
Index: Source/core/animation/CompositorAnimations.h
diff --git a/Source/core/animation/CompositorAnimations.h b/Source/core/animation/CompositorAnimations.h
index d95196d3a9acc5c26ba155f92282d22097cd5fc1..a21ac367d3c76aa591b6760ee0a0fd1b34ffc51b 100644
--- a/Source/core/animation/CompositorAnimations.h
+++ b/Source/core/animation/CompositorAnimations.h
@@ -39,6 +39,17 @@ namespace WebCore {
class Element;
class AnimationEffect;
+// Reverse the timing function so that t=0 becomes t=1, t=1 becomes t=0 and
+// t=0.5 stays the same.
Steve Block 2013/11/06 06:06:23 This is a little vague. Given an input timing func
mithro-old 2013/11/07 01:02:37 Done.
+// FIXME: Remove once the Compositor natively understands reversing time.
+class CompositorAnimationsTimingFunctionReverser {
+public:
+ static PassRefPtr<TimingFunction> reverse(const LinearTimingFunction* timefunc);
+ static PassRefPtr<TimingFunction> reverse(const CubicBezierTimingFunction* timefunc);
+ static PassRefPtr<TimingFunction> reverse(const ChainedTimingFunction* timefunc);
Steve Block 2013/11/06 06:06:23 Do the type-specific reverse methods need to be in
mithro-old 2013/11/07 01:02:37 Done.
+ static PassRefPtr<TimingFunction> reverse(const TimingFunction* timefunc);
+};
+
class CompositorAnimations {
public:
« no previous file with comments | « no previous file | Source/core/animation/CompositorAnimations.cpp » ('j') | Source/core/animation/CompositorAnimations.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698