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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_GPU_DRIVER_WORKAROUND_FOR_TESTING, \ | 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 GPU_OP(DISABLE_SOFTWARE_TO_ACCELERATED_CANVAS_UPGRADE, \ |
| 213 disable_software_to_accelerated_canvas_upgrade) \ |
212 // clang-format on | 214 // clang-format on |
213 | 215 |
214 namespace gpu { | 216 namespace gpu { |
215 | 217 |
216 // Provides all types of GPU driver bug workarounds. | 218 // Provides all types of GPU driver bug workarounds. |
217 enum GpuDriverBugWorkaroundType { | 219 enum GpuDriverBugWorkaroundType { |
218 #define GPU_OP(type, name) type, | 220 #define GPU_OP(type, name) type, |
219 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | 221 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) |
220 #undef GPU_OP | 222 #undef GPU_OP |
221 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES | 223 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES |
222 }; | 224 }; |
223 | 225 |
224 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( | 226 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( |
225 GpuDriverBugWorkaroundType type); | 227 GpuDriverBugWorkaroundType type); |
226 | 228 |
227 } // namespace gpu | 229 } // namespace gpu |
228 | 230 |
229 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ | 231 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
OLD | NEW |