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

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

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gl/gl_switches.h ('k') | ui/gfx/gl/gpu_preference.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_switches.h ('k') | ui/gfx/gl/gpu_preference.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698