OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include <limits.h> | 7 #include <limits.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
(...skipping 3152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3163 // This is unconditionally true on mac, no need to test for it at runtime. | 3163 // This is unconditionally true on mac, no need to test for it at runtime. |
3164 caps.iosurface = true; | 3164 caps.iosurface = true; |
3165 #endif | 3165 #endif |
3166 | 3166 |
3167 caps.post_sub_buffer = supports_post_sub_buffer_; | 3167 caps.post_sub_buffer = supports_post_sub_buffer_; |
3168 caps.commit_overlay_planes = supports_commit_overlay_planes_; | 3168 caps.commit_overlay_planes = supports_commit_overlay_planes_; |
3169 caps.image = true; | 3169 caps.image = true; |
3170 caps.surfaceless = surfaceless_; | 3170 caps.surfaceless = surfaceless_; |
3171 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); | 3171 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); |
3172 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); | 3172 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); |
| 3173 caps.msaa_is_slow = feature_info_->workarounds().msaa_is_slow; |
3173 | 3174 |
3174 caps.blend_equation_advanced = | 3175 caps.blend_equation_advanced = |
3175 feature_info_->feature_flags().blend_equation_advanced; | 3176 feature_info_->feature_flags().blend_equation_advanced; |
3176 caps.blend_equation_advanced_coherent = | 3177 caps.blend_equation_advanced_coherent = |
3177 feature_info_->feature_flags().blend_equation_advanced_coherent; | 3178 feature_info_->feature_flags().blend_equation_advanced_coherent; |
3178 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; | 3179 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; |
3179 caps.texture_half_float_linear = | 3180 caps.texture_half_float_linear = |
3180 feature_info_->feature_flags().enable_texture_half_float_linear; | 3181 feature_info_->feature_flags().enable_texture_half_float_linear; |
3181 caps.image_ycbcr_422 = | 3182 caps.image_ycbcr_422 = |
3182 feature_info_->feature_flags().chromium_image_ycbcr_422; | 3183 feature_info_->feature_flags().chromium_image_ycbcr_422; |
(...skipping 13068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16251 } | 16252 } |
16252 | 16253 |
16253 // Include the auto-generated part of this file. We split this because it means | 16254 // Include the auto-generated part of this file. We split this because it means |
16254 // we can easily edit the non-auto generated parts right here in this file | 16255 // we can easily edit the non-auto generated parts right here in this file |
16255 // instead of having to edit some template or the code generator. | 16256 // instead of having to edit some template or the code generator. |
16256 #include "base/macros.h" | 16257 #include "base/macros.h" |
16257 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 16258 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
16258 | 16259 |
16259 } // namespace gles2 | 16260 } // namespace gles2 |
16260 } // namespace gpu | 16261 } // namespace gpu |
OLD | NEW |