OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ | 5 #ifndef GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
6 #define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ | 6 #define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "gpu/gpu_export.h" | 10 #include "gpu/gpu_export.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 GPU_OP(USE_SHADOWED_TEX_LEVEL_PARAMS, \ | 198 GPU_OP(USE_SHADOWED_TEX_LEVEL_PARAMS, \ |
199 use_shadowed_tex_level_params) \ | 199 use_shadowed_tex_level_params) \ |
200 GPU_OP(USE_UNUSED_STANDARD_SHARED_BLOCKS, \ | 200 GPU_OP(USE_UNUSED_STANDARD_SHARED_BLOCKS, \ |
201 use_unused_standard_shared_blocks) \ | 201 use_unused_standard_shared_blocks) \ |
202 GPU_OP(USE_VIRTUALIZED_GL_CONTEXTS, \ | 202 GPU_OP(USE_VIRTUALIZED_GL_CONTEXTS, \ |
203 use_virtualized_gl_contexts) \ | 203 use_virtualized_gl_contexts) \ |
204 GPU_OP(VALIDATE_MULTISAMPLE_BUFFER_ALLOCATION, \ | 204 GPU_OP(VALIDATE_MULTISAMPLE_BUFFER_ALLOCATION, \ |
205 validate_multisample_buffer_allocation) \ | 205 validate_multisample_buffer_allocation) \ |
206 GPU_OP(WAKE_UP_GPU_BEFORE_DRAWING, \ | 206 GPU_OP(WAKE_UP_GPU_BEFORE_DRAWING, \ |
207 wake_up_gpu_before_drawing) \ | 207 wake_up_gpu_before_drawing) \ |
208 GPU_OP(USE_TESTING_GPU_DRIVER_WORKAROUND, \ | 208 GPU_OP(USE_GPU_DRIVER_WORKAROUND_FOR_TESTING, \ |
209 use_gpu_driver_workaround_for_testing) \ | 209 use_gpu_driver_workaround_for_testing) \ |
210 GPU_OP(DISALLOW_LARGE_INSTANCED_DRAW, \ | 210 GPU_OP(DISALLOW_LARGE_INSTANCED_DRAW, \ |
211 disallow_large_instanced_draw) \ | 211 disallow_large_instanced_draw) \ |
212 // clang-format on | 212 // clang-format on |
213 | 213 |
214 namespace gpu { | 214 namespace gpu { |
215 | 215 |
216 // Provides all types of GPU driver bug workarounds. | 216 // Provides all types of GPU driver bug workarounds. |
217 enum GpuDriverBugWorkaroundType { | 217 enum GpuDriverBugWorkaroundType { |
218 #define GPU_OP(type, name) type, | 218 #define GPU_OP(type, name) type, |
219 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | 219 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) |
220 #undef GPU_OP | 220 #undef GPU_OP |
221 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES | 221 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES |
222 }; | 222 }; |
223 | 223 |
224 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( | 224 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( |
225 GpuDriverBugWorkaroundType type); | 225 GpuDriverBugWorkaroundType type); |
226 | 226 |
227 } // namespace gpu | 227 } // namespace gpu |
228 | 228 |
229 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ | 229 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
OLD | NEW |