| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete"; | 64 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete"; |
| 65 | 65 |
| 66 // Flag used for Linux tests: for desktop GL bindings, try to load this GL | 66 // Flag used for Linux tests: for desktop GL bindings, try to load this GL |
| 67 // library first, but fall back to regular library if loading fails. | 67 // library first, but fall back to regular library if loading fails. |
| 68 const char kTestGLLib[] = "test-gl-lib"; | 68 const char kTestGLLib[] = "test-gl-lib"; |
| 69 | 69 |
| 70 // Disables GL drawing operations which produce pixel output. With this | 70 // Disables GL drawing operations which produce pixel output. With this |
| 71 // the GL output will not be correct but tests will run faster. | 71 // the GL output will not be correct but tests will run faster. |
| 72 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; | 72 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; |
| 73 | 73 |
| 74 // Use hardware gpu, if available, for tests. |
| 75 const char kUseGpuInTests[] = "use-gpu-in-tests"; |
| 76 |
| 74 // This is the list of switches passed from this file that are passed from the | 77 // This is the list of switches passed from this file that are passed from the |
| 75 // GpuProcessHost to the GPU Process. Add your switch to this list if you need | 78 // GpuProcessHost to the GPU Process. Add your switch to this list if you need |
| 76 // to read it in the GPU process, else don't add it. | 79 // to read it in the GPU process, else don't add it. |
| 77 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { | 80 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
| 78 kDisableGpuVsync, | 81 kDisableGpuVsync, |
| 79 kEnableD3D11, | 82 kEnableD3D11, |
| 80 kDisableD3D11, | 83 kDisableD3D11, |
| 81 kEnableGPUServiceLogging, | 84 kEnableGPUServiceLogging, |
| 82 kEnableGPUServiceTracing, | 85 kEnableGPUServiceTracing, |
| 83 kGpuNoContextLost, | 86 kGpuNoContextLost, |
| 84 }; | 87 }; |
| 85 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 88 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
| 86 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 89 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
| 87 | 90 |
| 88 } // namespace switches | 91 } // namespace switches |
| 89 | 92 |
| OLD | NEW |