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

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

Issue 10959050: Honor --gpu-switching=force_discrete to always stay on discrete GPU. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
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 "ui/gl/gl_switches.h" 5 #include "ui/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 kGLImplementationAppleName[] = "apple"; 11 const char kGLImplementationAppleName[] = "apple";
12 const char kGLImplementationEGLName[] = "egl"; 12 const char kGLImplementationEGLName[] = "egl";
13 const char kGLImplementationSwiftShaderName[] = "swiftshader"; 13 const char kGLImplementationSwiftShaderName[] = "swiftshader";
14 const char kGLImplementationMockName[] = "mock"; 14 const char kGLImplementationMockName[] = "mock";
15 15
16 } // namespace gfx 16 } // namespace gfx
17 17
18 namespace switches { 18 namespace switches {
19 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. 20 // Stop the GPU from synchronizing on the vsync before presenting.
26 const char kDisableGpuVsync[] = "disable-gpu-vsync"; 21 const char kDisableGpuVsync[] = "disable-gpu-vsync";
27 22
28 // Turns on GPU logging (debug build only). 23 // Turns on GPU logging (debug build only).
29 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; 24 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging";
30 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; 25 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging";
31 26
32 // Select which implementation of GL the GPU process should use. Options are: 27 // Select which implementation of GL the GPU process should use. Options are:
33 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac 28 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac
34 // default). 29 // default).
(...skipping 20 matching lines...) Expand all
55 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated"; 50 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated";
56 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete"; 51 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete";
57 const char kGpuSwitchingOptionNameAutomatic[] = "automatic"; 52 const char kGpuSwitchingOptionNameAutomatic[] = "automatic";
58 53
59 // Flag used for Linux tests: for desktop GL bindings, try to load this GL 54 // Flag used for Linux tests: for desktop GL bindings, try to load this GL
60 // library first, but fall back to regular library if loading fails. 55 // library first, but fall back to regular library if loading fails.
61 const char kTestGLLib[] = "test-gl-lib"; 56 const char kTestGLLib[] = "test-gl-lib";
62 57
63 } // namespace switches 58 } // namespace switches
64 59
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698