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

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

Issue 57633007: Merge gpu_switching_list into gpu_driver_bug_list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: always apply user-specified switching option Created 7 years, 1 month 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
« gpu/config/gpu_util_unittest.cc ('K') | « gpu/gpu_config.gypi ('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) 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 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 7
8 namespace gfx { 8 namespace gfx {
9 9
10 const char kGLImplementationDesktopName[] = "desktop"; 10 const char kGLImplementationDesktopName[] = "desktop";
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Indicates whether the dual GPU switching is supported or not. 56 // Indicates whether the dual GPU switching is supported or not.
57 const char kSupportsDualGpus[] = "supports-dual-gpus"; 57 const char kSupportsDualGpus[] = "supports-dual-gpus";
58 58
59 // Overwrite the default GPU automatic switching behavior to force on 59 // Overwrite the default GPU automatic switching behavior to force on
60 // integrated GPU or discrete GPU. 60 // integrated GPU or discrete GPU.
61 const char kGpuSwitching[] = "gpu-switching"; 61 const char kGpuSwitching[] = "gpu-switching";
62 62
63 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated"; 63 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated";
64 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete"; 64 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete";
65 const char kGpuSwitchingOptionNameAutomatic[] = "automatic";
66 65
67 // Flag used for Linux tests: for desktop GL bindings, try to load this GL 66 // Flag used for Linux tests: for desktop GL bindings, try to load this GL
68 // library first, but fall back to regular library if loading fails. 67 // library first, but fall back to regular library if loading fails.
69 const char kTestGLLib[] = "test-gl-lib"; 68 const char kTestGLLib[] = "test-gl-lib";
70 69
71 // This is the list of switches passed from this file that are passed from the 70 // This is the list of switches passed from this file that are passed from the
72 // GpuProcessHost to the GPU Process. Add your switch to this list if you need 71 // GpuProcessHost to the GPU Process. Add your switch to this list if you need
73 // to read it in the GPU process, else don't add it. 72 // to read it in the GPU process, else don't add it.
74 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { 73 const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
75 kDisableGpuVsync, 74 kDisableGpuVsync,
76 kEnableD3D11, 75 kEnableD3D11,
77 kDisableD3D11, 76 kDisableD3D11,
78 kEnableGPUServiceLogging, 77 kEnableGPUServiceLogging,
79 kEnableGPUServiceTracing, 78 kEnableGPUServiceTracing,
80 kGpuNoContextLost, 79 kGpuNoContextLost,
81 kGpuSwitching,
82 }; 80 };
83 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 81 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
84 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 82 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
85 83
86 } // namespace switches 84 } // namespace switches
87 85
OLDNEW
« gpu/config/gpu_util_unittest.cc ('K') | « gpu/gpu_config.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698