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_SERVICE_VERTEX_ATTRIB_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 class VertexArrayManager; | 26 class VertexArrayManager; |
27 | 27 |
28 // Info about a Vertex Attribute. This is used to track what the user currently | 28 // Info about a Vertex Attribute. This is used to track what the user currently |
29 // has bound on each Vertex Attribute so that checking can be done at | 29 // has bound on each Vertex Attribute so that checking can be done at |
30 // glDrawXXX time. | 30 // glDrawXXX time. |
31 class GPU_EXPORT VertexAttrib { | 31 class GPU_EXPORT VertexAttrib { |
32 public: | 32 public: |
33 typedef std::list<VertexAttrib*> VertexAttribList; | 33 typedef std::list<VertexAttrib*> VertexAttribList; |
34 | 34 |
35 VertexAttrib(); | 35 VertexAttrib(); |
| 36 VertexAttrib(const VertexAttrib& other); |
36 ~VertexAttrib(); | 37 ~VertexAttrib(); |
37 | 38 |
38 // Returns true if this VertexAttrib can access index. | 39 // Returns true if this VertexAttrib can access index. |
39 bool CanAccess(GLuint index) const; | 40 bool CanAccess(GLuint index) const; |
40 | 41 |
41 Buffer* buffer() const { return buffer_.get(); } | 42 Buffer* buffer() const { return buffer_.get(); } |
42 | 43 |
43 GLsizei offset() const { | 44 GLsizei offset() const { |
44 return offset_; | 45 return offset_; |
45 } | 46 } |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 300 |
300 // Service side vertex array object id. | 301 // Service side vertex array object id. |
301 GLuint service_id_; | 302 GLuint service_id_; |
302 }; | 303 }; |
303 | 304 |
304 } // namespace gles2 | 305 } // namespace gles2 |
305 } // namespace gpu | 306 } // namespace gpu |
306 | 307 |
307 #endif // GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_ | 308 #endif // GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_ |
308 | 309 |
OLD | NEW |