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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 1739743003: Blink Compositor Animation: Erase old animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exclude histograms.xml 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/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 6728acc554f25c70ac8734bf80b0f4008b10b071..e2844055c323426b3bc897a9dee3eb8dc9f20e62 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -32,7 +32,6 @@
#include "platform/DragImage.h"
#include "platform/JSONValues.h"
#include "platform/TraceEvent.h"
-#include "platform/animation/CompositorAnimation.h"
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/LayoutRect.h"
#include "platform/graphics/BitmapImage.h"
@@ -1122,28 +1121,6 @@ void GraphicsLayer::setContentsToImage(Image* image, RespectImageOrientationEnum
setContentsTo(m_imageLayer ? m_imageLayer->layer() : 0);
}
-bool GraphicsLayer::addAnimation(PassOwnPtr<CompositorAnimation> animation)
-{
- ASSERT(animation);
- platformLayer()->setAnimationDelegate(this);
- return platformLayer()->addAnimation(animation->releaseCCAnimation());
-}
-
-void GraphicsLayer::pauseAnimation(int animationId, double timeOffset)
-{
- platformLayer()->pauseAnimation(animationId, timeOffset);
-}
-
-void GraphicsLayer::removeAnimation(int animationId)
-{
- platformLayer()->removeAnimation(animationId);
-}
-
-void GraphicsLayer::abortAnimation(int animationId)
-{
- platformLayer()->abortAnimation(animationId);
-}
-
WebLayer* GraphicsLayer::platformLayer() const
{
return m_layer->layer();
@@ -1208,24 +1185,6 @@ void GraphicsLayer::setScrollableArea(ScrollableArea* scrollableArea, bool isVie
m_layer->layer()->setScrollClient(this);
}
-void GraphicsLayer::notifyAnimationStarted(double monotonicTime, int group)
-{
- if (m_client)
- m_client->notifyAnimationStarted(this, monotonicTime, group);
-}
-
-void GraphicsLayer::notifyAnimationFinished(double, int group)
-{
- if (m_scrollableArea)
- m_scrollableArea->notifyCompositorAnimationFinished(group);
-}
-
-void GraphicsLayer::notifyAnimationAborted(double, int group)
-{
- if (m_scrollableArea)
- m_scrollableArea->notifyCompositorAnimationAborted(group);
-}
-
void GraphicsLayer::didScroll()
{
if (m_scrollableArea) {

Powered by Google App Engine
This is Rietveld 408576698