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