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

Unified Diff: Source/core/platform/animation/TimingFunction.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/platform/animation/TimingFunction.h
diff --git a/Source/core/platform/animation/TimingFunction.h b/Source/core/platform/animation/TimingFunction.h
index eb94f3b4ef4cb1e61cca08d1456938b7ebff4579..26ffd7a698580397a10b3f0ac05d75b80754b36a 100644
--- a/Source/core/platform/animation/TimingFunction.h
+++ b/Source/core/platform/animation/TimingFunction.h
@@ -281,6 +281,9 @@ private:
double m_max;
RefPtr<TimingFunction> m_timingFunction;
+ // Allow the compositor to reverse the timing function.
+ friend class CompositorAnimationsTimingFunctionReverser;
+
// Allow PrintTo/operator== of the segments. Can be removed once
// ChainedTimingFunction has a public API for segments.
friend class ChainedTimingFunctionTestHelper;
@@ -294,6 +297,9 @@ private:
Vector<Segment> m_segments;
+ // Allow the compositor to reverse the timing function.
+ friend class CompositorAnimationsTimingFunctionReverser;
+
// Allow PrintTo/operator== of the segments. Can be removed once
// ChainedTimingFunction has a public API for segments.
friend class ChainedTimingFunctionTestHelper;
« Source/core/animation/CompositorAnimationsTest.cpp ('K') | « Source/core/core.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698