| 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 3829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3840 caps.swap_buffers_with_bounds = supports_swap_buffers_with_bounds_; | 3840 caps.swap_buffers_with_bounds = supports_swap_buffers_with_bounds_; |
| 3841 caps.commit_overlay_planes = supports_commit_overlay_planes_; | 3841 caps.commit_overlay_planes = supports_commit_overlay_planes_; |
| 3842 caps.surfaceless = surfaceless_; | 3842 caps.surfaceless = surfaceless_; |
| 3843 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); | 3843 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); |
| 3844 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); | 3844 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); |
| 3845 caps.msaa_is_slow = workarounds().msaa_is_slow; | 3845 caps.msaa_is_slow = workarounds().msaa_is_slow; |
| 3846 caps.avoid_stencil_buffers = workarounds().avoid_stencil_buffers; | 3846 caps.avoid_stencil_buffers = workarounds().avoid_stencil_buffers; |
| 3847 caps.multisample_compatibility = | 3847 caps.multisample_compatibility = |
| 3848 feature_info_->feature_flags().ext_multisample_compatibility; | 3848 feature_info_->feature_flags().ext_multisample_compatibility; |
| 3849 caps.dc_layers = supports_dc_layers_; | 3849 caps.dc_layers = supports_dc_layers_; |
| 3850 caps.use_dc_overlays_for_video = surface_->UseOverlaysForVideo(); |
| 3850 | 3851 |
| 3851 caps.blend_equation_advanced = | 3852 caps.blend_equation_advanced = |
| 3852 feature_info_->feature_flags().blend_equation_advanced; | 3853 feature_info_->feature_flags().blend_equation_advanced; |
| 3853 caps.blend_equation_advanced_coherent = | 3854 caps.blend_equation_advanced_coherent = |
| 3854 feature_info_->feature_flags().blend_equation_advanced_coherent; | 3855 feature_info_->feature_flags().blend_equation_advanced_coherent; |
| 3855 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; | 3856 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; |
| 3856 caps.texture_norm16 = feature_info_->feature_flags().ext_texture_norm16; | 3857 caps.texture_norm16 = feature_info_->feature_flags().ext_texture_norm16; |
| 3857 caps.texture_half_float_linear = | 3858 caps.texture_half_float_linear = |
| 3858 feature_info_->feature_flags().enable_texture_half_float_linear; | 3859 feature_info_->feature_flags().enable_texture_half_float_linear; |
| 3859 caps.color_buffer_half_float_rgba = | 3860 caps.color_buffer_half_float_rgba = |
| (...skipping 15953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19813 } | 19814 } |
| 19814 | 19815 |
| 19815 // Include the auto-generated part of this file. We split this because it means | 19816 // Include the auto-generated part of this file. We split this because it means |
| 19816 // we can easily edit the non-auto generated parts right here in this file | 19817 // we can easily edit the non-auto generated parts right here in this file |
| 19817 // instead of having to edit some template or the code generator. | 19818 // instead of having to edit some template or the code generator. |
| 19818 #include "base/macros.h" | 19819 #include "base/macros.h" |
| 19819 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19820 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 19820 | 19821 |
| 19821 } // namespace gles2 | 19822 } // namespace gles2 |
| 19822 } // namespace gpu | 19823 } // namespace gpu |
| OLD | NEW |