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 |
11 #include <list> | 11 #include <list> |
12 #include <vector> | 12 #include <vector> |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "gpu/command_buffer/service/buffer_manager.h" | 16 #include "gpu/command_buffer/service/buffer_manager.h" |
17 #include "gpu/command_buffer/service/gl_utils.h" | 17 #include "gpu/command_buffer/service/gl_utils.h" |
18 #include "gpu/gpu_export.h" | 18 #include "gpu/gpu_export.h" |
19 | 19 |
20 namespace gpu { | 20 namespace gpu { |
21 namespace gles2 { | 21 namespace gles2 { |
22 | 22 |
23 class BufferManager; | |
24 class FeatureInfo; | 23 class FeatureInfo; |
25 class GLES2Decoder; | 24 class GLES2Decoder; |
26 class Program; | 25 class Program; |
27 class VertexArrayManager; | 26 class VertexArrayManager; |
28 | 27 |
29 // 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 |
30 // 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 |
31 // glDrawXXX time. | 30 // glDrawXXX time. |
32 class GPU_EXPORT VertexAttrib { | 31 class GPU_EXPORT VertexAttrib { |
33 public: | 32 public: |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 } | 264 } |
266 | 265 |
267 size_t num_attribs() const { | 266 size_t num_attribs() const { |
268 return vertex_attribs_.size(); | 267 return vertex_attribs_.size(); |
269 } | 268 } |
270 | 269 |
271 bool ValidateBindings( | 270 bool ValidateBindings( |
272 const char* function_name, | 271 const char* function_name, |
273 GLES2Decoder* decoder, | 272 GLES2Decoder* decoder, |
274 FeatureInfo* feature_info, | 273 FeatureInfo* feature_info, |
275 BufferManager* buffer_manager, | |
276 Program* current_program, | 274 Program* current_program, |
277 GLuint max_vertex_accessed, | 275 GLuint max_vertex_accessed, |
278 bool instanced, | 276 bool instanced, |
279 GLsizei primcount); | 277 GLsizei primcount); |
280 | 278 |
281 private: | 279 private: |
282 friend class VertexArrayManager; | 280 friend class VertexArrayManager; |
283 friend class VertexArrayManagerTest; | 281 friend class VertexArrayManagerTest; |
284 friend class base::RefCounted<VertexAttribManager>; | 282 friend class base::RefCounted<VertexAttribManager>; |
285 | 283 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 bool deleted_; | 323 bool deleted_; |
326 | 324 |
327 // Service side vertex array object id. | 325 // Service side vertex array object id. |
328 GLuint service_id_; | 326 GLuint service_id_; |
329 }; | 327 }; |
330 | 328 |
331 } // namespace gles2 | 329 } // namespace gles2 |
332 } // namespace gpu | 330 } // namespace gpu |
333 | 331 |
334 #endif // GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_ | 332 #endif // GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_ |
| 333 |
OLD | NEW |