| 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" |
| 11 | 11 |
| 12 // Clang format is toggled off here so that newlines can be kept consistent | 12 // Clang format is toggled off here so that newlines can be kept consistent |
| 13 // throughout the table. | 13 // throughout the table. |
| 14 // clang-format off | 14 // clang-format off |
| 15 #define GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) \ | 15 #define GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) \ |
| 16 GPU_OP(ADD_AND_TRUE_TO_LOOP_CONDITION, \ | 16 GPU_OP(ADD_AND_TRUE_TO_LOOP_CONDITION, \ |
| 17 add_and_true_to_loop_condition) \ | 17 add_and_true_to_loop_condition) \ |
| 18 GPU_OP(ADJUST_SRC_DST_REGION_FOR_BLITFRAMEBUFFER, \ | 18 GPU_OP(ADJUST_SRC_DST_REGION_FOR_BLITFRAMEBUFFER, \ |
| 19 adjust_src_dst_region_for_blitframebuffer) \ | 19 adjust_src_dst_region_for_blitframebuffer) \ |
| 20 GPU_OP(AVDA_DONT_COPY_PICTURES, \ | 20 GPU_OP(AVDA_DONT_COPY_PICTURES, \ |
| 21 avda_dont_copy_pictures) \ | 21 avda_dont_copy_pictures) \ |
| 22 GPU_OP(AVOID_EGL_IMAGE_TARGET_TEXTURE_REUSE, \ | 22 GPU_OP(AVOID_EGL_IMAGE_TARGET_TEXTURE_REUSE, \ |
| 23 avoid_egl_image_target_texture_reuse) \ | 23 avoid_egl_image_target_texture_reuse) \ |
| 24 GPU_OP(AVOID_ONE_COMPONENT_EGL_IMAGES, \ | 24 GPU_OP(AVOID_ONE_COMPONENT_EGL_IMAGES, \ |
| 25 avoid_one_component_egl_images) \ | 25 avoid_one_component_egl_images) \ |
| 26 GPU_OP(BROKEN_EGL_IMAGE_REF_COUNTING, \ | 26 GPU_OP(BROKEN_EGL_IMAGE_REF_COUNTING, \ |
| 27 broken_egl_image_ref_counting) \ | 27 broken_egl_image_ref_counting) \ |
| 28 GPU_OP(CLEAR_ALPHA_IN_READPIXELS, \ | 28 GPU_OP(CLEAR_ALPHA_IN_READPIXELS, \ |
| 29 clear_alpha_in_readpixels) \ | 29 clear_alpha_in_readpixels) \ |
| 30 GPU_OP(CLEAR_TO_BOUNDARY_VALUES_IS_BROKEN, \ |
| 31 clear_to_boundary_values_is_broken) \ |
| 30 GPU_OP(CLEAR_UNIFORMS_BEFORE_FIRST_PROGRAM_USE, \ | 32 GPU_OP(CLEAR_UNIFORMS_BEFORE_FIRST_PROGRAM_USE, \ |
| 31 clear_uniforms_before_first_program_use) \ | 33 clear_uniforms_before_first_program_use) \ |
| 32 GPU_OP(COUNT_ALL_IN_VARYINGS_PACKING, \ | 34 GPU_OP(COUNT_ALL_IN_VARYINGS_PACKING, \ |
| 33 count_all_in_varyings_packing) \ | 35 count_all_in_varyings_packing) \ |
| 34 GPU_OP(CREATE_DEFAULT_GL_CONTEXT, \ | 36 GPU_OP(CREATE_DEFAULT_GL_CONTEXT, \ |
| 35 create_default_gl_context) \ | 37 create_default_gl_context) \ |
| 36 GPU_OP(DECODE_ENCODE_SRGB_FOR_GENERATEMIPMAP, \ | 38 GPU_OP(DECODE_ENCODE_SRGB_FOR_GENERATEMIPMAP, \ |
| 37 decode_encode_srgb_for_generatemipmap) \ | 39 decode_encode_srgb_for_generatemipmap) \ |
| 38 GPU_OP(DISABLE_ACCELERATED_VPX_DECODE, \ | 40 GPU_OP(DISABLE_ACCELERATED_VPX_DECODE, \ |
| 39 disable_accelerated_vpx_decode) \ | 41 disable_accelerated_vpx_decode) \ |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 #undef GPU_OP | 236 #undef GPU_OP |
| 235 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES | 237 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES |
| 236 }; | 238 }; |
| 237 | 239 |
| 238 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( | 240 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( |
| 239 GpuDriverBugWorkaroundType type); | 241 GpuDriverBugWorkaroundType type); |
| 240 | 242 |
| 241 } // namespace gpu | 243 } // namespace gpu |
| 242 | 244 |
| 243 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ | 245 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
| OLD | NEW |