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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 GPU_OP(USE_SHADOWED_TEX_LEVEL_PARAMS, \ | 182 GPU_OP(USE_SHADOWED_TEX_LEVEL_PARAMS, \ |
183 use_shadowed_tex_level_params) \ | 183 use_shadowed_tex_level_params) \ |
184 GPU_OP(USE_VIRTUALIZED_GL_CONTEXTS, \ | 184 GPU_OP(USE_VIRTUALIZED_GL_CONTEXTS, \ |
185 use_virtualized_gl_contexts) \ | 185 use_virtualized_gl_contexts) \ |
186 GPU_OP(VALIDATE_MULTISAMPLE_BUFFER_ALLOCATION, \ | 186 GPU_OP(VALIDATE_MULTISAMPLE_BUFFER_ALLOCATION, \ |
187 validate_multisample_buffer_allocation) \ | 187 validate_multisample_buffer_allocation) \ |
188 GPU_OP(WAKE_UP_GPU_BEFORE_DRAWING, \ | 188 GPU_OP(WAKE_UP_GPU_BEFORE_DRAWING, \ |
189 wake_up_gpu_before_drawing) \ | 189 wake_up_gpu_before_drawing) \ |
190 GPU_OP(USE_TESTING_GPU_DRIVER_WORKAROUND, \ | 190 GPU_OP(USE_TESTING_GPU_DRIVER_WORKAROUND, \ |
191 use_gpu_driver_workaround_for_testing) \ | 191 use_gpu_driver_workaround_for_testing) \ |
| 192 GPU_OP(SANDBOX_START_EARLY, \ |
| 193 sandbox_start_early) \ |
192 // clang-format on | 194 // clang-format on |
193 | 195 |
194 namespace gpu { | 196 namespace gpu { |
195 | 197 |
196 // Provides all types of GPU driver bug workarounds. | 198 // Provides all types of GPU driver bug workarounds. |
197 enum GpuDriverBugWorkaroundType { | 199 enum GpuDriverBugWorkaroundType { |
198 #define GPU_OP(type, name) type, | 200 #define GPU_OP(type, name) type, |
199 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | 201 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) |
200 #undef GPU_OP | 202 #undef GPU_OP |
201 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES | 203 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES |
202 }; | 204 }; |
203 | 205 |
204 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( | 206 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( |
205 GpuDriverBugWorkaroundType type); | 207 GpuDriverBugWorkaroundType type); |
206 | 208 |
207 } // namespace gpu | 209 } // namespace gpu |
208 | 210 |
209 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ | 211 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
OLD | NEW |