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

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

Issue 14409006: cc: Changes to use GL API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Add internalformat parameter to CreateImageCHROMIUM in fake_web_graphics_context_3d to fix clang bu… Created 7 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 unified diff | Download patch
« no previous file with comments | « cc/base/switches.h ('k') | cc/debug/fake_web_graphics_context_3d.h » ('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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Show rects in the HUD wherever something is known to be drawn opaque and is 125 // Show rects in the HUD wherever something is known to be drawn opaque and is
126 // considered occluding the pixels behind it. 126 // considered occluding the pixels behind it.
127 const char kShowOccludingRects[] = "show-occluding-rects"; 127 const char kShowOccludingRects[] = "show-occluding-rects";
128 const char kUIShowOccludingRects[] = "ui-show-occluding-rects"; 128 const char kUIShowOccludingRects[] = "ui-show-occluding-rects";
129 129
130 // Show rects in the HUD wherever something is not known to be drawn opaque and 130 // Show rects in the HUD wherever something is not known to be drawn opaque and
131 // is not considered to be occluding the pixels behind it. 131 // is not considered to be occluding the pixels behind it.
132 const char kShowNonOccludingRects[] = "show-nonoccluding-rects"; 132 const char kShowNonOccludingRects[] = "show-nonoccluding-rects";
133 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; 133 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects";
134 134
135 // Enable the codepath that uses images within TileManager.
136 const char kUseMapImage[] = "use-map-image";
137
135 // Prevents the layer tree unit tests from timing out. 138 // Prevents the layer tree unit tests from timing out.
136 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; 139 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
137 140
138 // Trace events get dumped to stderr for debugging purposes. 141 // Trace events get dumped to stderr for debugging purposes.
139 const char kCCUnittestsTraceEventsToVLOG[] = 142 const char kCCUnittestsTraceEventsToVLOG[] =
140 "cc-unittests-trace-events-to-vlog"; 143 "cc-unittests-trace-events-to-vlog";
141 144
142 bool IsImplSidePaintingEnabled() { 145 bool IsImplSidePaintingEnabled() {
143 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 146 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
144 147
145 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) 148 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting))
146 return false; 149 return false;
147 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) 150 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting))
148 return true; 151 return true;
149 152
150 // Check GOOGLE_TV ahead of OS_ANDROID as they are not orthogonal. 153 // Check GOOGLE_TV ahead of OS_ANDROID as they are not orthogonal.
151 // TODO(jinsukkim): Remove this once the impl-side javascript-driven painting 154 // TODO(jinsukkim): Remove this once the impl-side javascript-driven painting
152 // performance issue is addressed. (crbug.com/235347) 155 // performance issue is addressed. (crbug.com/235347)
153 #if defined(GOOGLE_TV) 156 #if defined(GOOGLE_TV)
154 return false; 157 return false;
155 #elif defined(OS_ANDROID) 158 #elif defined(OS_ANDROID)
156 return true; 159 return true;
157 #else 160 #else
158 return false; 161 return false;
159 #endif 162 #endif
160 } 163 }
161 164
162 } // namespace switches 165 } // namespace switches
163 } // namespace cc 166 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/switches.h ('k') | cc/debug/fake_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698