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

Unified Diff: cc/CCAnimationCurve.cpp

Issue 10947047: Fix remaining cc files to compile with Clang (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FakeCCDelayBasedTimeSource Created 8 years, 3 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/CCAnimationCurve.h ('k') | cc/CCDebugRectHistory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCAnimationCurve.cpp
diff --git a/cc/CCAnimationCurve.cpp b/cc/CCAnimationCurve.cpp
index ae5ccdf2b0ae9c597b3ed22ece845ce30de229ba..7cd01587d4b29a7b57c93a3ebdf287f936936008 100644
--- a/cc/CCAnimationCurve.cpp
+++ b/cc/CCAnimationCurve.cpp
@@ -14,10 +14,20 @@ const CCFloatAnimationCurve* CCAnimationCurve::toFloatAnimationCurve() const
return static_cast<const CCFloatAnimationCurve*>(this);
}
+CCAnimationCurve::Type CCFloatAnimationCurve::type() const
+{
+ return Float;
+}
+
const CCTransformAnimationCurve* CCAnimationCurve::toTransformAnimationCurve() const
{
ASSERT(type() == CCAnimationCurve::Transform);
return static_cast<const CCTransformAnimationCurve*>(this);
}
+CCAnimationCurve::Type CCTransformAnimationCurve::type() const
+{
+ return Transform;
+}
+
} // namespace cc
« no previous file with comments | « cc/CCAnimationCurve.h ('k') | cc/CCDebugRectHistory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698