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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 12334041: Enable accelerated animations for orphaned layers (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Also test LTH with no registrar Created 7 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
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index 85bd2f7e5ad5c1612df2acc6e87cc608454000ba..26c447493b9431e12e5269ba4e20b1fee93150c9 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -335,6 +335,12 @@ void RenderWidgetCompositor::didStopFlinging() {
layer_tree_host_->didStopFlinging();
}
+void RenderWidgetCompositor::registerForAnimations(WebKit::WebLayer* layer) {
+ cc::Layer* cc_layer = static_cast<WebKit::WebLayerImpl*>(layer)->layer();
+ cc_layer->layerAnimationController()->setAnimationRegistrar(
+ layer_tree_host_->animationRegistrar());
+}
+
bool RenderWidgetCompositor::compositeAndReadback(void *pixels,
const WebRect& rect) {
return layer_tree_host_->compositeAndReadback(pixels, rect);
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698