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 <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <cmath> | 10 #include <cmath> |
(...skipping 3130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3141 caps.post_sub_buffer = supports_post_sub_buffer_; | 3141 caps.post_sub_buffer = supports_post_sub_buffer_; |
3142 caps.image = true; | 3142 caps.image = true; |
3143 | 3143 |
3144 caps.blend_equation_advanced = | 3144 caps.blend_equation_advanced = |
3145 feature_info_->feature_flags().blend_equation_advanced; | 3145 feature_info_->feature_flags().blend_equation_advanced; |
3146 caps.blend_equation_advanced_coherent = | 3146 caps.blend_equation_advanced_coherent = |
3147 feature_info_->feature_flags().blend_equation_advanced_coherent; | 3147 feature_info_->feature_flags().blend_equation_advanced_coherent; |
3148 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; | 3148 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; |
3149 caps.max_copy_texture_chromium_size = | 3149 caps.max_copy_texture_chromium_size = |
3150 feature_info_->workarounds().max_copy_texture_chromium_size; | 3150 feature_info_->workarounds().max_copy_texture_chromium_size; |
| 3151 caps.render_buffer_format_bgra8888 = |
| 3152 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; |
3151 return caps; | 3153 return caps; |
3152 } | 3154 } |
3153 | 3155 |
3154 void GLES2DecoderImpl::UpdateCapabilities() { | 3156 void GLES2DecoderImpl::UpdateCapabilities() { |
3155 util_.set_num_compressed_texture_formats( | 3157 util_.set_num_compressed_texture_formats( |
3156 validators_->compressed_texture_format.GetValues().size()); | 3158 validators_->compressed_texture_format.GetValues().size()); |
3157 util_.set_num_shader_binary_formats( | 3159 util_.set_num_shader_binary_formats( |
3158 validators_->shader_binary_format.GetValues().size()); | 3160 validators_->shader_binary_format.GetValues().size()); |
3159 } | 3161 } |
3160 | 3162 |
(...skipping 10542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13703 } | 13705 } |
13704 } | 13706 } |
13705 | 13707 |
13706 // Include the auto-generated part of this file. We split this because it means | 13708 // Include the auto-generated part of this file. We split this because it means |
13707 // we can easily edit the non-auto generated parts right here in this file | 13709 // we can easily edit the non-auto generated parts right here in this file |
13708 // instead of having to edit some template or the code generator. | 13710 // instead of having to edit some template or the code generator. |
13709 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 13711 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
13710 | 13712 |
13711 } // namespace gles2 | 13713 } // namespace gles2 |
13712 } // namespace gpu | 13714 } // namespace gpu |
OLD | NEW |