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

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

Issue 58913003: command_buffer: Remove hash_tables.h, simplify atomicops.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/client/query_tracker.cc ('k') | gpu/command_buffer_client.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/containers/hash_tables.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "gles2_impl_export.h" 11 #include "gles2_impl_export.h"
11 #include "gpu/command_buffer/client/hash_tables.h"
12 #include "gpu/command_buffer/common/types.h" 12 #include "gpu/command_buffer/common/types.h"
13 13
14 namespace gpu { 14 namespace gpu {
15 namespace gles2 { 15 namespace gles2 {
16 16
17 class GLES2Implementation; 17 class GLES2Implementation;
18 class GLES2CmdHelper; 18 class GLES2CmdHelper;
19 class VertexArrayObject; 19 class VertexArrayObject;
20 20
21 // VertexArrayObjectManager manages vertex array objects on the client side 21 // VertexArrayObjectManager manages vertex array objects on the client side
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 GLenum type, 86 GLenum type,
87 GLboolean normalized, 87 GLboolean normalized,
88 GLsizei stride, 88 GLsizei stride,
89 const void* ptr); 89 const void* ptr);
90 90
91 void SetAttribDivisor(GLuint index, GLuint divisor); 91 void SetAttribDivisor(GLuint index, GLuint divisor);
92 92
93 GLuint bound_element_array_buffer() const; 93 GLuint bound_element_array_buffer() const;
94 94
95 private: 95 private:
96 typedef gpu::hash_map<GLuint, VertexArrayObject*> VertexArrayObjectMap; 96 typedef base::hash_map<GLuint, VertexArrayObject*> VertexArrayObjectMap;
97 97
98 bool IsDefaultVAOBound() const; 98 bool IsDefaultVAOBound() const;
99 99
100 GLsizei CollectData(const void* data, 100 GLsizei CollectData(const void* data,
101 GLsizei bytes_per_element, 101 GLsizei bytes_per_element,
102 GLsizei real_stride, 102 GLsizei real_stride,
103 GLsizei num_elements); 103 GLsizei num_elements);
104 104
105 GLuint max_vertex_attribs_; 105 GLuint max_vertex_attribs_;
106 GLuint array_buffer_id_; 106 GLuint array_buffer_id_;
107 GLsizei array_buffer_size_; 107 GLsizei array_buffer_size_;
108 GLsizei array_buffer_offset_; 108 GLsizei array_buffer_offset_;
109 GLuint element_array_buffer_id_; 109 GLuint element_array_buffer_id_;
110 GLsizei element_array_buffer_size_; 110 GLsizei element_array_buffer_size_;
111 GLsizei collection_buffer_size_; 111 GLsizei collection_buffer_size_;
112 scoped_ptr<int8[]> collection_buffer_; 112 scoped_ptr<int8[]> collection_buffer_;
113 113
114 VertexArrayObject* default_vertex_array_object_; 114 VertexArrayObject* default_vertex_array_object_;
115 VertexArrayObject* bound_vertex_array_object_; 115 VertexArrayObject* bound_vertex_array_object_;
116 VertexArrayObjectMap vertex_array_objects_; 116 VertexArrayObjectMap vertex_array_objects_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(VertexArrayObjectManager); 118 DISALLOW_COPY_AND_ASSIGN(VertexArrayObjectManager);
119 }; 119 };
120 120
121 } // namespace gles2 121 } // namespace gles2
122 } // namespace gpu 122 } // namespace gpu
123 123
124 #endif // GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ 124 #endif // GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_
125 125
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/query_tracker.cc ('k') | gpu/command_buffer_client.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698