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

Unified Diff: cc/CCActiveGestureAnimation.cpp

Issue 10917153: Update cc snapshot to r127918 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/CCActiveGestureAnimation.h ('k') | cc/CCDirectRenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCActiveGestureAnimation.cpp
diff --git a/cc/CCActiveGestureAnimation.cpp b/cc/CCActiveGestureAnimation.cpp
deleted file mode 100644
index b8542e75306ad09e7bbaaaba3d24cd1ac1318bfe..0000000000000000000000000000000000000000
--- a/cc/CCActiveGestureAnimation.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2012 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 "config.h"
-
-#include "CCActiveGestureAnimation.h"
-
-#include "CCGestureCurve.h"
-#include "TraceEvent.h"
-
-namespace WebCore {
-
-PassOwnPtr<CCActiveGestureAnimation> CCActiveGestureAnimation::create(PassOwnPtr<CCGestureCurve> curve, CCGestureCurveTarget* target)
-{
- return adoptPtr(new CCActiveGestureAnimation(curve, target));
-}
-
-CCActiveGestureAnimation::CCActiveGestureAnimation(PassOwnPtr<CCGestureCurve> curve, CCGestureCurveTarget* target)
- : m_startTime(0)
- , m_waitingForFirstTick(true)
- , m_gestureCurve(curve)
- , m_gestureCurveTarget(target)
-{
- TRACE_EVENT_ASYNC_BEGIN1("input", "GestureAnimation", this, "curve", m_gestureCurve->debugName());
-}
-
-CCActiveGestureAnimation::~CCActiveGestureAnimation()
-{
- TRACE_EVENT_ASYNC_END0("input", "GestureAnimation", this);
-}
-
-bool CCActiveGestureAnimation::animate(double monotonicTime)
-{
- if (m_waitingForFirstTick) {
- m_startTime = monotonicTime;
- m_waitingForFirstTick = false;
- }
-
- // CCGestureCurves used zero-based time, so subtract start-time.
- return m_gestureCurve->apply(monotonicTime - m_startTime, m_gestureCurveTarget);
-}
-
-} // namespace WebCore
« no previous file with comments | « cc/CCActiveGestureAnimation.h ('k') | cc/CCDirectRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698