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

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

Issue 2467103003: gl_context_glx: add workaround to create default context (Closed)
Patch Set: WIP Created 4 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
« gpu/config/gpu_driver_bug_list_json.cc ('K') | « 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "ui/gl/gl_switches.h" 6 #include "ui/gl/gl_switches.h"
7 7
8 namespace gl { 8 namespace gl {
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 kGLImplementationANGLEName[] = "angle"; 14 const char kGLImplementationANGLEName[] = "angle";
15 const char kGLImplementationSwiftShaderName[] = "swiftshader"; 15 const char kGLImplementationSwiftShaderName[] = "swiftshader";
16 const char kGLImplementationMockName[] = "mock"; 16 const char kGLImplementationMockName[] = "mock";
17 17
18 const char kANGLEImplementationDefaultName[] = "default"; 18 const char kANGLEImplementationDefaultName[] = "default";
19 const char kANGLEImplementationD3D9Name[] = "d3d9"; 19 const char kANGLEImplementationD3D9Name[] = "d3d9";
20 const char kANGLEImplementationD3D11Name[] = "d3d11"; 20 const char kANGLEImplementationD3D11Name[] = "d3d11";
21 const char kANGLEImplementationOpenGLName[] = "gl"; 21 const char kANGLEImplementationOpenGLName[] = "gl";
22 const char kANGLEImplementationOpenGLESName[] = "gles"; 22 const char kANGLEImplementationOpenGLESName[] = "gles";
23 const char kANGLEImplementationNullName[] = "null"; 23 const char kANGLEImplementationNullName[] = "null";
24 24
25 } // namespace gl 25 } // namespace gl
26 26
27 namespace switches { 27 namespace switches {
28 28
29 // Ask the GLX driver for the default context instead of trying to get the
30 // highest version possible.
31 const char kCreateDefaultContext[] = "create-default-context";
Ken Russell (switch to Gerrit) 2016/11/03 21:30:02 Please name this something more specific to GL lik
Corentin Wallez 2016/11/03 21:41:45 Done
32
29 // Disables use of D3D11. 33 // Disables use of D3D11.
30 const char kDisableD3D11[] = "disable-d3d11"; 34 const char kDisableD3D11[] = "disable-d3d11";
31 35
32 // Disables use of ES3 backend (use ES2 backend instead). 36 // Disables use of ES3 backend (use ES2 backend instead).
33 const char kDisableES3GLContext[] = "disable-es3-gl-context"; 37 const char kDisableES3GLContext[] = "disable-es3-gl-context";
34 38
35 // Stop the GPU from synchronizing on the vsync before presenting. 39 // Stop the GPU from synchronizing on the vsync before presenting.
36 // We can select from the options below: 40 // We can select from the options below:
37 // beginframe: Next frame can start without any delay on cc::scheduler in 41 // beginframe: Next frame can start without any delay on cc::scheduler in
38 // renderer compositors. 42 // renderer compositors.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 kDisableGLDrawingForTests, 125 kDisableGLDrawingForTests,
122 kOverrideUseGLWithOSMesaForTests, 126 kOverrideUseGLWithOSMesaForTests,
123 kUseANGLE, 127 kUseANGLE,
124 kDisableDirectComposition, 128 kDisableDirectComposition,
125 kEnableSwapBuffersWithDamage, 129 kEnableSwapBuffersWithDamage,
126 }; 130 };
127 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 131 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
128 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 132 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
129 133
130 } // namespace switches 134 } // namespace switches
OLDNEW
« gpu/config/gpu_driver_bug_list_json.cc ('K') | « ui/gl/gl_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698