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

Unified Diff: cc/base/switches.cc

Issue 69343005: Added preliminary support for tile rasterization with Ganesh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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: cc/base/switches.cc
diff --git a/cc/base/switches.cc b/cc/base/switches.cc
index be4a2c55adfbcb22214a0a92439f59da8fd112e2..3ec503dd6ff8c6a6424d7473c219e4f7c03629a8 100644
--- a/cc/base/switches.cc
+++ b/cc/base/switches.cc
@@ -151,6 +151,9 @@ const char kDisable4444Textures[] = "disable-4444-textures";
const char kDisableCompositorTouchHitTesting[] =
"disable-compositor-touch-hit-testing";
+// Enable tile rasterization with Ganesh.
+const char kEnableGpuRasterizing[] = "enable-gpu-rasterizing";
+
bool IsLCDTextEnabled() {
const CommandLine* command_line = CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(cc::switches::kDisableLCDText))
@@ -198,5 +201,10 @@ bool IsMapImageEnabled() {
return false;
}
+bool IsGpuRasterizingEnabled() {
reveman 2013/11/24 21:56:57 Do we need this helper function when it just retur
slavi 2013/11/25 23:13:14 Also removed. See humper's patch.
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ return command_line.HasSwitch(cc::switches::kEnableGpuRasterizing);
+}
+
} // namespace switches
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698