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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 GPU_OP(USE_CURRENT_PROGRAM_AFTER_SUCCESSFUL_LINK, \ | 117 GPU_OP(USE_CURRENT_PROGRAM_AFTER_SUCCESSFUL_LINK, \ |
118 use_current_program_after_successful_link) \ | 118 use_current_program_after_successful_link) \ |
119 GPU_OP(USE_NON_ZERO_SIZE_FOR_CLIENT_SIDE_STREAM_BUFFERS, \ | 119 GPU_OP(USE_NON_ZERO_SIZE_FOR_CLIENT_SIDE_STREAM_BUFFERS, \ |
120 use_non_zero_size_for_client_side_stream_buffers) \ | 120 use_non_zero_size_for_client_side_stream_buffers) \ |
121 GPU_OP(USE_VIRTUALIZED_GL_CONTEXTS, \ | 121 GPU_OP(USE_VIRTUALIZED_GL_CONTEXTS, \ |
122 use_virtualized_gl_contexts) \ | 122 use_virtualized_gl_contexts) \ |
123 GPU_OP(VALIDATE_MULTISAMPLE_BUFFER_ALLOCATION, \ | 123 GPU_OP(VALIDATE_MULTISAMPLE_BUFFER_ALLOCATION, \ |
124 validate_multisample_buffer_allocation) \ | 124 validate_multisample_buffer_allocation) \ |
125 GPU_OP(WAKE_UP_GPU_BEFORE_DRAWING, \ | 125 GPU_OP(WAKE_UP_GPU_BEFORE_DRAWING, \ |
126 wake_up_gpu_before_drawing) \ | 126 wake_up_gpu_before_drawing) \ |
| 127 GPU_OP(SUPPORT_BGRA_COLOR_READ_FORMAT, \ |
| 128 support_bgra_color_read_format) \ |
127 | 129 |
128 namespace gpu { | 130 namespace gpu { |
129 | 131 |
130 // Provides all types of GPU driver bug workarounds. | 132 // Provides all types of GPU driver bug workarounds. |
131 enum GPU_EXPORT GpuDriverBugWorkaroundType { | 133 enum GPU_EXPORT GpuDriverBugWorkaroundType { |
132 #define GPU_OP(type, name) type, | 134 #define GPU_OP(type, name) type, |
133 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | 135 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) |
134 #undef GPU_OP | 136 #undef GPU_OP |
135 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES | 137 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES |
136 }; | 138 }; |
137 | 139 |
138 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( | 140 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( |
139 GpuDriverBugWorkaroundType type); | 141 GpuDriverBugWorkaroundType type); |
140 | 142 |
141 } // namespace gpu | 143 } // namespace gpu |
142 | 144 |
143 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ | 145 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
OLD | NEW |