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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp

Issue 1616653002: CC Animation: Move files from cc_blink to Source/platform/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Fix copyrights and years. Created 4 years, 10 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: third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
index 17aecd654842c4a129b25e54776c9fd0c7a843db..e6f5aedf8f873c503c345b6c7957e3e791bcb656 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
@@ -5,11 +5,12 @@
#include "platform/scroll/ScrollAnimatorCompositorCoordinator.h"
#include "platform/RuntimeEnabledFeatures.h"
+#include "platform/animation/CompositorAnimationPlayer.h"
+#include "platform/animation/CompositorAnimationTimeline.h"
+#include "platform/graphics/CompositorFactory.h"
#include "platform/graphics/GraphicsLayer.h"
#include "platform/scroll/ScrollableArea.h"
#include "public/platform/Platform.h"
-#include "public/platform/WebCompositorAnimationPlayer.h"
-#include "public/platform/WebCompositorAnimationTimeline.h"
#include "public/platform/WebCompositorSupport.h"
namespace blink {
@@ -22,7 +23,7 @@ ScrollAnimatorCompositorCoordinator::ScrollAnimatorCompositorCoordinator()
{
if (RuntimeEnabledFeatures::compositorAnimationTimelinesEnabled()) {
ASSERT(Platform::current()->compositorSupport());
- m_compositorPlayer = adoptPtr(Platform::current()->compositorSupport()->createAnimationPlayer());
+ m_compositorPlayer = adoptPtr(CompositorFactory::current().createAnimationPlayer());
ASSERT(m_compositorPlayer);
m_compositorPlayer->setAnimationDelegate(this);
}
@@ -61,7 +62,7 @@ bool ScrollAnimatorCompositorCoordinator::hasAnimationThatRequiresService() cons
}
bool ScrollAnimatorCompositorCoordinator::addAnimation(
- PassOwnPtr<WebCompositorAnimation> animation)
+ PassOwnPtr<CompositorAnimation> animation)
{
if (m_compositorPlayer) {
if (m_compositorPlayer->isLayerAttached()) {
@@ -151,7 +152,7 @@ void ScrollAnimatorCompositorCoordinator::compositorAnimationFinished(
}
void ScrollAnimatorCompositorCoordinator::reattachCompositorPlayerIfNeeded(
- WebCompositorAnimationTimeline* timeline)
+ CompositorAnimationTimeline* timeline)
{
int compositorAnimationAttachedToLayerId = 0;
if (scrollableArea()->layerForScrolling())
@@ -196,7 +197,7 @@ void ScrollAnimatorCompositorCoordinator::notifyAnimationAborted(
notifyCompositorAnimationFinished(group);
}
-WebCompositorAnimationPlayer* ScrollAnimatorCompositorCoordinator::compositorPlayer() const
+CompositorAnimationPlayer* ScrollAnimatorCompositorCoordinator::compositorPlayer() const
{
return m_compositorPlayer.get();
}

Powered by Google App Engine
This is Rietveld 408576698