| 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 3180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3191 | 3191 |
| 3192 caps.post_sub_buffer = supports_post_sub_buffer_; | 3192 caps.post_sub_buffer = supports_post_sub_buffer_; |
| 3193 caps.image = true; | 3193 caps.image = true; |
| 3194 caps.surfaceless = surfaceless_; | 3194 caps.surfaceless = surfaceless_; |
| 3195 | 3195 |
| 3196 caps.blend_equation_advanced = | 3196 caps.blend_equation_advanced = |
| 3197 feature_info_->feature_flags().blend_equation_advanced; | 3197 feature_info_->feature_flags().blend_equation_advanced; |
| 3198 caps.blend_equation_advanced_coherent = | 3198 caps.blend_equation_advanced_coherent = |
| 3199 feature_info_->feature_flags().blend_equation_advanced_coherent; | 3199 feature_info_->feature_flags().blend_equation_advanced_coherent; |
| 3200 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; | 3200 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; |
| 3201 caps.image_ycbcr_422 = |
| 3202 feature_info_->feature_flags().chromium_image_ycbcr_422; |
| 3201 caps.max_copy_texture_chromium_size = | 3203 caps.max_copy_texture_chromium_size = |
| 3202 feature_info_->workarounds().max_copy_texture_chromium_size; | 3204 feature_info_->workarounds().max_copy_texture_chromium_size; |
| 3203 caps.render_buffer_format_bgra8888 = | 3205 caps.render_buffer_format_bgra8888 = |
| 3204 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; | 3206 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; |
| 3205 caps.occlusion_query_boolean = | 3207 caps.occlusion_query_boolean = |
| 3206 feature_info_->feature_flags().occlusion_query_boolean; | 3208 feature_info_->feature_flags().occlusion_query_boolean; |
| 3207 caps.timer_queries = | 3209 caps.timer_queries = |
| 3208 query_manager_->GPUTimingAvailable(); | 3210 query_manager_->GPUTimingAvailable(); |
| 3209 return caps; | 3211 return caps; |
| 3210 } | 3212 } |
| (...skipping 11572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14783 return error::kNoError; | 14785 return error::kNoError; |
| 14784 } | 14786 } |
| 14785 | 14787 |
| 14786 // Include the auto-generated part of this file. We split this because it means | 14788 // Include the auto-generated part of this file. We split this because it means |
| 14787 // we can easily edit the non-auto generated parts right here in this file | 14789 // we can easily edit the non-auto generated parts right here in this file |
| 14788 // instead of having to edit some template or the code generator. | 14790 // instead of having to edit some template or the code generator. |
| 14789 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 14791 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 14790 | 14792 |
| 14791 } // namespace gles2 | 14793 } // namespace gles2 |
| 14792 } // namespace gpu | 14794 } // namespace gpu |
| OLD | NEW |