| OLD | NEW |
| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // Indicates whether the dual GPU switching is supported or not. | 77 // Indicates whether the dual GPU switching is supported or not. |
| 78 const char kSupportsDualGpus[] = "supports-dual-gpus"; | 78 const char kSupportsDualGpus[] = "supports-dual-gpus"; |
| 79 | 79 |
| 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. |
| 88 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; | 88 const char kEnableES3APIs[] = "enable-es3-apis"; |
| 89 | 89 |
| 90 // Disable OpenGL ES 3 APIs. This in turn will disable WebGL2. | 90 // Disable OpenGL ES 3 APIs. This in turn will disable WebGL2. |
| 91 const char kDisableES3APIs[] = "disable-es3-apis"; | 91 const char kDisableES3APIs[] = "disable-es3-apis"; |
| 92 | 92 |
| 93 // Enable use of the SGI_video_sync extension, which can have | 93 // Enable use of the SGI_video_sync extension, which can have |
| 94 // driver/sandbox/window manager compatibility issues. | 94 // driver/sandbox/window manager compatibility issues. |
| 95 const char kEnableSgiVideoSync[] = "enable-sgi-video-sync"; | 95 const char kEnableSgiVideoSync[] = "enable-sgi-video-sync"; |
| 96 | 96 |
| 97 // Disables GL drawing operations which produce pixel output. With this | 97 // Disables GL drawing operations which produce pixel output. With this |
| 98 // 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. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 121 kDisableGLDrawingForTests, | 121 kDisableGLDrawingForTests, |
| 122 kOverrideUseGLWithOSMesaForTests, | 122 kOverrideUseGLWithOSMesaForTests, |
| 123 kUseANGLE, | 123 kUseANGLE, |
| 124 kDisableDirectComposition, | 124 kDisableDirectComposition, |
| 125 kEnableSwapBuffersWithDamage, | 125 kEnableSwapBuffersWithDamage, |
| 126 }; | 126 }; |
| 127 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 127 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
| 128 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 128 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
| 129 | 129 |
| 130 } // namespace switches | 130 } // namespace switches |
| OLD | NEW |