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

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

Issue 986173002: Animations: Implement runtime flag for enabling compositor animation timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename command line switch (as discussed). 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: 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 c01231ece0675a9256bef05c8322dde5a74d07c6..507879ac69f1c575a5eaab9d5adc22e15d1aa2d3 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -216,6 +216,10 @@ void RenderWidgetCompositor::Initialize() {
settings.record_full_layer =
!blink::WebRuntimeFeatures::slimmingPaintDisplayItemCacheEnabled();
}
+ if (cmd->HasSwitch(cc::switches::kEnableCompositorAnimationTimelines)) {
+ settings.use_compositor_animation_timelines = true;
+ blink::WebRuntimeFeatures::enableCompositorAnimationTimelines(true);
+ }
settings.default_tile_size = CalculateDefaultTileSize();
if (cmd->HasSwitch(switches::kDefaultTileWidth)) {
« cc/base/switches.h ('K') | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698