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

Side by Side Diff: ui/gfx/gl/gl_switches.cc

Issue 7967020: Implement --use-gl=any (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« ui/gfx/gl/gl_implementation.cc ('K') | « ui/gfx/gl/gl_switches.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/gfx/gl/gl_switches.h" 5 #include "ui/gfx/gl/gl_switches.h"
6 6
7 namespace gfx { 7 namespace gfx {
8 8
9 const char kGLImplementationDesktopName[] = "desktop"; 9 const char kGLImplementationDesktopName[] = "desktop";
10 const char kGLImplementationOSMesaName[] = "osmesa"; 10 const char kGLImplementationOSMesaName[] = "osmesa";
11 const char kGLImplementationEGLName[] = "egl"; 11 const char kGLImplementationEGLName[] = "egl";
12 const char kGLImplementationAnyName[] = "any";
12 const char kGLImplementationMockName[] = "mock"; 13 const char kGLImplementationMockName[] = "mock";
13 14
14 } // namespace gfx 15 } // namespace gfx
15 16
16 namespace switches { 17 namespace switches {
17 18
18 // Stop the GPU from synchronizing on the vsync before presenting. 19 // Stop the GPU from synchronizing on the vsync before presenting.
19 const char kDisableGpuVsync[] = "disable-gpu-vsync"; 20 const char kDisableGpuVsync[] = "disable-gpu-vsync";
20 21
21 // Turns on GPU logging (debug build only). 22 // Turns on GPU logging (debug build only).
22 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; 23 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging";
23 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; 24 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging";
24 25
25 // Select which implementation of GL the GPU process should use. Options are: 26 // Select which implementation of GL the GPU process should use. Options are:
26 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac 27 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac
27 // default). 28 // default).
28 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually 29 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually
29 // ANGLE). 30 // ANGLE).
30 // osmesa: The OSMesa software renderer. 31 // osmesa: The OSMesa software renderer.
31 const char kUseGL[] = "use-gl"; 32 const char kUseGL[] = "use-gl";
32 33
33 // Inform Chrome that a GPU context will not be lost in power saving mode, 34 // Inform Chrome that a GPU context will not be lost in power saving mode,
34 // screen saving mode, etc. Note that this flag does not ensure that a GPU 35 // screen saving mode, etc. Note that this flag does not ensure that a GPU
35 // context will never be lost in any situations, say, a GPU reset. 36 // context will never be lost in any situations, say, a GPU reset.
36 const char kGpuNoContextLost[] = "gpu-no-context-lost"; 37 const char kGpuNoContextLost[] = "gpu-no-context-lost";
37 38
38 } // namespace switches 39 } // namespace switches
OLDNEW
« ui/gfx/gl/gl_implementation.cc ('K') | « ui/gfx/gl/gl_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698