| 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 2824 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2835   DoGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &caps.max_vertex_attribs); | 2835   DoGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &caps.max_vertex_attribs); | 
| 2836   DoGetIntegerv(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, | 2836   DoGetIntegerv(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, | 
| 2837                 &caps.max_vertex_texture_image_units); | 2837                 &caps.max_vertex_texture_image_units); | 
| 2838   DoGetIntegerv(GL_MAX_VERTEX_UNIFORM_VECTORS, | 2838   DoGetIntegerv(GL_MAX_VERTEX_UNIFORM_VECTORS, | 
| 2839                 &caps.max_vertex_uniform_vectors); | 2839                 &caps.max_vertex_uniform_vectors); | 
| 2840   DoGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, | 2840   DoGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, | 
| 2841                 &caps.num_compressed_texture_formats); | 2841                 &caps.num_compressed_texture_formats); | 
| 2842   DoGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &caps.num_shader_binary_formats); | 2842   DoGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &caps.num_shader_binary_formats); | 
| 2843   DoGetIntegerv(GL_BIND_GENERATES_RESOURCE_CHROMIUM, | 2843   DoGetIntegerv(GL_BIND_GENERATES_RESOURCE_CHROMIUM, | 
| 2844                 &caps.bind_generates_resource_chromium); | 2844                 &caps.bind_generates_resource_chromium); | 
|  | 2845   if (unsafe_es3_apis_enabled()) { | 
|  | 2846     DoGetIntegerv(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS, | 
|  | 2847                   &caps.max_transform_feedback_separate_attribs); | 
|  | 2848     DoGetIntegerv(GL_MAX_UNIFORM_BUFFER_BINDINGS, | 
|  | 2849                   &caps.max_uniform_buffer_bindings); | 
|  | 2850     DoGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, | 
|  | 2851                   &caps.uniform_buffer_offset_alignment); | 
|  | 2852   } | 
| 2845 | 2853 | 
| 2846   caps.egl_image_external = | 2854   caps.egl_image_external = | 
| 2847       feature_info_->feature_flags().oes_egl_image_external; | 2855       feature_info_->feature_flags().oes_egl_image_external; | 
| 2848   caps.texture_format_bgra8888 = | 2856   caps.texture_format_bgra8888 = | 
| 2849       feature_info_->feature_flags().ext_texture_format_bgra8888; | 2857       feature_info_->feature_flags().ext_texture_format_bgra8888; | 
| 2850   caps.texture_format_etc1 = | 2858   caps.texture_format_etc1 = | 
| 2851       feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; | 2859       feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; | 
| 2852   caps.texture_format_etc1_npot = | 2860   caps.texture_format_etc1_npot = | 
| 2853       caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; | 2861       caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; | 
| 2854   caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; | 2862   caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; | 
| (...skipping 8813 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 11668   } | 11676   } | 
| 11669 } | 11677 } | 
| 11670 | 11678 | 
| 11671 // Include the auto-generated part of this file. We split this because it means | 11679 // Include the auto-generated part of this file. We split this because it means | 
| 11672 // we can easily edit the non-auto generated parts right here in this file | 11680 // we can easily edit the non-auto generated parts right here in this file | 
| 11673 // instead of having to edit some template or the code generator. | 11681 // instead of having to edit some template or the code generator. | 
| 11674 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 11682 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 
| 11675 | 11683 | 
| 11676 }  // namespace gles2 | 11684 }  // namespace gles2 | 
| 11677 }  // namespace gpu | 11685 }  // namespace gpu | 
| OLD | NEW | 
|---|