| 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 3761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3772 caps.iosurface = true; | 3772 caps.iosurface = true; |
| 3773 #endif | 3773 #endif |
| 3774 | 3774 |
| 3775 caps.post_sub_buffer = supports_post_sub_buffer_; | 3775 caps.post_sub_buffer = supports_post_sub_buffer_; |
| 3776 caps.swap_buffers_with_bounds = supports_swap_buffers_with_bounds_; | 3776 caps.swap_buffers_with_bounds = supports_swap_buffers_with_bounds_; |
| 3777 caps.commit_overlay_planes = supports_commit_overlay_planes_; | 3777 caps.commit_overlay_planes = supports_commit_overlay_planes_; |
| 3778 caps.surfaceless = surfaceless_; | 3778 caps.surfaceless = surfaceless_; |
| 3779 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); | 3779 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); |
| 3780 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); | 3780 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); |
| 3781 caps.msaa_is_slow = workarounds().msaa_is_slow; | 3781 caps.msaa_is_slow = workarounds().msaa_is_slow; |
| 3782 caps.avoid_stencil_buffers = workarounds().avoid_stencil_buffers; |
| 3782 caps.dc_layers = supports_dc_layers_; | 3783 caps.dc_layers = supports_dc_layers_; |
| 3783 | 3784 |
| 3784 caps.blend_equation_advanced = | 3785 caps.blend_equation_advanced = |
| 3785 feature_info_->feature_flags().blend_equation_advanced; | 3786 feature_info_->feature_flags().blend_equation_advanced; |
| 3786 caps.blend_equation_advanced_coherent = | 3787 caps.blend_equation_advanced_coherent = |
| 3787 feature_info_->feature_flags().blend_equation_advanced_coherent; | 3788 feature_info_->feature_flags().blend_equation_advanced_coherent; |
| 3788 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; | 3789 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; |
| 3789 caps.texture_half_float_linear = | 3790 caps.texture_half_float_linear = |
| 3790 feature_info_->feature_flags().enable_texture_half_float_linear; | 3791 feature_info_->feature_flags().enable_texture_half_float_linear; |
| 3791 caps.color_buffer_half_float_rgba = | 3792 caps.color_buffer_half_float_rgba = |
| (...skipping 15789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19581 } | 19582 } |
| 19582 | 19583 |
| 19583 // Include the auto-generated part of this file. We split this because it means | 19584 // Include the auto-generated part of this file. We split this because it means |
| 19584 // we can easily edit the non-auto generated parts right here in this file | 19585 // we can easily edit the non-auto generated parts right here in this file |
| 19585 // instead of having to edit some template or the code generator. | 19586 // instead of having to edit some template or the code generator. |
| 19586 #include "base/macros.h" | 19587 #include "base/macros.h" |
| 19587 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19588 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 19588 | 19589 |
| 19589 } // namespace gles2 | 19590 } // namespace gles2 |
| 19590 } // namespace gpu | 19591 } // namespace gpu |
| OLD | NEW |