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 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3139 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); | 3139 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); |
3140 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); | 3140 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); |
3141 | 3141 |
3142 caps.blend_equation_advanced = | 3142 caps.blend_equation_advanced = |
3143 feature_info_->feature_flags().blend_equation_advanced; | 3143 feature_info_->feature_flags().blend_equation_advanced; |
3144 caps.blend_equation_advanced_coherent = | 3144 caps.blend_equation_advanced_coherent = |
3145 feature_info_->feature_flags().blend_equation_advanced_coherent; | 3145 feature_info_->feature_flags().blend_equation_advanced_coherent; |
3146 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; | 3146 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; |
3147 caps.image_ycbcr_422 = | 3147 caps.image_ycbcr_422 = |
3148 feature_info_->feature_flags().chromium_image_ycbcr_422; | 3148 feature_info_->feature_flags().chromium_image_ycbcr_422; |
| 3149 caps.image_ycbcr_420v = |
| 3150 feature_info_->feature_flags().chromium_image_ycbcr_420v; |
3149 caps.max_copy_texture_chromium_size = | 3151 caps.max_copy_texture_chromium_size = |
3150 feature_info_->workarounds().max_copy_texture_chromium_size; | 3152 feature_info_->workarounds().max_copy_texture_chromium_size; |
3151 caps.render_buffer_format_bgra8888 = | 3153 caps.render_buffer_format_bgra8888 = |
3152 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; | 3154 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; |
3153 caps.occlusion_query_boolean = | 3155 caps.occlusion_query_boolean = |
3154 feature_info_->feature_flags().occlusion_query_boolean; | 3156 feature_info_->feature_flags().occlusion_query_boolean; |
3155 caps.timer_queries = | 3157 caps.timer_queries = |
3156 query_manager_->GPUTimingAvailable(); | 3158 query_manager_->GPUTimingAvailable(); |
3157 return caps; | 3159 return caps; |
3158 } | 3160 } |
(...skipping 12412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15571 } | 15573 } |
15572 | 15574 |
15573 // Include the auto-generated part of this file. We split this because it means | 15575 // Include the auto-generated part of this file. We split this because it means |
15574 // we can easily edit the non-auto generated parts right here in this file | 15576 // we can easily edit the non-auto generated parts right here in this file |
15575 // instead of having to edit some template or the code generator. | 15577 // instead of having to edit some template or the code generator. |
15576 #include "base/macros.h" | 15578 #include "base/macros.h" |
15577 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 15579 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
15578 | 15580 |
15579 } // namespace gles2 | 15581 } // namespace gles2 |
15580 } // namespace gpu | 15582 } // namespace gpu |
OLD | NEW |