Chromium Code Reviews| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 GPU_OP(USE_INTERMEDIARY_FOR_COPY_TEXTURE_IMAGE, \ | 151 GPU_OP(USE_INTERMEDIARY_FOR_COPY_TEXTURE_IMAGE, \ |
| 152 use_intermediary_for_copy_texture_image) \ | 152 use_intermediary_for_copy_texture_image) \ |
| 153 GPU_OP(USE_NON_ZERO_SIZE_FOR_CLIENT_SIDE_STREAM_BUFFERS, \ | 153 GPU_OP(USE_NON_ZERO_SIZE_FOR_CLIENT_SIDE_STREAM_BUFFERS, \ |
| 154 use_non_zero_size_for_client_side_stream_buffers) \ | 154 use_non_zero_size_for_client_side_stream_buffers) \ |
| 155 GPU_OP(USE_VIRTUALIZED_GL_CONTEXTS, \ | 155 GPU_OP(USE_VIRTUALIZED_GL_CONTEXTS, \ |
| 156 use_virtualized_gl_contexts) \ | 156 use_virtualized_gl_contexts) \ |
| 157 GPU_OP(VALIDATE_MULTISAMPLE_BUFFER_ALLOCATION, \ | 157 GPU_OP(VALIDATE_MULTISAMPLE_BUFFER_ALLOCATION, \ |
| 158 validate_multisample_buffer_allocation) \ | 158 validate_multisample_buffer_allocation) \ |
| 159 GPU_OP(WAKE_UP_GPU_BEFORE_DRAWING, \ | 159 GPU_OP(WAKE_UP_GPU_BEFORE_DRAWING, \ |
| 160 wake_up_gpu_before_drawing) \ | 160 wake_up_gpu_before_drawing) \ |
| 161 GPU_OP(USE_TESTING_GPU_DRIVER_WORKAROUND, \ | |
| 162 use_testing_gpu_driver_workaround) \ | |
|
Ken Russell (switch to Gerrit)
2016/03/30 22:17:42
nit: use_gpu_driver_workaround_for_testing
Julien Isorce Samsung
2016/03/31 15:20:10
Done.
| |
| 161 | 163 |
| 162 namespace gpu { | 164 namespace gpu { |
| 163 | 165 |
| 164 // Provides all types of GPU driver bug workarounds. | 166 // Provides all types of GPU driver bug workarounds. |
| 165 enum GpuDriverBugWorkaroundType { | 167 enum GpuDriverBugWorkaroundType { |
| 166 #define GPU_OP(type, name) type, | 168 #define GPU_OP(type, name) type, |
| 167 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | 169 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) |
| 168 #undef GPU_OP | 170 #undef GPU_OP |
| 169 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES | 171 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES |
| 170 }; | 172 }; |
| 171 | 173 |
| 172 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( | 174 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( |
| 173 GpuDriverBugWorkaroundType type); | 175 GpuDriverBugWorkaroundType type); |
| 174 | 176 |
| 175 } // namespace gpu | 177 } // namespace gpu |
| 176 | 178 |
| 177 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ | 179 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
| OLD | NEW |