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

Unified Diff: third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp

Issue 1944623002: CC Animation: Use ElementId to attach CC animation players. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasedomids
Patch Set: Let CC clients generate their own ElementIds locally. Created 4 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
Index: third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp
diff --git a/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp b/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp
index b5a056d37a90622ff5f6e57234f1c444ad8fb8f4..2afc768590689197505e61d3945d74962e14f401 100644
--- a/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp
+++ b/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp
@@ -38,17 +38,17 @@ void CompositorAnimationPlayer::setAnimationDelegate(CompositorAnimationDelegate
m_animationPlayer->set_animation_delegate(delegate ? this : nullptr);
}
-void CompositorAnimationPlayer::attachLayer(WebLayer* webLayer)
+void CompositorAnimationPlayer::attachElement(CompositorElementId elementId)
{
- m_animationPlayer->AttachElement(webLayer->id());
+ m_animationPlayer->AttachElement(elementId);
}
-void CompositorAnimationPlayer::detachLayer()
+void CompositorAnimationPlayer::detachElement()
{
m_animationPlayer->DetachElement();
}
-bool CompositorAnimationPlayer::isLayerAttached() const
+bool CompositorAnimationPlayer::isElementAttached() const
{
return m_animationPlayer->element_id() != 0;
}

Powered by Google App Engine
This is Rietveld 408576698