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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 return info; | 1091 return info; |
1092 } | 1092 } |
1093 | 1093 |
1094 // Removes the vertex attrib manager for the given vertex array. | 1094 // Removes the vertex attrib manager for the given vertex array. |
1095 void RemoveVertexAttribManager(GLuint client_id) { | 1095 void RemoveVertexAttribManager(GLuint client_id) { |
1096 vertex_array_manager()->RemoveVertexAttribManager(client_id); | 1096 vertex_array_manager()->RemoveVertexAttribManager(client_id); |
1097 } | 1097 } |
1098 | 1098 |
1099 // Creates a vertex attrib manager for the given vertex array. | 1099 // Creates a vertex attrib manager for the given vertex array. |
1100 void CreateVertexAttribManager(GLuint client_id, GLuint service_id) { | 1100 void CreateVertexAttribManager(GLuint client_id, GLuint service_id) { |
1101 return vertex_array_manager()->CreateVertexAttribManager( | 1101 vertex_array_manager()->CreateVertexAttribManager( |
1102 client_id, service_id, group_->max_vertex_attribs()); | 1102 client_id, service_id, group_->max_vertex_attribs()); |
1103 } | 1103 } |
1104 | 1104 |
1105 void DoBindAttribLocation(GLuint client_id, GLuint index, const char* name); | 1105 void DoBindAttribLocation(GLuint client_id, GLuint index, const char* name); |
1106 void DoBindUniformLocationCHROMIUM( | 1106 void DoBindUniformLocationCHROMIUM( |
1107 GLuint client_id, GLint location, const char* name); | 1107 GLuint client_id, GLint location, const char* name); |
1108 | 1108 |
1109 error::Error GetAttribLocationHelper( | 1109 error::Error GetAttribLocationHelper( |
1110 GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset, | 1110 GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset, |
1111 const std::string& name_str); | 1111 const std::string& name_str); |
(...skipping 9675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10787 } | 10787 } |
10788 } | 10788 } |
10789 | 10789 |
10790 // Include the auto-generated part of this file. We split this because it means | 10790 // Include the auto-generated part of this file. We split this because it means |
10791 // we can easily edit the non-auto generated parts right here in this file | 10791 // we can easily edit the non-auto generated parts right here in this file |
10792 // instead of having to edit some template or the code generator. | 10792 // instead of having to edit some template or the code generator. |
10793 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10793 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
10794 | 10794 |
10795 } // namespace gles2 | 10795 } // namespace gles2 |
10796 } // namespace gpu | 10796 } // namespace gpu |
OLD | NEW |