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

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

Issue 1131833002: [Sketch] Animations: Torpedo the old intrusive animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scroll
Patch Set: Delete more. Created 5 years, 7 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 | « Source/platform/graphics/GraphicsLayer.h ('k') | Source/platform/graphics/GraphicsLayerClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index 940839557fb9c270d99e6b0d1d20a4cdb23d31ef..efc69aaf9c58287e3972a3dfcaba689030e47b66 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -1049,27 +1049,6 @@ void GraphicsLayer::setContentsToNinePatch(Image* image, const IntRect& aperture
setContentsTo(m_ninePatchLayer ? m_ninePatchLayer->layer() : 0);
}
-bool GraphicsLayer::addAnimation(PassOwnPtr<WebCompositorAnimation> popAnimation)
-{
- OwnPtr<WebCompositorAnimation> animation(popAnimation);
- ASSERT(animation);
- platformLayer()->setAnimationDelegate(this);
-
- // Remove any existing animations with the same animation id and target property.
- platformLayer()->removeAnimation(animation->id(), animation->targetProperty());
- return platformLayer()->addAnimation(animation.leakPtr());
-}
-
-void GraphicsLayer::pauseAnimation(int animationId, double timeOffset)
-{
- platformLayer()->pauseAnimation(animationId, timeOffset);
-}
-
-void GraphicsLayer::removeAnimation(int animationId)
-{
- platformLayer()->removeAnimation(animationId);
-}
-
WebLayer* GraphicsLayer::platformLayer() const
{
return m_layer->layer();
@@ -1134,18 +1113,6 @@ void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip)
}
-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::didScroll()
{
if (m_scrollableArea) {
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.h ('k') | Source/platform/graphics/GraphicsLayerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698