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

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

Issue 2629633003: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: rebase Created 3 years, 10 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') | ui/gl/gl_wgl_api_implementation.h » ('j') | 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 const char kGLImplementationStubName[] = "stub";
17 18
18 const char kANGLEImplementationDefaultName[] = "default"; 19 const char kANGLEImplementationDefaultName[] = "default";
19 const char kANGLEImplementationD3D9Name[] = "d3d9"; 20 const char kANGLEImplementationD3D9Name[] = "d3d9";
20 const char kANGLEImplementationD3D11Name[] = "d3d11"; 21 const char kANGLEImplementationD3D11Name[] = "d3d11";
21 const char kANGLEImplementationOpenGLName[] = "gl"; 22 const char kANGLEImplementationOpenGLName[] = "gl";
22 const char kANGLEImplementationOpenGLESName[] = "gles"; 23 const char kANGLEImplementationOpenGLESName[] = "gles";
23 const char kANGLEImplementationNullName[] = "null"; 24 const char kANGLEImplementationNullName[] = "null";
24 25
25 } // namespace gl 26 } // namespace gl
26 27
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 kDisableGLDrawingForTests, 126 kDisableGLDrawingForTests,
126 kOverrideUseGLWithOSMesaForTests, 127 kOverrideUseGLWithOSMesaForTests,
127 kUseANGLE, 128 kUseANGLE,
128 kDisableDirectComposition, 129 kDisableDirectComposition,
129 kEnableSwapBuffersWithDamage, 130 kEnableSwapBuffersWithDamage,
130 }; 131 };
131 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 132 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
132 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 133 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
133 134
134 } // namespace switches 135 } // namespace switches
OLDNEW
« no previous file with comments | « ui/gl/gl_switches.h ('k') | ui/gl/gl_wgl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698