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

Side by Side Diff: gpu/command_buffer/service/vertex_array_manager.h

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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_SERVICE_VERTEX_ARRAY_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_VERTEX_ARRAY_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_VERTEX_ARRAY_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_VERTEX_ARRAY_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include <stdint.h>
9
9 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
10 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
13 #include "gpu/command_buffer/service/gl_utils.h" 15 #include "gpu/command_buffer/service/gl_utils.h"
14 #include "gpu/gpu_export.h" 16 #include "gpu/gpu_export.h"
15 17
16 namespace gpu { 18 namespace gpu {
17 namespace gles2 { 19 namespace gles2 {
18 20
19 class VertexAttribManager; 21 class VertexAttribManager;
20 22
21 // This class keeps track of the vertex arrays and their sizes so we can do 23 // This class keeps track of the vertex arrays and their sizes so we can do
22 // bounds checking. 24 // bounds checking.
23 class GPU_EXPORT VertexArrayManager { 25 class GPU_EXPORT VertexArrayManager {
24 public: 26 public:
25 VertexArrayManager(); 27 VertexArrayManager();
26 ~VertexArrayManager(); 28 ~VertexArrayManager();
27 29
28 // Must call before destruction. 30 // Must call before destruction.
29 void Destroy(bool have_context); 31 void Destroy(bool have_context);
30 32
31 // Creates a VertexAttribManager and if client_visible, 33 // Creates a VertexAttribManager and if client_visible,
32 // maps it to the client_id. 34 // maps it to the client_id.
33 scoped_refptr<VertexAttribManager> CreateVertexAttribManager( 35 scoped_refptr<VertexAttribManager> CreateVertexAttribManager(
34 GLuint client_id, 36 GLuint client_id,
35 GLuint service_id, 37 GLuint service_id,
36 uint32 num_vertex_attribs, 38 uint32_t num_vertex_attribs,
37 bool client_visible); 39 bool client_visible);
38 40
39 // Gets the vertex attrib manager for the given vertex array. 41 // Gets the vertex attrib manager for the given vertex array.
40 VertexAttribManager* GetVertexAttribManager(GLuint client_id); 42 VertexAttribManager* GetVertexAttribManager(GLuint client_id);
41 43
42 // Removes the vertex attrib manager for the given vertex array. 44 // Removes the vertex attrib manager for the given vertex array.
43 void RemoveVertexAttribManager(GLuint client_id); 45 void RemoveVertexAttribManager(GLuint client_id);
44 46
45 // Gets a client id for a given service id. 47 // Gets a client id for a given service id.
46 bool GetClientId(GLuint service_id, GLuint* client_id) const; 48 bool GetClientId(GLuint service_id, GLuint* client_id) const;
(...skipping 15 matching lines...) Expand all
62 64
63 bool have_context_; 65 bool have_context_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(VertexArrayManager); 67 DISALLOW_COPY_AND_ASSIGN(VertexArrayManager);
66 }; 68 };
67 69
68 } // namespace gles2 70 } // namespace gles2
69 } // namespace gpu 71 } // namespace gpu
70 72
71 #endif // GPU_COMMAND_BUFFER_SERVICE_VERTEX_ARRAY_MANAGER_H_ 73 #endif // GPU_COMMAND_BUFFER_SERVICE_VERTEX_ARRAY_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/valuebuffer_manager.cc ('k') | gpu/command_buffer/service/vertex_array_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698