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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 // Indicates whether the dual GPU switching is supported or not. | 49 // Indicates whether the dual GPU switching is supported or not. |
50 const char kSupportsDualGpus[] = "supports-dual-gpus"; | 50 const char kSupportsDualGpus[] = "supports-dual-gpus"; |
51 | 51 |
52 // Flag used for Linux tests: for desktop GL bindings, try to load this GL | 52 // Flag used for Linux tests: for desktop GL bindings, try to load this GL |
53 // library first, but fall back to regular library if loading fails. | 53 // library first, but fall back to regular library if loading fails. |
54 const char kTestGLLib[] = "test-gl-lib"; | 54 const char kTestGLLib[] = "test-gl-lib"; |
55 | 55 |
56 // Use hardware gpu, if available, for tests. | 56 // Use hardware gpu, if available, for tests. |
57 const char kUseGpuInTests[] = "use-gpu-in-tests"; | 57 const char kUseGpuInTests[] = "use-gpu-in-tests"; |
58 | 58 |
59 // On Windows only: use the WARP software rasterizer in the GPU process. | |
60 const char kUseWarp[] = "use-warp"; | |
61 | |
59 // Disables GL drawing operations which produce pixel output. With this | 62 // Disables GL drawing operations which produce pixel output. With this |
60 // the GL output will not be correct but tests will run faster. | 63 // the GL output will not be correct but tests will run faster. |
61 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; | 64 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; |
62 | 65 |
63 // Forces the use of OSMesa instead of hardware gpu. | 66 // Forces the use of OSMesa instead of hardware gpu. |
64 const char kOverrideUseGLWithOSMesaForTests[] = | 67 const char kOverrideUseGLWithOSMesaForTests[] = |
65 "override-use-gl-with-osmesa-for-tests"; | 68 "override-use-gl-with-osmesa-for-tests"; |
66 | 69 |
67 // This is the list of switches passed from this file that are passed from the | 70 // This is the list of switches passed from this file that are passed from the |
68 // GpuProcessHost to the GPU Process. Add your switch to this list if you need | 71 // GpuProcessHost to the GPU Process. Add your switch to this list if you need |
69 // to read it in the GPU process, else don't add it. | 72 // to read it in the GPU process, else don't add it. |
70 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { | 73 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
71 kDisableGpuVsync, | 74 kDisableGpuVsync, |
72 kDisableD3D11, | 75 kDisableD3D11, |
73 kEnableGPUServiceLogging, | 76 kEnableGPUServiceLogging, |
74 kEnableGPUServiceTracing, | 77 kEnableGPUServiceTracing, |
75 kGpuNoContextLost, | 78 kGpuNoContextLost, |
76 kDisableGLDrawingForTests, | 79 kDisableGLDrawingForTests, |
77 kOverrideUseGLWithOSMesaForTests, | 80 kOverrideUseGLWithOSMesaForTests, |
Zhenyao Mo
2014/08/20 21:02:09
You need to include kUseWarp here if you want that
luken
2014/08/27 20:43:46
Done.
| |
78 }; | 81 }; |
79 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 82 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
80 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 83 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
81 | 84 |
82 } // namespace switches | 85 } // namespace switches |
83 | 86 |
OLD | NEW |