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

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

Issue 2460943002: Lower ES3 capable requirement to GL 3.3 with extensions. (Closed)
Patch Set: address piman comment 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
« no previous file with comments | « ui/gl/gl_switches.h ('k') | ui/gl/gl_version_info.cc » ('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";
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Flag used for Linux tests: for desktop GL bindings, try to load this GL 80 // Flag used for Linux tests: for desktop GL bindings, try to load this GL
81 // library first, but fall back to regular library if loading fails. 81 // library first, but fall back to regular library if loading fails.
82 const char kTestGLLib[] = "test-gl-lib"; 82 const char kTestGLLib[] = "test-gl-lib";
83 83
84 // Use hardware gpu, if available, for tests. 84 // Use hardware gpu, if available, for tests.
85 const char kUseGpuInTests[] = "use-gpu-in-tests"; 85 const char kUseGpuInTests[] = "use-gpu-in-tests";
86 86
87 // Enable OpenGL ES 3 APIs without proper service side validation. 87 // Enable OpenGL ES 3 APIs without proper service side validation.
88 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; 88 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis";
89 89
90 // Disable OpenGL ES 3 APIs. This in turn will disable WebGL2.
91 const char kDisableES3APIs[] = "disable-es3-apis";
92
90 // Enable use of the SGI_video_sync extension, which can have 93 // Enable use of the SGI_video_sync extension, which can have
91 // driver/sandbox/window manager compatibility issues. 94 // driver/sandbox/window manager compatibility issues.
92 const char kEnableSgiVideoSync[] = "enable-sgi-video-sync"; 95 const char kEnableSgiVideoSync[] = "enable-sgi-video-sync";
93 96
94 // Disables GL drawing operations which produce pixel output. With this 97 // Disables GL drawing operations which produce pixel output. With this
95 // the GL output will not be correct but tests will run faster. 98 // the GL output will not be correct but tests will run faster.
96 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; 99 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests";
97 100
98 // Forces the use of OSMesa instead of hardware gpu. 101 // Forces the use of OSMesa instead of hardware gpu.
99 const char kOverrideUseGLWithOSMesaForTests[] = 102 const char kOverrideUseGLWithOSMesaForTests[] =
100 "override-use-gl-with-osmesa-for-tests"; 103 "override-use-gl-with-osmesa-for-tests";
101 104
102 // Disables specified comma separated GL Extensions if found. 105 // Disables specified comma separated GL Extensions if found.
103 const char kDisableGLExtensions[] = "disable-gl-extensions"; 106 const char kDisableGLExtensions[] = "disable-gl-extensions";
104 107
105 // Use EGL_KHR_swap_buffers_with_damage to implement PostSubBuffers 108 // Use EGL_KHR_swap_buffers_with_damage to implement PostSubBuffers
106 const char kEnableSwapBuffersWithDamage[] = "enable-swap-buffers-with-damage"; 109 const char kEnableSwapBuffersWithDamage[] = "enable-swap-buffers-with-damage";
107 110
108 // This is the list of switches passed from this file that are passed from the 111 // This is the list of switches passed from this file that are passed from the
109 // GpuProcessHost to the GPU Process. Add your switch to this list if you need 112 // GpuProcessHost to the GPU Process. Add your switch to this list if you need
110 // to read it in the GPU process, else don't add it. 113 // to read it in the GPU process, else don't add it.
111 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { 114 const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
112 kDisableGpuVsync, 115 kDisableGpuVsync,
113 kDisableD3D11, 116 kDisableD3D11,
114 kEnableGPUServiceLogging, 117 kEnableGPUServiceLogging,
115 kEnableGPUServiceTracing, 118 kEnableGPUServiceTracing,
116 kEnableUnsafeES3APIs, 119 kEnableUnsafeES3APIs,
120 kDisableES3APIs,
117 kEnableSgiVideoSync, 121 kEnableSgiVideoSync,
118 kGpuNoContextLost, 122 kGpuNoContextLost,
119 kDisableGLDrawingForTests, 123 kDisableGLDrawingForTests,
120 kOverrideUseGLWithOSMesaForTests, 124 kOverrideUseGLWithOSMesaForTests,
121 kUseANGLE, 125 kUseANGLE,
122 kDisableDirectComposition, 126 kDisableDirectComposition,
123 kEnableSwapBuffersWithDamage, 127 kEnableSwapBuffersWithDamage,
124 }; 128 };
125 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = 129 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches =
126 arraysize(kGLSwitchesCopiedFromGpuProcessHost); 130 arraysize(kGLSwitchesCopiedFromGpuProcessHost);
127 131
128 } // namespace switches 132 } // namespace switches
OLDNEW
« no previous file with comments | « ui/gl/gl_switches.h ('k') | ui/gl/gl_version_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698