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

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

Issue 603273003: Prevent static mojo builds from pulling //ui/gl into mojo_shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No need to export Created 6 years, 2 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
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 // Disables use of D3D11. 21 // Disables use of D3D11.
22 const char kDisableD3D11[] = "disable-d3d11"; 22 const char kDisableD3D11[] = "disable-d3d11";
23 23
24 // Stop the GPU from synchronizing on the vsync before presenting. 24 // Stop the GPU from synchronizing on the vsync before presenting.
25 const char kDisableGpuVsync[] = "disable-gpu-vsync"; 25 const char kDisableGpuVsync[] = "disable-gpu-vsync";
26 26
27 // Turns on GPU logging (debug build only). 27 // Turns on GPU logging (debug build only).
28 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging";
jamesr 2014/09/26 19:14:25 you have to delete this or you have ODR violations
DaveMoore 2014/09/26 20:10:16 This one is kEnableGPUClientLogging The new one is
DaveMoore 2014/09/26 22:31:08 Done.
28 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; 29 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging";
29 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging";
30 30
31 // Turns on calling TRACE for every GL call. 31 // Turns on calling TRACE for every GL call.
32 const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing"; 32 const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing";
33 33
34 // Select which implementation of GL the GPU process should use. Options are: 34 // Select which implementation of GL the GPU process should use. Options are:
35 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac 35 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac
36 // default). 36 // default).
37 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually 37 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually
38 // ANGLE). 38 // ANGLE).
39 // osmesa: The OSMesa software renderer. 39 // osmesa: The OSMesa software renderer.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 kGpuNoContextLost, 78 kGpuNoContextLost,
79 kDisableGLDrawingForTests, 79 kDisableGLDrawingForTests,
80 kOverrideUseGLWithOSMesaForTests, 80 kOverrideUseGLWithOSMesaForTests,
81 kUseWarp 81 kUseWarp
82 }; 82 };
83 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 83 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
84 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 84 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
85 85
86 } // namespace switches 86 } // namespace switches
87 87
OLDNEW
« gpu/command_buffer/client/gpu_switches.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