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

Unified Diff: cc/base/switches.cc

Issue 168183004: Turn on GPU rasterization when --enable-bleeding-edge-rendering-fast-paths is true. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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: cc/base/switches.cc
diff --git a/cc/base/switches.cc b/cc/base/switches.cc
index 1fb7ac98e37d6b3b87e1431a530bd25cd16a291e..60fc6bfa594cb8b4953e9e3a96d834b5aa8fd273 100644
--- a/cc/base/switches.cc
+++ b/cc/base/switches.cc
@@ -30,6 +30,14 @@ const char kDisableImplSidePainting[] = "disable-impl-side-painting";
// Enables LCD text.
const char kEnableLCDText[] = "enable-lcd-text";
+// Enable bleeding-edge code to make Chrome draw content faster. The changes
+// behind this path are very likely to break lots of content.
+// ** DO NOT use this flag unless you know what you are doing. **
+// This is the same flag as the one defined in
+// content/public/common/content_switches.cc.
jamesr 2014/02/22 00:30:04 no. if you want the behavior controlled by a cont
chrishtr 2014/02/22 00:33:11 Ok, I can do that, thanks for the pointer. I don
chrishtr 2014/02/22 00:38:43 Done.
+const char kEnableBleedingEdgeRenderingFastPaths[] =
+ "enable-bleeding-edge-rendering-fast-paths";
+
// Paint content on the compositor thread instead of the main thread.
const char kEnableImplSidePainting[] = "enable-impl-side-painting";
@@ -172,6 +180,9 @@ bool IsGpuRasterizationEnabled() {
return false;
else if (command_line.HasSwitch(switches::kEnableGPURasterization))
return true;
+ else if (command_line.HasSwitch(
+ switches::kEnableBleedingEdgeRenderingFastPaths))
+ return true;
return false;
}
« 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