Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: gpu/command_buffer/client/vertex_array_object_manager.h

Issue 1131273005: Fine tune vertex attrib commands handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: working Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/client/vertex_array_object_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698