| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 bool flips_vertically = false; | 152 bool flips_vertically = false; |
| 153 bool msaa_is_slow = false; | 153 bool msaa_is_slow = false; |
| 154 bool disable_one_component_textures = false; | 154 bool disable_one_component_textures = false; |
| 155 bool disable_multisampling_color_mask_usage = false; | 155 bool disable_multisampling_color_mask_usage = false; |
| 156 bool disable_webgl_rgb_multisampling_usage = false; | 156 bool disable_webgl_rgb_multisampling_usage = false; |
| 157 bool gpu_rasterization = false; | 157 bool gpu_rasterization = false; |
| 158 bool avoid_stencil_buffers = false; | 158 bool avoid_stencil_buffers = false; |
| 159 bool multisample_compatibility = false; | 159 bool multisample_compatibility = false; |
| 160 // True if DirectComposition layers are enabled. | 160 // True if DirectComposition layers are enabled. |
| 161 bool dc_layers = false; | 161 bool dc_layers = false; |
| 162 bool use_dc_overlays_for_video = false; |
| 162 | 163 |
| 163 // When this parameter is true, a CHROMIUM image created with RGB format will | 164 // When this parameter is true, a CHROMIUM image created with RGB format will |
| 164 // actually have RGBA format. The client is responsible for handling most of | 165 // actually have RGBA format. The client is responsible for handling most of |
| 165 // the complexities associated with this. See | 166 // the complexities associated with this. See |
| 166 // gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt for more | 167 // gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt for more |
| 167 // details. | 168 // details. |
| 168 bool chromium_image_rgb_emulation = false; | 169 bool chromium_image_rgb_emulation = false; |
| 169 | 170 |
| 170 // When true, RGB framebuffer formats are unsupported. Emulate with RGBA to | 171 // When true, RGB framebuffer formats are unsupported. Emulate with RGBA to |
| 171 // work around this. See https://crbug.com/449150 for an example. | 172 // work around this. See https://crbug.com/449150 for an example. |
| 172 bool emulate_rgb_buffer_with_rgba = false; | 173 bool emulate_rgb_buffer_with_rgba = false; |
| 173 | 174 |
| 174 // When true, is safe to convert a canvas from software to accelerated. | 175 // When true, is safe to convert a canvas from software to accelerated. |
| 175 // See https://crbug.com/710029. | 176 // See https://crbug.com/710029. |
| 176 bool software_to_accelerated_canvas_upgrade = true; | 177 bool software_to_accelerated_canvas_upgrade = true; |
| 177 | 178 |
| 178 // When true, non-empty post sub buffer calls are unsupported. | 179 // When true, non-empty post sub buffer calls are unsupported. |
| 179 bool disable_non_empty_post_sub_buffers = false; | 180 bool disable_non_empty_post_sub_buffers = false; |
| 180 | 181 |
| 181 int major_version = 2; | 182 int major_version = 2; |
| 182 int minor_version = 0; | 183 int minor_version = 0; |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 } // namespace gpu | 186 } // namespace gpu |
| 186 | 187 |
| 187 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 188 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
| OLD | NEW |