| 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 "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"; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; | 62 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; |
| 63 | 63 |
| 64 // Disables GL drawing operations which produce pixel output. With this | 64 // Disables GL drawing operations which produce pixel output. With this |
| 65 // the GL output will not be correct but tests will run faster. | 65 // the GL output will not be correct but tests will run faster. |
| 66 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; | 66 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; |
| 67 | 67 |
| 68 // Forces the use of OSMesa instead of hardware gpu. | 68 // Forces the use of OSMesa instead of hardware gpu. |
| 69 const char kOverrideUseGLWithOSMesaForTests[] = | 69 const char kOverrideUseGLWithOSMesaForTests[] = |
| 70 "override-use-gl-with-osmesa-for-tests"; | 70 "override-use-gl-with-osmesa-for-tests"; |
| 71 | 71 |
| 72 // Disables specified comma separated GL Extensions if found. |
| 73 const char kDisableGLExtensions[] = "disable-gl-extensions"; |
| 74 |
| 72 // This is the list of switches passed from this file that are passed from the | 75 // This is the list of switches passed from this file that are passed from the |
| 73 // GpuProcessHost to the GPU Process. Add your switch to this list if you need | 76 // GpuProcessHost to the GPU Process. Add your switch to this list if you need |
| 74 // to read it in the GPU process, else don't add it. | 77 // to read it in the GPU process, else don't add it. |
| 75 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { | 78 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
| 76 kDisableGpuVsync, | 79 kDisableGpuVsync, |
| 77 kDisableD3D11, | 80 kDisableD3D11, |
| 78 kEnableGPUServiceLogging, | 81 kEnableGPUServiceLogging, |
| 79 kEnableGPUServiceTracing, | 82 kEnableGPUServiceTracing, |
| 80 kEnableUnsafeES3APIs, | 83 kEnableUnsafeES3APIs, |
| 81 kGpuNoContextLost, | 84 kGpuNoContextLost, |
| 82 kDisableGLDrawingForTests, | 85 kDisableGLDrawingForTests, |
| 83 kOverrideUseGLWithOSMesaForTests, | 86 kOverrideUseGLWithOSMesaForTests, |
| 84 kUseWarp, | 87 kUseWarp, |
| 85 }; | 88 }; |
| 86 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 89 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
| 87 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 90 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
| 88 | 91 |
| 89 } // namespace switches | 92 } // namespace switches |
| 90 | 93 |
| OLD | NEW |