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

Side by Side Diff: gpu/command_buffer/client/vertex_array_object_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 5 years 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 #include <stdint.h>
9 10
10 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "gles2_impl_export.h" 14 #include "gles2_impl_export.h"
14 15
15 namespace gpu { 16 namespace gpu {
16 namespace gles2 { 17 namespace gles2 {
17 18
18 class GLES2Implementation; 19 class GLES2Implementation;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 GLenum type, 70 GLenum type,
70 GLsizei primcount, 71 GLsizei primcount,
71 const void* indices, 72 const void* indices,
72 GLuint* offset, 73 GLuint* offset,
73 bool* simulated); 74 bool* simulated);
74 75
75 bool HaveEnabledClientSideBuffers() const; 76 bool HaveEnabledClientSideBuffers() const;
76 77
77 void SetAttribEnable(GLuint index, bool enabled); 78 void SetAttribEnable(GLuint index, bool enabled);
78 79
79 bool GetVertexAttrib(GLuint index, GLenum pname, uint32* param); 80 bool GetVertexAttrib(GLuint index, GLenum pname, uint32_t* param);
80 81
81 bool GetAttribPointer(GLuint index, GLenum pname, void** ptr) const; 82 bool GetAttribPointer(GLuint index, GLenum pname, void** ptr) const;
82 83
83 // Returns false if error. 84 // Returns false if error.
84 bool SetAttribPointer( 85 bool SetAttribPointer(
85 GLuint buffer_id, 86 GLuint buffer_id,
86 GLuint index, 87 GLuint index,
87 GLint size, 88 GLint size,
88 GLenum type, 89 GLenum type,
89 GLboolean normalized, 90 GLboolean normalized,
(...skipping 15 matching lines...) Expand all
105 GLsizei real_stride, 106 GLsizei real_stride,
106 GLsizei num_elements); 107 GLsizei num_elements);
107 108
108 GLuint max_vertex_attribs_; 109 GLuint max_vertex_attribs_;
109 GLuint array_buffer_id_; 110 GLuint array_buffer_id_;
110 GLsizei array_buffer_size_; 111 GLsizei array_buffer_size_;
111 GLsizei array_buffer_offset_; 112 GLsizei array_buffer_offset_;
112 GLuint element_array_buffer_id_; 113 GLuint element_array_buffer_id_;
113 GLsizei element_array_buffer_size_; 114 GLsizei element_array_buffer_size_;
114 GLsizei collection_buffer_size_; 115 GLsizei collection_buffer_size_;
115 scoped_ptr<int8[]> collection_buffer_; 116 scoped_ptr<int8_t[]> collection_buffer_;
116 117
117 VertexArrayObject* default_vertex_array_object_; 118 VertexArrayObject* default_vertex_array_object_;
118 VertexArrayObject* bound_vertex_array_object_; 119 VertexArrayObject* bound_vertex_array_object_;
119 VertexArrayObjectMap vertex_array_objects_; 120 VertexArrayObjectMap vertex_array_objects_;
120 121
121 const bool support_client_side_arrays_; 122 const bool support_client_side_arrays_;
122 123
123 DISALLOW_COPY_AND_ASSIGN(VertexArrayObjectManager); 124 DISALLOW_COPY_AND_ASSIGN(VertexArrayObjectManager);
124 }; 125 };
125 126
126 } // namespace gles2 127 } // namespace gles2
127 } // namespace gpu 128 } // namespace gpu
128 129
129 #endif // GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ 130 #endif // GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_
130 131
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/transfer_buffer_unittest.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