Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Side by Side Diff: gpu/config/gpu_driver_bug_workaround_type.h

Issue 2242453002: Avoid planar YUV resources when one component EGL images are not supported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: modify comment to explain the use of RGBA_8888 to trigger a driver workaround Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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(AVDA_DONT_COPY_PICTURES, \ 16 GPU_OP(AVDA_DONT_COPY_PICTURES, \
17 avda_dont_copy_pictures) \ 17 avda_dont_copy_pictures) \
18 GPU_OP(AVOID_EGL_IMAGE_TARGET_TEXTURE_REUSE, \ 18 GPU_OP(AVOID_EGL_IMAGE_TARGET_TEXTURE_REUSE, \
19 avoid_egl_image_target_texture_reuse) \ 19 avoid_egl_image_target_texture_reuse) \
20 GPU_OP(BROKEN_EGL_IMAGE_REF_COUNTING, \ 20 GPU_OP(BROKEN_EGL_IMAGE_REF_COUNTING, \
21 broken_egl_image_ref_counting) \ 21 broken_egl_image_ref_counting) \
22 GPU_OP(AVOID_ONE_COMPONENT_EGL_IMAGES, \
23 avoid_one_component_egl_images) \
no sievers 2016/08/24 22:39:18 nit: before BROKEN_...
Tobias Sargeant 2016/08/26 15:52:11 Done.
22 GPU_OP(CLEAR_ALPHA_IN_READPIXELS, \ 24 GPU_OP(CLEAR_ALPHA_IN_READPIXELS, \
23 clear_alpha_in_readpixels) \ 25 clear_alpha_in_readpixels) \
24 GPU_OP(CLEAR_UNIFORMS_BEFORE_FIRST_PROGRAM_USE, \ 26 GPU_OP(CLEAR_UNIFORMS_BEFORE_FIRST_PROGRAM_USE, \
25 clear_uniforms_before_first_program_use) \ 27 clear_uniforms_before_first_program_use) \
26 GPU_OP(COUNT_ALL_IN_VARYINGS_PACKING, \ 28 GPU_OP(COUNT_ALL_IN_VARYINGS_PACKING, \
27 count_all_in_varyings_packing) \ 29 count_all_in_varyings_packing) \
28 GPU_OP(DISABLE_ANGLE_INSTANCED_ARRAYS, \ 30 GPU_OP(DISABLE_ANGLE_INSTANCED_ARRAYS, \
29 disable_angle_instanced_arrays) \ 31 disable_angle_instanced_arrays) \
30 GPU_OP(DISABLE_ASYNC_READPIXELS, \ 32 GPU_OP(DISABLE_ASYNC_READPIXELS, \
31 disable_async_readpixels) \ 33 disable_async_readpixels) \
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 #undef GPU_OP 176 #undef GPU_OP
175 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES 177 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES
176 }; 178 };
177 179
178 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( 180 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString(
179 GpuDriverBugWorkaroundType type); 181 GpuDriverBugWorkaroundType type);
180 182
181 } // namespace gpu 183 } // namespace gpu
182 184
183 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ 185 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698