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 <list> | 10 #include <list> |
(...skipping 2819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2830 DoGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &caps.max_vertex_attribs); | 2830 DoGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &caps.max_vertex_attribs); |
2831 DoGetIntegerv(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, | 2831 DoGetIntegerv(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, |
2832 &caps.max_vertex_texture_image_units); | 2832 &caps.max_vertex_texture_image_units); |
2833 DoGetIntegerv(GL_MAX_VERTEX_UNIFORM_VECTORS, | 2833 DoGetIntegerv(GL_MAX_VERTEX_UNIFORM_VECTORS, |
2834 &caps.max_vertex_uniform_vectors); | 2834 &caps.max_vertex_uniform_vectors); |
2835 DoGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, | 2835 DoGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, |
2836 &caps.num_compressed_texture_formats); | 2836 &caps.num_compressed_texture_formats); |
2837 DoGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &caps.num_shader_binary_formats); | 2837 DoGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &caps.num_shader_binary_formats); |
2838 DoGetIntegerv(GL_BIND_GENERATES_RESOURCE_CHROMIUM, | 2838 DoGetIntegerv(GL_BIND_GENERATES_RESOURCE_CHROMIUM, |
2839 &caps.bind_generates_resource_chromium); | 2839 &caps.bind_generates_resource_chromium); |
| 2840 if (unsafe_es3_apis_enabled()) { |
| 2841 DoGetIntegerv(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS, |
| 2842 &caps.max_transform_feedback_separate_attribs); |
| 2843 DoGetIntegerv(GL_MAX_UNIFORM_BUFFER_BINDINGS, |
| 2844 &caps.max_uniform_buffer_bindings); |
| 2845 DoGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, |
| 2846 &caps.uniform_buffer_offset_alignment); |
| 2847 } |
2840 | 2848 |
2841 caps.egl_image_external = | 2849 caps.egl_image_external = |
2842 feature_info_->feature_flags().oes_egl_image_external; | 2850 feature_info_->feature_flags().oes_egl_image_external; |
2843 caps.texture_format_bgra8888 = | 2851 caps.texture_format_bgra8888 = |
2844 feature_info_->feature_flags().ext_texture_format_bgra8888; | 2852 feature_info_->feature_flags().ext_texture_format_bgra8888; |
2845 caps.texture_format_etc1 = | 2853 caps.texture_format_etc1 = |
2846 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; | 2854 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; |
2847 caps.texture_format_etc1_npot = | 2855 caps.texture_format_etc1_npot = |
2848 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; | 2856 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; |
2849 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; | 2857 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; |
(...skipping 8801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11651 } | 11659 } |
11652 } | 11660 } |
11653 | 11661 |
11654 // Include the auto-generated part of this file. We split this because it means | 11662 // Include the auto-generated part of this file. We split this because it means |
11655 // we can easily edit the non-auto generated parts right here in this file | 11663 // we can easily edit the non-auto generated parts right here in this file |
11656 // instead of having to edit some template or the code generator. | 11664 // instead of having to edit some template or the code generator. |
11657 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 11665 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
11658 | 11666 |
11659 } // namespace gles2 | 11667 } // namespace gles2 |
11660 } // namespace gpu | 11668 } // namespace gpu |
OLD | NEW |