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

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

Issue 1169193003: [SP] Enable Slimming Paint by default in Chromium and Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge changes. Created 5 years, 6 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 4cca5041281593342a7d5cc06e0563eaa343e6bc..532b1bf0f430ab9e6b0ea8227f9abdaa4e86f30a 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -233,7 +233,8 @@ void RenderWidgetCompositor::Initialize() {
!compositor_deps_->IsElasticOverscrollEnabled();
settings.accelerated_animation_enabled =
!cmd->HasSwitch(cc::switches::kDisableThreadedAnimation);
- settings.use_display_lists = cmd->HasSwitch(switches::kEnableSlimmingPaint);
+ settings.use_display_lists = cmd->HasSwitch(switches::kEnableSlimmingPaint) ||
+ !cmd->HasSwitch(switches::kDisableSlimmingPaint);
if (cmd->HasSwitch(switches::kEnableCompositorAnimationTimelines)) {
settings.use_compositor_animation_timelines = true;
blink::WebRuntimeFeatures::enableCompositorAnimationTimelines(true);

Powered by Google App Engine
This is Rietveld 408576698