Chromium Code Reviews| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 // integrated GPU or discrete GPU. | 53 // integrated GPU or discrete GPU. |
| 54 const char kGpuSwitching[] = "gpu-switching"; | 54 const char kGpuSwitching[] = "gpu-switching"; |
| 55 | 55 |
| 56 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated"; | 56 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated"; |
| 57 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete"; | 57 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete"; |
| 58 | 58 |
| 59 // Flag used for Linux tests: for desktop GL bindings, try to load this GL | 59 // Flag used for Linux tests: for desktop GL bindings, try to load this GL |
| 60 // library first, but fall back to regular library if loading fails. | 60 // library first, but fall back to regular library if loading fails. |
| 61 const char kTestGLLib[] = "test-gl-lib"; | 61 const char kTestGLLib[] = "test-gl-lib"; |
| 62 | 62 |
| 63 // Use hardware gpu, if available, for tests. | |
| 64 const char kUseGpuInTests[] = "use-gpu-in-tests"; | |
| 65 | |
| 63 // Disables GL drawing operations which produce pixel output. With this | 66 // Disables GL drawing operations which produce pixel output. With this |
| 64 // the GL output will not be correct but tests will run faster. | 67 // the GL output will not be correct but tests will run faster. |
| 65 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; | 68 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; |
| 66 | 69 |
| 67 // Use hardware gpu, if available, for tests. | 70 // Forces the use of OSMesa instead of hardware gpu. |
| 68 const char kUseGpuInTests[] = "use-gpu-in-tests"; | 71 const char kOverrideUseGLWithOSMesaForTests[] = |
| 72 "override-use-gl-with-osmesa-for-tests"; | |
| 69 | 73 |
| 70 // This is the list of switches passed from this file that are passed from the | 74 // This is the list of switches passed from this file that are passed from the |
| 71 // GpuProcessHost to the GPU Process. Add your switch to this list if you need | 75 // GpuProcessHost to the GPU Process. Add your switch to this list if you need |
| 72 // to read it in the GPU process, else don't add it. | 76 // to read it in the GPU process, else don't add it. |
| 73 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { | 77 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
| 74 kDisableGpuVsync, | 78 kDisableGpuVsync, kDisableD3D11, |
| 75 kDisableD3D11, | 79 kEnableGPUServiceLogging, kEnableGPUServiceTracing, |
| 76 kEnableGPUServiceLogging, | 80 kGpuNoContextLost, kDisableGLDrawingForTests, |
| 77 kEnableGPUServiceTracing, | 81 kOverrideUseGLWithOSMesaForTests, |
|
piman
2014/05/01 20:55:35
o_O
| |
| 78 kGpuNoContextLost, | |
| 79 }; | 82 }; |
| 80 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 83 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
| 81 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 84 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
| 82 | 85 |
| 83 } // namespace switches | 86 } // namespace switches |
| 84 | 87 |
| OLD | NEW |