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 3730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3741 util_.set_num_shader_binary_formats( | 3741 util_.set_num_shader_binary_formats( |
3742 validators_->shader_binary_format.GetValues().size()); | 3742 validators_->shader_binary_format.GetValues().size()); |
3743 } | 3743 } |
3744 | 3744 |
3745 bool GLES2DecoderImpl::InitializeShaderTranslator() { | 3745 bool GLES2DecoderImpl::InitializeShaderTranslator() { |
3746 TRACE_EVENT0("gpu", "GLES2DecoderImpl::InitializeShaderTranslator"); | 3746 TRACE_EVENT0("gpu", "GLES2DecoderImpl::InitializeShaderTranslator"); |
3747 if (feature_info_->disable_shader_translator()) { | 3747 if (feature_info_->disable_shader_translator()) { |
3748 return true; | 3748 return true; |
3749 } | 3749 } |
3750 ShBuiltInResources resources; | 3750 ShBuiltInResources resources; |
3751 ShInitBuiltInResources(&resources); | 3751 sh::InitBuiltInResources(&resources); |
3752 resources.MaxVertexAttribs = group_->max_vertex_attribs(); | 3752 resources.MaxVertexAttribs = group_->max_vertex_attribs(); |
3753 resources.MaxVertexUniformVectors = | 3753 resources.MaxVertexUniformVectors = |
3754 group_->max_vertex_uniform_vectors(); | 3754 group_->max_vertex_uniform_vectors(); |
3755 resources.MaxVaryingVectors = group_->max_varying_vectors(); | 3755 resources.MaxVaryingVectors = group_->max_varying_vectors(); |
3756 resources.MaxVertexTextureImageUnits = | 3756 resources.MaxVertexTextureImageUnits = |
3757 group_->max_vertex_texture_image_units(); | 3757 group_->max_vertex_texture_image_units(); |
3758 resources.MaxCombinedTextureImageUnits = group_->max_texture_units(); | 3758 resources.MaxCombinedTextureImageUnits = group_->max_texture_units(); |
3759 resources.MaxTextureImageUnits = group_->max_texture_image_units(); | 3759 resources.MaxTextureImageUnits = group_->max_texture_image_units(); |
3760 resources.MaxFragmentUniformVectors = | 3760 resources.MaxFragmentUniformVectors = |
3761 group_->max_fragment_uniform_vectors(); | 3761 group_->max_fragment_uniform_vectors(); |
(...skipping 15356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19118 } | 19118 } |
19119 | 19119 |
19120 // Include the auto-generated part of this file. We split this because it means | 19120 // Include the auto-generated part of this file. We split this because it means |
19121 // we can easily edit the non-auto generated parts right here in this file | 19121 // we can easily edit the non-auto generated parts right here in this file |
19122 // instead of having to edit some template or the code generator. | 19122 // instead of having to edit some template or the code generator. |
19123 #include "base/macros.h" | 19123 #include "base/macros.h" |
19124 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19124 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
19125 | 19125 |
19126 } // namespace gles2 | 19126 } // namespace gles2 |
19127 } // namespace gpu | 19127 } // namespace gpu |
OLD | NEW |