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

Unified Diff: ui/compositor/compositor_switches.cc

Issue 1141583003: ui: Turn on slimming paint by default with impl-side painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor_switches.cc
diff --git a/ui/compositor/compositor_switches.cc b/ui/compositor/compositor_switches.cc
index 7b8fed3ca9890f634a8b89575913a91cd21a18ab..a8cb8017515b050c25e0c07cde0ee3af5f1b398f 100644
--- a/ui/compositor/compositor_switches.cc
+++ b/ui/compositor/compositor_switches.cc
@@ -22,7 +22,7 @@ const char kUIEnableCompositorAnimationTimelines[] =
const char kUIEnableImplSidePainting[] = "ui-enable-impl-side-painting";
-const char kUIEnableSlimmingPaint[] = "ui-enable-slimming-paint";
+const char kUIDisableSlimmingPaint[] = "ui-disable-slimming-paint";
const char kUIEnableZeroCopy[] = "ui-enable-zero-copy";
@@ -52,7 +52,7 @@ bool IsUIOneCopyEnabled() {
bool IsUISlimmingPaintEnabled() {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
- return command_line.HasSwitch(switches::kUIEnableSlimmingPaint);
+ return !command_line.HasSwitch(switches::kUIDisableSlimmingPaint);
}
} // namespace ui
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698