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 04df33c04d8889501f8360aa11efb148980fbdb6..2e9773552cc73afeda3562bab5972679ea79ebcc 100644 |
--- a/content/renderer/gpu/render_widget_compositor.cc |
+++ b/content/renderer/gpu/render_widget_compositor.cc |
@@ -246,10 +246,10 @@ |
settings.accelerated_animation_enabled = |
compositor_deps_->IsThreadedAnimationEnabled(); |
- settings.use_compositor_animation_timelines = |
- !cmd->HasSwitch(switches::kDisableCompositorAnimationTimelines); |
- blink::WebRuntimeFeatures::enableCompositorAnimationTimelines( |
- settings.use_compositor_animation_timelines); |
+ if (cmd->HasSwitch(switches::kEnableCompositorAnimationTimelines)) { |
+ settings.use_compositor_animation_timelines = true; |
+ blink::WebRuntimeFeatures::enableCompositorAnimationTimelines(true); |
+ } |
settings.default_tile_size = CalculateDefaultTileSize(widget_); |
if (cmd->HasSwitch(switches::kDefaultTileWidth)) { |