| 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 3727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3738 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); | 3738 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); |
| 3739 caps.msaa_is_slow = workarounds().msaa_is_slow; | 3739 caps.msaa_is_slow = workarounds().msaa_is_slow; |
| 3740 | 3740 |
| 3741 caps.blend_equation_advanced = | 3741 caps.blend_equation_advanced = |
| 3742 feature_info_->feature_flags().blend_equation_advanced; | 3742 feature_info_->feature_flags().blend_equation_advanced; |
| 3743 caps.blend_equation_advanced_coherent = | 3743 caps.blend_equation_advanced_coherent = |
| 3744 feature_info_->feature_flags().blend_equation_advanced_coherent; | 3744 feature_info_->feature_flags().blend_equation_advanced_coherent; |
| 3745 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; | 3745 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; |
| 3746 caps.texture_half_float_linear = | 3746 caps.texture_half_float_linear = |
| 3747 feature_info_->feature_flags().enable_texture_half_float_linear; | 3747 feature_info_->feature_flags().enable_texture_half_float_linear; |
| 3748 caps.color_buffer_float = | 3748 caps.color_buffer_half_float_rgba = |
| 3749 feature_info_->feature_flags().enable_color_buffer_float; | 3749 feature_info_->feature_flags().enable_color_buffer_float || |
| 3750 feature_info_->feature_flags().enable_color_buffer_half_float; |
| 3750 caps.image_ycbcr_422 = | 3751 caps.image_ycbcr_422 = |
| 3751 feature_info_->feature_flags().chromium_image_ycbcr_422; | 3752 feature_info_->feature_flags().chromium_image_ycbcr_422; |
| 3752 caps.image_ycbcr_420v = | 3753 caps.image_ycbcr_420v = |
| 3753 feature_info_->feature_flags().chromium_image_ycbcr_420v; | 3754 feature_info_->feature_flags().chromium_image_ycbcr_420v; |
| 3754 caps.max_copy_texture_chromium_size = | 3755 caps.max_copy_texture_chromium_size = |
| 3755 workarounds().max_copy_texture_chromium_size; | 3756 workarounds().max_copy_texture_chromium_size; |
| 3756 caps.render_buffer_format_bgra8888 = | 3757 caps.render_buffer_format_bgra8888 = |
| 3757 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; | 3758 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; |
| 3758 caps.occlusion_query = feature_info_->feature_flags().occlusion_query; | 3759 caps.occlusion_query = feature_info_->feature_flags().occlusion_query; |
| 3759 caps.occlusion_query_boolean = | 3760 caps.occlusion_query_boolean = |
| (...skipping 15530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19290 } | 19291 } |
| 19291 | 19292 |
| 19292 // Include the auto-generated part of this file. We split this because it means | 19293 // Include the auto-generated part of this file. We split this because it means |
| 19293 // we can easily edit the non-auto generated parts right here in this file | 19294 // we can easily edit the non-auto generated parts right here in this file |
| 19294 // instead of having to edit some template or the code generator. | 19295 // instead of having to edit some template or the code generator. |
| 19295 #include "base/macros.h" | 19296 #include "base/macros.h" |
| 19296 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19297 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 19297 | 19298 |
| 19298 } // namespace gles2 | 19299 } // namespace gles2 |
| 19299 } // namespace gpu | 19300 } // namespace gpu |
| OLD | NEW |