OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 5 #ifndef GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
6 #define GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 6 #define GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "gpu/gpu_export.h" | 10 #include "gpu/gpu_export.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 bool render_buffer_format_bgra8888; | 144 bool render_buffer_format_bgra8888; |
145 bool occlusion_query; | 145 bool occlusion_query; |
146 bool occlusion_query_boolean; | 146 bool occlusion_query_boolean; |
147 bool timer_queries; | 147 bool timer_queries; |
148 bool surfaceless; | 148 bool surfaceless; |
149 bool flips_vertically; | 149 bool flips_vertically; |
150 bool msaa_is_slow; | 150 bool msaa_is_slow; |
151 bool disable_one_component_textures; | 151 bool disable_one_component_textures; |
152 bool disable_multisampling_color_mask_usage; | 152 bool disable_multisampling_color_mask_usage; |
153 bool disable_webgl_rgb_multisampling_usage; | 153 bool disable_webgl_rgb_multisampling_usage; |
| 154 bool set_draw_rectangle; |
154 | 155 |
155 // When this parameter is true, a CHROMIUM image created with RGB format will | 156 // When this parameter is true, a CHROMIUM image created with RGB format will |
156 // actually have RGBA format. The client is responsible for handling most of | 157 // actually have RGBA format. The client is responsible for handling most of |
157 // the complexities associated with this. See | 158 // the complexities associated with this. See |
158 // gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt for more | 159 // gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt for more |
159 // details. | 160 // details. |
160 bool chromium_image_rgb_emulation; | 161 bool chromium_image_rgb_emulation; |
161 | 162 |
162 // When true, RGB framebuffer formats are unsupported. Emulate with RGBA to | 163 // When true, RGB framebuffer formats are unsupported. Emulate with RGBA to |
163 // work around this. See https://crbug.com/449150 for an example. | 164 // work around this. See https://crbug.com/449150 for an example. |
164 bool emulate_rgb_buffer_with_rgba; | 165 bool emulate_rgb_buffer_with_rgba; |
165 | 166 |
166 int major_version; | 167 int major_version; |
167 int minor_version; | 168 int minor_version; |
168 }; | 169 }; |
169 | 170 |
170 } // namespace gpu | 171 } // namespace gpu |
171 | 172 |
172 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 173 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
OLD | NEW |