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

Unified Diff: sky/engine/core/animation/InterpolationEffect.cpp

Issue 1229273004: Remove Animations and Transitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
Index: sky/engine/core/animation/InterpolationEffect.cpp
diff --git a/sky/engine/core/animation/InterpolationEffect.cpp b/sky/engine/core/animation/InterpolationEffect.cpp
deleted file mode 100644
index e579f513a1ea70182d8df8bfceecdb547dc8d9c2..0000000000000000000000000000000000000000
--- a/sky/engine/core/animation/InterpolationEffect.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sky/engine/core/animation/InterpolationEffect.h"
-
-namespace blink {
-
-PassOwnPtr<Vector<RefPtr<Interpolation> > > InterpolationEffect::getActiveInterpolations(double fraction, double iterationDuration) const
-{
-
- Vector<RefPtr<Interpolation> >* result = new Vector<RefPtr<Interpolation> >();
-
- for (size_t i = 0; i < m_interpolations.size(); ++i) {
- const InterpolationRecord* record = m_interpolations[i].get();
- if (fraction >= record->m_applyFrom && fraction < record->m_applyTo) {
- RefPtr<Interpolation> interpolation = record->m_interpolation;
- double localFraction = (fraction - record->m_start) / (record->m_end - record->m_start);
- if (record->m_easing)
- localFraction = record->m_easing->evaluate(localFraction, accuracyForDuration(iterationDuration));
- interpolation->interpolate(0, localFraction);
- result->append(interpolation);
- }
- }
-
- return adoptPtr(result);
-}
-
-}
« no previous file with comments | « sky/engine/core/animation/InterpolationEffect.h ('k') | sky/engine/core/animation/InterpolationEffectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698