| 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 #ifndef GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 bool GetAttribPointer(GLuint index, GLenum pname, void** ptr) const; | 81 bool GetAttribPointer(GLuint index, GLenum pname, void** ptr) const; |
| 82 | 82 |
| 83 // Returns false if error. | 83 // Returns false if error. |
| 84 bool SetAttribPointer( | 84 bool SetAttribPointer( |
| 85 GLuint buffer_id, | 85 GLuint buffer_id, |
| 86 GLuint index, | 86 GLuint index, |
| 87 GLint size, | 87 GLint size, |
| 88 GLenum type, | 88 GLenum type, |
| 89 GLboolean normalized, | 89 GLboolean normalized, |
| 90 GLsizei stride, | 90 GLsizei stride, |
| 91 const void* ptr); | 91 const void* ptr, |
| 92 GLboolean integer); |
| 92 | 93 |
| 93 void SetAttribDivisor(GLuint index, GLuint divisor); | 94 void SetAttribDivisor(GLuint index, GLuint divisor); |
| 94 | 95 |
| 95 GLuint bound_element_array_buffer() const; | 96 GLuint bound_element_array_buffer() const; |
| 96 | 97 |
| 97 private: | 98 private: |
| 98 typedef base::hash_map<GLuint, VertexArrayObject*> VertexArrayObjectMap; | 99 typedef base::hash_map<GLuint, VertexArrayObject*> VertexArrayObjectMap; |
| 99 | 100 |
| 100 bool IsDefaultVAOBound() const; | 101 bool IsDefaultVAOBound() const; |
| 101 | 102 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 120 const bool support_client_side_arrays_; | 121 const bool support_client_side_arrays_; |
| 121 | 122 |
| 122 DISALLOW_COPY_AND_ASSIGN(VertexArrayObjectManager); | 123 DISALLOW_COPY_AND_ASSIGN(VertexArrayObjectManager); |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 } // namespace gles2 | 126 } // namespace gles2 |
| 126 } // namespace gpu | 127 } // namespace gpu |
| 127 | 128 |
| 128 #endif // GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ | 129 #endif // GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ |
| 129 | 130 |
| OLD | NEW |