OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ui/gfx/gl/gl_switches.h" | |
6 | |
7 namespace gfx { | |
8 | |
9 const char kGLImplementationDesktopName[] = "desktop"; | |
10 const char kGLImplementationOSMesaName[] = "osmesa"; | |
11 const char kGLImplementationAppleName[] = "apple"; | |
12 const char kGLImplementationEGLName[] = "egl"; | |
13 const char kGLImplementationSwiftShaderName[] = "swiftshader"; | |
14 const char kGLImplementationMockName[] = "mock"; | |
15 | |
16 } // namespace gfx | |
17 | |
18 namespace switches { | |
19 | |
20 // Disable dynamic switching between integrated and discrete GPU on | |
21 // systems that would otherwise support it (currently, only a limited | |
22 // number of MacBook Pros). | |
23 const char kDisableGpuSwitching[] = "disable-gpu-switching"; | |
24 | |
25 // Stop the GPU from synchronizing on the vsync before presenting. | |
26 const char kDisableGpuVsync[] = "disable-gpu-vsync"; | |
27 | |
28 // Turns on GPU logging (debug build only). | |
29 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; | |
30 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; | |
31 | |
32 // Select which implementation of GL the GPU process should use. Options are: | |
33 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac | |
34 // default). | |
35 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually | |
36 // ANGLE). | |
37 // osmesa: The OSMesa software renderer. | |
38 const char kUseGL[] = "use-gl"; | |
39 | |
40 const char kSwiftShaderPath[] = "swiftshader-path"; | |
41 | |
42 // Inform Chrome that a GPU context will not be lost in power saving mode, | |
43 // screen saving mode, etc. Note that this flag does not ensure that a GPU | |
44 // context will never be lost in any situations, say, a GPU reset. | |
45 const char kGpuNoContextLost[] = "gpu-no-context-lost"; | |
46 | |
47 // Add a delay in milliseconds to the gpu swap buffer completion signal. | |
48 // Simulates a slow GPU. | |
49 const char kGpuSwapDelay[] = "gpu-swap-delay"; | |
50 | |
51 // Flag used for Linux tests: for desktop GL bindings, try to load this GL | |
52 // library first, but fall back to regular library if loading fails. | |
53 const char kTestGLLib[] = "test-gl-lib"; | |
54 | |
55 } // namespace switches | |
OLD | NEW |