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 3769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3780 caps.iosurface = true; | 3780 caps.iosurface = true; |
3781 #endif | 3781 #endif |
3782 | 3782 |
3783 caps.post_sub_buffer = supports_post_sub_buffer_; | 3783 caps.post_sub_buffer = supports_post_sub_buffer_; |
3784 caps.swap_buffers_with_bounds = supports_swap_buffers_with_bounds_; | 3784 caps.swap_buffers_with_bounds = supports_swap_buffers_with_bounds_; |
3785 caps.commit_overlay_planes = supports_commit_overlay_planes_; | 3785 caps.commit_overlay_planes = supports_commit_overlay_planes_; |
3786 caps.surfaceless = surfaceless_; | 3786 caps.surfaceless = surfaceless_; |
3787 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); | 3787 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); |
3788 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); | 3788 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); |
3789 caps.msaa_is_slow = workarounds().msaa_is_slow; | 3789 caps.msaa_is_slow = workarounds().msaa_is_slow; |
| 3790 caps.avoid_stencil_buffers = workarounds().avoid_stencil_buffers; |
3790 caps.dc_layers = supports_dc_layers_; | 3791 caps.dc_layers = supports_dc_layers_; |
3791 | 3792 |
3792 caps.blend_equation_advanced = | 3793 caps.blend_equation_advanced = |
3793 feature_info_->feature_flags().blend_equation_advanced; | 3794 feature_info_->feature_flags().blend_equation_advanced; |
3794 caps.blend_equation_advanced_coherent = | 3795 caps.blend_equation_advanced_coherent = |
3795 feature_info_->feature_flags().blend_equation_advanced_coherent; | 3796 feature_info_->feature_flags().blend_equation_advanced_coherent; |
3796 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; | 3797 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; |
3797 caps.texture_norm16 = feature_info_->feature_flags().ext_texture_norm16; | 3798 caps.texture_norm16 = feature_info_->feature_flags().ext_texture_norm16; |
3798 caps.texture_half_float_linear = | 3799 caps.texture_half_float_linear = |
3799 feature_info_->feature_flags().enable_texture_half_float_linear; | 3800 feature_info_->feature_flags().enable_texture_half_float_linear; |
(...skipping 15860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19660 } | 19661 } |
19661 | 19662 |
19662 // Include the auto-generated part of this file. We split this because it means | 19663 // Include the auto-generated part of this file. We split this because it means |
19663 // we can easily edit the non-auto generated parts right here in this file | 19664 // we can easily edit the non-auto generated parts right here in this file |
19664 // instead of having to edit some template or the code generator. | 19665 // instead of having to edit some template or the code generator. |
19665 #include "base/macros.h" | 19666 #include "base/macros.h" |
19666 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19667 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
19667 | 19668 |
19668 } // namespace gles2 | 19669 } // namespace gles2 |
19669 } // namespace gpu | 19670 } // namespace gpu |
OLD | NEW |