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

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

Issue 24120004: Add an enable D3D11 flag and blacklist specific intel drivers and windows vista from using D3D11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed merge issue Created 7 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
« no previous file with comments | « ui/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) 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";
11 const char kGLImplementationOSMesaName[] = "osmesa"; 11 const char kGLImplementationOSMesaName[] = "osmesa";
12 const char kGLImplementationAppleName[] = "apple"; 12 const char kGLImplementationAppleName[] = "apple";
13 const char kGLImplementationEGLName[] = "egl"; 13 const char kGLImplementationEGLName[] = "egl";
14 const char kGLImplementationSwiftShaderName[] = "swiftshader"; 14 const char kGLImplementationSwiftShaderName[] = "swiftshader";
15 const char kGLImplementationMockName[] = "mock"; 15 const char kGLImplementationMockName[] = "mock";
16 16
17 } // namespace gfx 17 } // namespace gfx
18 18
19 namespace switches { 19 namespace switches {
20 20
21 // Enables use of D3D11 when available.
22 const char kEnableD3D11[] = "enable-d3d11";
23
21 // Disables use of D3D11. 24 // Disables use of D3D11.
22 const char kDisableD3D11[] = "disable-d3d11"; 25 const char kDisableD3D11[] = "disable-d3d11";
23 26
24 // Stop the GPU from synchronizing on the vsync before presenting. 27 // Stop the GPU from synchronizing on the vsync before presenting.
25 const char kDisableGpuVsync[] = "disable-gpu-vsync"; 28 const char kDisableGpuVsync[] = "disable-gpu-vsync";
26 29
27 // Turns on GPU logging (debug build only). 30 // Turns on GPU logging (debug build only).
28 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; 31 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging";
29 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; 32 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging";
30 33
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 66
64 // Flag used for Linux tests: for desktop GL bindings, try to load this GL 67 // Flag used for Linux tests: for desktop GL bindings, try to load this GL
65 // library first, but fall back to regular library if loading fails. 68 // library first, but fall back to regular library if loading fails.
66 const char kTestGLLib[] = "test-gl-lib"; 69 const char kTestGLLib[] = "test-gl-lib";
67 70
68 // This is the list of switches passed from this file that are passed from the 71 // This is the list of switches passed from this file that are passed from the
69 // GpuProcessHost to the GPU Process. Add your switch to this list if you need 72 // GpuProcessHost to the GPU Process. Add your switch to this list if you need
70 // to read it in the GPU process, else don't add it. 73 // to read it in the GPU process, else don't add it.
71 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { 74 const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
72 kDisableGpuVsync, 75 kDisableGpuVsync,
76 kEnableD3D11,
73 kDisableD3D11, 77 kDisableD3D11,
74 kEnableGPUServiceLogging, 78 kEnableGPUServiceLogging,
75 kEnableGPUServiceTracing, 79 kEnableGPUServiceTracing,
76 kGpuNoContextLost, 80 kGpuNoContextLost,
77 kGpuSwitching, 81 kGpuSwitching,
78 }; 82 };
79 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 83 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
80 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 84 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
81 85
82 } // namespace switches 86 } // namespace switches
83 87
OLDNEW
« no previous file with comments | « ui/gl/gl_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698