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

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

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed a signed vs. unsigned comparison in video_resource_updater.cc Created 7 years, 3 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
« no previous file with comments | « cc/base/switches.h ('k') | cc/cc.gyp » ('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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Enable rasterizer that writes directly to GPU memory. 134 // Enable rasterizer that writes directly to GPU memory.
135 const char kEnableMapImage[] = "enable-map-image"; 135 const char kEnableMapImage[] = "enable-map-image";
136 136
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.
145 const char kDisable4444Textures[] = "disable-4444-textures";
146
144 bool IsLCDTextEnabled() { 147 bool IsLCDTextEnabled() {
145 const CommandLine* command_line = CommandLine::ForCurrentProcess(); 148 const CommandLine* command_line = CommandLine::ForCurrentProcess();
146 if (command_line->HasSwitch(cc::switches::kDisableLCDText)) 149 if (command_line->HasSwitch(cc::switches::kDisableLCDText))
147 return false; 150 return false;
148 else if (command_line->HasSwitch(cc::switches::kEnableLCDText)) 151 else if (command_line->HasSwitch(cc::switches::kEnableLCDText))
149 return true; 152 return true;
150 153
151 #if defined(OS_ANDROID) 154 #if defined(OS_ANDROID)
152 return false; 155 return false;
153 #else 156 #else
(...skipping 22 matching lines...) Expand all
176 if (command_line.HasSwitch(cc::switches::kDisableMapImage)) 179 if (command_line.HasSwitch(cc::switches::kDisableMapImage))
177 return false; 180 return false;
178 else if (command_line.HasSwitch(cc::switches::kEnableMapImage)) 181 else if (command_line.HasSwitch(cc::switches::kEnableMapImage))
179 return true; 182 return true;
180 183
181 return false; 184 return false;
182 } 185 }
183 186
184 } // namespace switches 187 } // namespace switches
185 } // namespace cc 188 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/switches.h ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698