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

Side by Side Diff: cc/base/switches.cc

Issue 25904004: Add --disable-compositor-touch-hit-testing flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable touch hit testing flag: fix uninitialized variable Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/base/switches.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/base/switches.h" 5 #include "cc/base/switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace cc { 9 namespace cc {
10 namespace switches { 10 namespace switches {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Disable rasterizer that writes directly to GPU memory. 137 // Disable rasterizer that writes directly to GPU memory.
138 // Overrides the kEnableMapImage flag. 138 // Overrides the kEnableMapImage flag.
139 const char kDisableMapImage[] = "disable-map-image"; 139 const char kDisableMapImage[] = "disable-map-image";
140 140
141 // Prevents the layer tree unit tests from timing out. 141 // Prevents the layer tree unit tests from timing out.
142 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; 142 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
143 143
144 // Disable textures using RGBA_4444 layout. 144 // Disable textures using RGBA_4444 layout.
145 const char kDisable4444Textures[] = "disable-4444-textures"; 145 const char kDisable4444Textures[] = "disable-4444-textures";
146 146
147 // Disable touch hit testing in the compositor.
148 const char kDisableCompositorTouchHitTesting[] =
149 "disable-compositor-touch-hit-testing";
150
147 bool IsLCDTextEnabled() { 151 bool IsLCDTextEnabled() {
148 const CommandLine* command_line = CommandLine::ForCurrentProcess(); 152 const CommandLine* command_line = CommandLine::ForCurrentProcess();
149 if (command_line->HasSwitch(cc::switches::kDisableLCDText)) 153 if (command_line->HasSwitch(cc::switches::kDisableLCDText))
150 return false; 154 return false;
151 else if (command_line->HasSwitch(cc::switches::kEnableLCDText)) 155 else if (command_line->HasSwitch(cc::switches::kEnableLCDText))
152 return true; 156 return true;
153 157
154 #if defined(OS_ANDROID) 158 #if defined(OS_ANDROID)
155 return false; 159 return false;
156 #else 160 #else
(...skipping 22 matching lines...) Expand all
179 if (command_line.HasSwitch(cc::switches::kDisableMapImage)) 183 if (command_line.HasSwitch(cc::switches::kDisableMapImage))
180 return false; 184 return false;
181 else if (command_line.HasSwitch(cc::switches::kEnableMapImage)) 185 else if (command_line.HasSwitch(cc::switches::kEnableMapImage))
182 return true; 186 return true;
183 187
184 return false; 188 return false;
185 } 189 }
186 190
187 } // namespace switches 191 } // namespace switches
188 } // namespace cc 192 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/switches.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698