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

Unified Diff: content/renderer/render_widget.cc

Issue 11783037: Not for review: Enable accelerated animations for orphaned layers (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Wait for layout to complete before starting orphaned animations Created 7 years, 11 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 | « cc/thread_proxy.cc ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index f3cbedf90b13b8c23e499389c0f4ff04d2474a57..29252a03099a2265b7f1739dae4c6d458910058d 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -915,7 +915,8 @@ void RenderWidget::AnimateIfNeeded() {
animation_update_pending_ = false;
if (is_accelerated_compositing_active_ && web_layer_tree_view_) {
web_layer_tree_view_->layer_tree_host()->updateAnimations(
- base::TimeTicks::Now());
+ base::TimeTicks::Now(),
+ now);
} else {
webwidget_->animate(0.0);
}
« no previous file with comments | « cc/thread_proxy.cc ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698