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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 946323002: Animations: Introduce compositor AnimationPlayer and AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Support multiple timelines. Created 5 years, 9 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: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 65d50b98ebeab6a8da58e802e7f243f99d40b551..5f1b98b7ed99c04ed22e278d51d23bb656d6137b 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -4239,6 +4239,18 @@ void WebViewImpl::scheduleAnimation()
m_client->scheduleAnimation();
}
+void WebViewImpl::attachCompositorAnimationTimeline(WebCompositorAnimationTimeline* timeline)
+{
+ if (m_layerTreeView)
+ m_layerTreeView->attachCompositorAnimationTimeline(timeline);
+}
+
+void WebViewImpl::detachCompositorAnimationTimeline(WebCompositorAnimationTimeline* timeline)
+{
+ if (m_layerTreeView)
+ m_layerTreeView->detachCompositorAnimationTimeline(timeline);
+}
+
void WebViewImpl::initializeLayerTreeView()
{
if (m_client) {

Powered by Google App Engine
This is Rietveld 408576698