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

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: Created 7 years, 8 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
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 // Show rects in the HUD wherever something is known to be drawn opaque and is 134 // Show rects in the HUD wherever something is known to be drawn opaque and is
135 // considered occluding the pixels behind it. 135 // considered occluding the pixels behind it.
136 const char kShowOccludingRects[] = "show-occluding-rects"; 136 const char kShowOccludingRects[] = "show-occluding-rects";
137 const char kUIShowOccludingRects[] = "ui-show-occluding-rects"; 137 const char kUIShowOccludingRects[] = "ui-show-occluding-rects";
138 138
139 // Show rects in the HUD wherever something is not known to be drawn opaque and 139 // Show rects in the HUD wherever something is not known to be drawn opaque and
140 // is not considered to be occluding the pixels behind it. 140 // is not considered to be occluding the pixels behind it.
141 const char kShowNonOccludingRects[] = "show-nonoccluding-rects"; 141 const char kShowNonOccludingRects[] = "show-nonoccluding-rects";
142 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects"; 142 const char kUIShowNonOccludingRects[] = "ui-show-nonoccluding-rects";
143 143
144 // Use GPU memory buffers within the ResourceProvider.
145 const char kUseGpuMemoryBuffers[] = "use-gpu-memory-buffers";
146
144 bool IsImplSidePaintingEnabled() { 147 bool IsImplSidePaintingEnabled() {
145 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 148 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
146 149
147 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting)) 150 if (command_line.HasSwitch(cc::switches::kDisableImplSidePainting))
148 return false; 151 return false;
149 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting)) 152 else if (command_line.HasSwitch(cc::switches::kEnableImplSidePainting))
150 return true; 153 return true;
151 154
152 #if defined(OS_ANDROID) 155 #if defined(OS_ANDROID)
153 return true; 156 return true;
154 #else 157 #else
155 return false; 158 return false;
156 #endif 159 #endif
157 } 160 }
158 161
159 } // namespace switches 162 } // namespace switches
160 } // namespace cc 163 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698