| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 bool texture_rg; | 138 bool texture_rg; |
| 139 bool texture_half_float_linear; | 139 bool texture_half_float_linear; |
| 140 bool image_ycbcr_422; | 140 bool image_ycbcr_422; |
| 141 bool image_ycbcr_420v; | 141 bool image_ycbcr_420v; |
| 142 bool render_buffer_format_bgra8888; | 142 bool render_buffer_format_bgra8888; |
| 143 bool occlusion_query_boolean; | 143 bool occlusion_query_boolean; |
| 144 bool timer_queries; | 144 bool timer_queries; |
| 145 bool surfaceless; | 145 bool surfaceless; |
| 146 bool flips_vertically; | 146 bool flips_vertically; |
| 147 bool msaa_is_slow; | 147 bool msaa_is_slow; |
| 148 bool disable_one_component_textures; |
| 148 bool disable_multisampling_color_mask_usage; | 149 bool disable_multisampling_color_mask_usage; |
| 149 bool disable_webgl_rgb_multisampling_usage; | 150 bool disable_webgl_rgb_multisampling_usage; |
| 150 | 151 |
| 151 // When this parameter is true, a CHROMIUM image created with RGB format will | 152 // When this parameter is true, a CHROMIUM image created with RGB format will |
| 152 // actually have RGBA format. The client is responsible for handling most of | 153 // actually have RGBA format. The client is responsible for handling most of |
| 153 // the complexities associated with this. See | 154 // the complexities associated with this. See |
| 154 // gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt for more | 155 // gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt for more |
| 155 // details. | 156 // details. |
| 156 bool chromium_image_rgb_emulation; | 157 bool chromium_image_rgb_emulation; |
| 157 | 158 |
| 158 // When true, RGB framebuffer formats are unsupported. Emulate with RGBA to | 159 // When true, RGB framebuffer formats are unsupported. Emulate with RGBA to |
| 159 // work around this. See https://crbug.com/449150 for an example. | 160 // work around this. See https://crbug.com/449150 for an example. |
| 160 bool emulate_rgb_buffer_with_rgba; | 161 bool emulate_rgb_buffer_with_rgba; |
| 161 | 162 |
| 162 int major_version; | 163 int major_version; |
| 163 int minor_version; | 164 int minor_version; |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace gpu | 167 } // namespace gpu |
| 167 | 168 |
| 168 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 169 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
| OLD | NEW |