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

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

Issue 1308053006: CC Animations: Enable external animation host for blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Restore whitespace_file.txt Created 5 years 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/public/common/content_switches.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | 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 15dbc68df592cbe308ea4b15f9e4c4e27e484309..10e7bac5578ed6efb608071160d23bf09a4a0b29 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -249,10 +249,10 @@ void RenderWidgetCompositor::Initialize() {
settings.accelerated_animation_enabled =
compositor_deps_->IsThreadedAnimationEnabled();
- if (cmd->HasSwitch(switches::kEnableCompositorAnimationTimelines)) {
- settings.use_compositor_animation_timelines = true;
- blink::WebRuntimeFeatures::enableCompositorAnimationTimelines(true);
- }
+ settings.use_compositor_animation_timelines =
+ !cmd->HasSwitch(switches::kDisableCompositorAnimationTimelines);
+ blink::WebRuntimeFeatures::enableCompositorAnimationTimelines(
+ settings.use_compositor_animation_timelines);
settings.default_tile_size = CalculateDefaultTileSize(widget_);
if (cmd->HasSwitch(switches::kDefaultTileWidth)) {
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698