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 "gpu/command_buffer/service/gpu_switches.h" | 5 #include "gpu/command_buffer/service/gpu_switches.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 | 8 |
9 namespace switches { | 9 namespace switches { |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 "enable-threaded-texture-mailboxes"; | 64 "enable-threaded-texture-mailboxes"; |
65 | 65 |
66 // Include ANGLE's intermediate representation (AST) output in shader | 66 // Include ANGLE's intermediate representation (AST) output in shader |
67 // compilation info logs. | 67 // compilation info logs. |
68 const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; | 68 const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; |
69 | 69 |
70 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to | 70 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to |
71 // round intermediate values in ANGLE. | 71 // round intermediate values in ANGLE. |
72 const char kEmulateShaderPrecision[] = "emulate-shader-precision"; | 72 const char kEmulateShaderPrecision[] = "emulate-shader-precision"; |
73 | 73 |
74 // Enables using path rendering implementation implemented currently | |
75 // in NV_path_rendering OpenGL extension. Requires compatible hardware | |
76 // and driver. This is used in GPU rasterization. | |
77 const char kEnableGLPathRendering[] = "enable-gl-path-rendering"; | |
78 | |
79 const char* kGpuSwitches[] = { | 74 const char* kGpuSwitches[] = { |
80 kCompileShaderAlwaysSucceeds, | 75 kCompileShaderAlwaysSucceeds, |
81 kDisableGLErrorLimit, | 76 kDisableGLErrorLimit, |
82 kDisableGLSLTranslator, | 77 kDisableGLSLTranslator, |
83 kDisableGpuDriverBugWorkarounds, | 78 kDisableGpuDriverBugWorkarounds, |
84 kDisableShaderNameHashing, | 79 kDisableShaderNameHashing, |
85 kEnableGPUCommandLogging, | 80 kEnableGPUCommandLogging, |
86 kEnableGPUDebugging, | 81 kEnableGPUDebugging, |
87 kEnableGPUServiceLoggingGPU, | 82 kEnableGPUServiceLoggingGPU, |
88 kDisableGpuProgramCache, | 83 kDisableGpuProgramCache, |
89 kEnforceGLMinimums, | 84 kEnforceGLMinimums, |
90 kForceGpuMemAvailableMb, | 85 kForceGpuMemAvailableMb, |
91 kGpuDriverBugWorkarounds, | 86 kGpuDriverBugWorkarounds, |
92 kGpuProgramCacheSizeKb, | 87 kGpuProgramCacheSizeKb, |
93 kDisableGpuShaderDiskCache, | 88 kDisableGpuShaderDiskCache, |
94 kEnableShareGroupAsyncTextureUpload, | 89 kEnableShareGroupAsyncTextureUpload, |
95 kEnableSubscribeUniformExtension, | 90 kEnableSubscribeUniformExtension, |
96 kGLShaderIntermOutput, | 91 kGLShaderIntermOutput, |
97 kEmulateShaderPrecision, | 92 kEmulateShaderPrecision, |
98 kEnableGLPathRendering, | |
99 }; | 93 }; |
100 | 94 |
101 const int kNumGpuSwitches = arraysize(kGpuSwitches); | 95 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
102 | 96 |
103 } // namespace switches | 97 } // namespace switches |
OLD | NEW |