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

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

Issue 12326146: Refactor/Rename a bunch of GPU stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 9 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
10 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 10 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
11 11
12 void ActiveTexture(GLenum texture) { 12 void ActiveTexture(GLenum texture) {
13 gles2::ActiveTexture* c = GetCmdSpace<gles2::ActiveTexture>(); 13 gles2::cmds::ActiveTexture* c = GetCmdSpace<gles2::cmds::ActiveTexture>();
14 if (c) { 14 if (c) {
15 c->Init(texture); 15 c->Init(texture);
16 } 16 }
17 } 17 }
18 18
19 void AttachShader(GLuint program, GLuint shader) { 19 void AttachShader(GLuint program, GLuint shader) {
20 gles2::AttachShader* c = GetCmdSpace<gles2::AttachShader>(); 20 gles2::cmds::AttachShader* c = GetCmdSpace<gles2::cmds::AttachShader>();
21 if (c) { 21 if (c) {
22 c->Init(program, shader); 22 c->Init(program, shader);
23 } 23 }
24 } 24 }
25 25
26 void BindAttribLocation( 26 void BindAttribLocation(
27 GLuint program, GLuint index, uint32 name_shm_id, uint32 name_shm_offset, 27 GLuint program, GLuint index, uint32 name_shm_id, uint32 name_shm_offset,
28 uint32 data_size) { 28 uint32 data_size) {
29 gles2::BindAttribLocation* c = GetCmdSpace<gles2::BindAttribLocation>(); 29 gles2::cmds::BindAttribLocation* c =
30 GetCmdSpace<gles2::cmds::BindAttribLocation>();
30 if (c) { 31 if (c) {
31 c->Init(program, index, name_shm_id, name_shm_offset, data_size); 32 c->Init(program, index, name_shm_id, name_shm_offset, data_size);
32 } 33 }
33 } 34 }
34 35
35 void BindAttribLocationImmediate( 36 void BindAttribLocationImmediate(
36 GLuint program, GLuint index, const char* name) { 37 GLuint program, GLuint index, const char* name) {
37 const uint32 data_size = strlen(name); 38 const uint32 data_size = strlen(name);
38 gles2::BindAttribLocationImmediate* c = 39 gles2::cmds::BindAttribLocationImmediate* c =
39 GetImmediateCmdSpace<gles2::BindAttribLocationImmediate>(data_size); 40 GetImmediateCmdSpace<gles2::cmds::BindAttribLocationImmediate>(
41 data_size);
40 if (c) { 42 if (c) {
41 c->Init(program, index, name, data_size); 43 c->Init(program, index, name, data_size);
42 } 44 }
43 } 45 }
44 46
45 void BindAttribLocationBucket( 47 void BindAttribLocationBucket(
46 GLuint program, GLuint index, uint32 name_bucket_id) { 48 GLuint program, GLuint index, uint32 name_bucket_id) {
47 gles2::BindAttribLocationBucket* c = 49 gles2::cmds::BindAttribLocationBucket* c =
48 GetCmdSpace<gles2::BindAttribLocationBucket>(); 50 GetCmdSpace<gles2::cmds::BindAttribLocationBucket>();
49 if (c) { 51 if (c) {
50 c->Init(program, index, name_bucket_id); 52 c->Init(program, index, name_bucket_id);
51 } 53 }
52 } 54 }
53 55
54 void BindBuffer(GLenum target, GLuint buffer) { 56 void BindBuffer(GLenum target, GLuint buffer) {
55 gles2::BindBuffer* c = GetCmdSpace<gles2::BindBuffer>(); 57 gles2::cmds::BindBuffer* c = GetCmdSpace<gles2::cmds::BindBuffer>();
56 if (c) { 58 if (c) {
57 c->Init(target, buffer); 59 c->Init(target, buffer);
58 } 60 }
59 } 61 }
60 62
61 void BindFramebuffer(GLenum target, GLuint framebuffer) { 63 void BindFramebuffer(GLenum target, GLuint framebuffer) {
62 gles2::BindFramebuffer* c = GetCmdSpace<gles2::BindFramebuffer>(); 64 gles2::cmds::BindFramebuffer* c =
65 GetCmdSpace<gles2::cmds::BindFramebuffer>();
63 if (c) { 66 if (c) {
64 c->Init(target, framebuffer); 67 c->Init(target, framebuffer);
65 } 68 }
66 } 69 }
67 70
68 void BindRenderbuffer(GLenum target, GLuint renderbuffer) { 71 void BindRenderbuffer(GLenum target, GLuint renderbuffer) {
69 gles2::BindRenderbuffer* c = GetCmdSpace<gles2::BindRenderbuffer>(); 72 gles2::cmds::BindRenderbuffer* c =
73 GetCmdSpace<gles2::cmds::BindRenderbuffer>();
70 if (c) { 74 if (c) {
71 c->Init(target, renderbuffer); 75 c->Init(target, renderbuffer);
72 } 76 }
73 } 77 }
74 78
75 void BindTexture(GLenum target, GLuint texture) { 79 void BindTexture(GLenum target, GLuint texture) {
76 gles2::BindTexture* c = GetCmdSpace<gles2::BindTexture>(); 80 gles2::cmds::BindTexture* c = GetCmdSpace<gles2::cmds::BindTexture>();
77 if (c) { 81 if (c) {
78 c->Init(target, texture); 82 c->Init(target, texture);
79 } 83 }
80 } 84 }
81 85
82 void BlendColor( 86 void BlendColor(
83 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { 87 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
84 gles2::BlendColor* c = GetCmdSpace<gles2::BlendColor>(); 88 gles2::cmds::BlendColor* c = GetCmdSpace<gles2::cmds::BlendColor>();
85 if (c) { 89 if (c) {
86 c->Init(red, green, blue, alpha); 90 c->Init(red, green, blue, alpha);
87 } 91 }
88 } 92 }
89 93
90 void BlendEquation(GLenum mode) { 94 void BlendEquation(GLenum mode) {
91 gles2::BlendEquation* c = GetCmdSpace<gles2::BlendEquation>(); 95 gles2::cmds::BlendEquation* c = GetCmdSpace<gles2::cmds::BlendEquation>();
92 if (c) { 96 if (c) {
93 c->Init(mode); 97 c->Init(mode);
94 } 98 }
95 } 99 }
96 100
97 void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) { 101 void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
98 gles2::BlendEquationSeparate* c = 102 gles2::cmds::BlendEquationSeparate* c =
99 GetCmdSpace<gles2::BlendEquationSeparate>(); 103 GetCmdSpace<gles2::cmds::BlendEquationSeparate>();
100 if (c) { 104 if (c) {
101 c->Init(modeRGB, modeAlpha); 105 c->Init(modeRGB, modeAlpha);
102 } 106 }
103 } 107 }
104 108
105 void BlendFunc(GLenum sfactor, GLenum dfactor) { 109 void BlendFunc(GLenum sfactor, GLenum dfactor) {
106 gles2::BlendFunc* c = GetCmdSpace<gles2::BlendFunc>(); 110 gles2::cmds::BlendFunc* c = GetCmdSpace<gles2::cmds::BlendFunc>();
107 if (c) { 111 if (c) {
108 c->Init(sfactor, dfactor); 112 c->Init(sfactor, dfactor);
109 } 113 }
110 } 114 }
111 115
112 void BlendFuncSeparate( 116 void BlendFuncSeparate(
113 GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { 117 GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) {
114 gles2::BlendFuncSeparate* c = GetCmdSpace<gles2::BlendFuncSeparate>(); 118 gles2::cmds::BlendFuncSeparate* c =
119 GetCmdSpace<gles2::cmds::BlendFuncSeparate>();
115 if (c) { 120 if (c) {
116 c->Init(srcRGB, dstRGB, srcAlpha, dstAlpha); 121 c->Init(srcRGB, dstRGB, srcAlpha, dstAlpha);
117 } 122 }
118 } 123 }
119 124
120 void BufferData( 125 void BufferData(
121 GLenum target, GLsizeiptr size, uint32 data_shm_id, 126 GLenum target, GLsizeiptr size, uint32 data_shm_id,
122 uint32 data_shm_offset, GLenum usage) { 127 uint32 data_shm_offset, GLenum usage) {
123 gles2::BufferData* c = GetCmdSpace<gles2::BufferData>(); 128 gles2::cmds::BufferData* c = GetCmdSpace<gles2::cmds::BufferData>();
124 if (c) { 129 if (c) {
125 c->Init(target, size, data_shm_id, data_shm_offset, usage); 130 c->Init(target, size, data_shm_id, data_shm_offset, usage);
126 } 131 }
127 } 132 }
128 133
129 void BufferDataImmediate(GLenum target, GLsizeiptr size, GLenum usage) { 134 void BufferDataImmediate(GLenum target, GLsizeiptr size, GLenum usage) {
130 const uint32 s = 0; // TODO(gman): compute correct size 135 const uint32 s = 0; // TODO(gman): compute correct size
131 gles2::BufferDataImmediate* c = 136 gles2::cmds::BufferDataImmediate* c =
132 GetImmediateCmdSpaceTotalSize<gles2::BufferDataImmediate>(s); 137 GetImmediateCmdSpaceTotalSize<gles2::cmds::BufferDataImmediate>(s);
133 if (c) { 138 if (c) {
134 c->Init(target, size, usage); 139 c->Init(target, size, usage);
135 } 140 }
136 } 141 }
137 142
138 void BufferSubData( 143 void BufferSubData(
139 GLenum target, GLintptr offset, GLsizeiptr size, uint32 data_shm_id, 144 GLenum target, GLintptr offset, GLsizeiptr size, uint32 data_shm_id,
140 uint32 data_shm_offset) { 145 uint32 data_shm_offset) {
141 gles2::BufferSubData* c = GetCmdSpace<gles2::BufferSubData>(); 146 gles2::cmds::BufferSubData* c = GetCmdSpace<gles2::cmds::BufferSubData>();
142 if (c) { 147 if (c) {
143 c->Init(target, offset, size, data_shm_id, data_shm_offset); 148 c->Init(target, offset, size, data_shm_id, data_shm_offset);
144 } 149 }
145 } 150 }
146 151
147 void BufferSubDataImmediate( 152 void BufferSubDataImmediate(
148 GLenum target, GLintptr offset, GLsizeiptr size) { 153 GLenum target, GLintptr offset, GLsizeiptr size) {
149 const uint32 s = 0; // TODO(gman): compute correct size 154 const uint32 s = 0; // TODO(gman): compute correct size
150 gles2::BufferSubDataImmediate* c = 155 gles2::cmds::BufferSubDataImmediate* c =
151 GetImmediateCmdSpaceTotalSize<gles2::BufferSubDataImmediate>(s); 156 GetImmediateCmdSpaceTotalSize<gles2::cmds::BufferSubDataImmediate>(s);
152 if (c) { 157 if (c) {
153 c->Init(target, offset, size); 158 c->Init(target, offset, size);
154 } 159 }
155 } 160 }
156 161
157 void CheckFramebufferStatus( 162 void CheckFramebufferStatus(
158 GLenum target, uint32 result_shm_id, uint32 result_shm_offset) { 163 GLenum target, uint32 result_shm_id, uint32 result_shm_offset) {
159 gles2::CheckFramebufferStatus* c = 164 gles2::cmds::CheckFramebufferStatus* c =
160 GetCmdSpace<gles2::CheckFramebufferStatus>(); 165 GetCmdSpace<gles2::cmds::CheckFramebufferStatus>();
161 if (c) { 166 if (c) {
162 c->Init(target, result_shm_id, result_shm_offset); 167 c->Init(target, result_shm_id, result_shm_offset);
163 } 168 }
164 } 169 }
165 170
166 void Clear(GLbitfield mask) { 171 void Clear(GLbitfield mask) {
167 gles2::Clear* c = GetCmdSpace<gles2::Clear>(); 172 gles2::cmds::Clear* c = GetCmdSpace<gles2::cmds::Clear>();
168 if (c) { 173 if (c) {
169 c->Init(mask); 174 c->Init(mask);
170 } 175 }
171 } 176 }
172 177
173 void ClearColor( 178 void ClearColor(
174 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { 179 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
175 gles2::ClearColor* c = GetCmdSpace<gles2::ClearColor>(); 180 gles2::cmds::ClearColor* c = GetCmdSpace<gles2::cmds::ClearColor>();
176 if (c) { 181 if (c) {
177 c->Init(red, green, blue, alpha); 182 c->Init(red, green, blue, alpha);
178 } 183 }
179 } 184 }
180 185
181 void ClearDepthf(GLclampf depth) { 186 void ClearDepthf(GLclampf depth) {
182 gles2::ClearDepthf* c = GetCmdSpace<gles2::ClearDepthf>(); 187 gles2::cmds::ClearDepthf* c = GetCmdSpace<gles2::cmds::ClearDepthf>();
183 if (c) { 188 if (c) {
184 c->Init(depth); 189 c->Init(depth);
185 } 190 }
186 } 191 }
187 192
188 void ClearStencil(GLint s) { 193 void ClearStencil(GLint s) {
189 gles2::ClearStencil* c = GetCmdSpace<gles2::ClearStencil>(); 194 gles2::cmds::ClearStencil* c = GetCmdSpace<gles2::cmds::ClearStencil>();
190 if (c) { 195 if (c) {
191 c->Init(s); 196 c->Init(s);
192 } 197 }
193 } 198 }
194 199
195 void ColorMask( 200 void ColorMask(
196 GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) { 201 GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) {
197 gles2::ColorMask* c = GetCmdSpace<gles2::ColorMask>(); 202 gles2::cmds::ColorMask* c = GetCmdSpace<gles2::cmds::ColorMask>();
198 if (c) { 203 if (c) {
199 c->Init(red, green, blue, alpha); 204 c->Init(red, green, blue, alpha);
200 } 205 }
201 } 206 }
202 207
203 void CompileShader(GLuint shader) { 208 void CompileShader(GLuint shader) {
204 gles2::CompileShader* c = GetCmdSpace<gles2::CompileShader>(); 209 gles2::cmds::CompileShader* c = GetCmdSpace<gles2::cmds::CompileShader>();
205 if (c) { 210 if (c) {
206 c->Init(shader); 211 c->Init(shader);
207 } 212 }
208 } 213 }
209 214
210 void CompressedTexImage2D( 215 void CompressedTexImage2D(
211 GLenum target, GLint level, GLenum internalformat, GLsizei width, 216 GLenum target, GLint level, GLenum internalformat, GLsizei width,
212 GLsizei height, GLint border, GLsizei imageSize, uint32 data_shm_id, 217 GLsizei height, GLint border, GLsizei imageSize, uint32 data_shm_id,
213 uint32 data_shm_offset) { 218 uint32 data_shm_offset) {
214 gles2::CompressedTexImage2D* c = 219 gles2::cmds::CompressedTexImage2D* c =
215 GetCmdSpace<gles2::CompressedTexImage2D>(); 220 GetCmdSpace<gles2::cmds::CompressedTexImage2D>();
216 if (c) { 221 if (c) {
217 c->Init( 222 c->Init(
218 target, level, internalformat, width, height, border, imageSize, 223 target, level, internalformat, width, height, border, imageSize,
219 data_shm_id, data_shm_offset); 224 data_shm_id, data_shm_offset);
220 } 225 }
221 } 226 }
222 227
223 void CompressedTexImage2DImmediate( 228 void CompressedTexImage2DImmediate(
224 GLenum target, GLint level, GLenum internalformat, GLsizei width, 229 GLenum target, GLint level, GLenum internalformat, GLsizei width,
225 GLsizei height, GLint border, GLsizei imageSize) { 230 GLsizei height, GLint border, GLsizei imageSize) {
226 const uint32 s = 0; // TODO(gman): compute correct size 231 const uint32 s = 0; // TODO(gman): compute correct size
227 gles2::CompressedTexImage2DImmediate* c = 232 gles2::cmds::CompressedTexImage2DImmediate* c =
228 GetImmediateCmdSpaceTotalSize<gles2::CompressedTexImage2DImmediate>(s); 233 GetImmediateCmdSpaceTotalSize<gles2::cmds::CompressedTexImage2DImmediate >(s); // NOLINT
229 if (c) { 234 if (c) {
230 c->Init(target, level, internalformat, width, height, border, imageSize); 235 c->Init(target, level, internalformat, width, height, border, imageSize);
231 } 236 }
232 } 237 }
233 238
234 void CompressedTexImage2DBucket( 239 void CompressedTexImage2DBucket(
235 GLenum target, GLint level, GLenum internalformat, GLsizei width, 240 GLenum target, GLint level, GLenum internalformat, GLsizei width,
236 GLsizei height, GLint border, GLuint bucket_id) { 241 GLsizei height, GLint border, GLuint bucket_id) {
237 gles2::CompressedTexImage2DBucket* c = 242 gles2::cmds::CompressedTexImage2DBucket* c =
238 GetCmdSpace<gles2::CompressedTexImage2DBucket>(); 243 GetCmdSpace<gles2::cmds::CompressedTexImage2DBucket>();
239 if (c) { 244 if (c) {
240 c->Init(target, level, internalformat, width, height, border, bucket_id); 245 c->Init(target, level, internalformat, width, height, border, bucket_id);
241 } 246 }
242 } 247 }
243 248
244 void CompressedTexSubImage2D( 249 void CompressedTexSubImage2D(
245 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 250 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
246 GLsizei height, GLenum format, GLsizei imageSize, uint32 data_shm_id, 251 GLsizei height, GLenum format, GLsizei imageSize, uint32 data_shm_id,
247 uint32 data_shm_offset) { 252 uint32 data_shm_offset) {
248 gles2::CompressedTexSubImage2D* c = 253 gles2::cmds::CompressedTexSubImage2D* c =
249 GetCmdSpace<gles2::CompressedTexSubImage2D>(); 254 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>();
250 if (c) { 255 if (c) {
251 c->Init( 256 c->Init(
252 target, level, xoffset, yoffset, width, height, format, imageSize, 257 target, level, xoffset, yoffset, width, height, format, imageSize,
253 data_shm_id, data_shm_offset); 258 data_shm_id, data_shm_offset);
254 } 259 }
255 } 260 }
256 261
257 void CompressedTexSubImage2DImmediate( 262 void CompressedTexSubImage2DImmediate(
258 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 263 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
259 GLsizei height, GLenum format, GLsizei imageSize) { 264 GLsizei height, GLenum format, GLsizei imageSize) {
260 const uint32 s = 0; // TODO(gman): compute correct size 265 const uint32 s = 0; // TODO(gman): compute correct size
261 gles2::CompressedTexSubImage2DImmediate* c = 266 gles2::cmds::CompressedTexSubImage2DImmediate* c =
262 GetImmediateCmdSpaceTotalSize<gles2::CompressedTexSubImage2DImmediate>( 267 GetImmediateCmdSpaceTotalSize<gles2::cmds::CompressedTexSubImage2DImmedi ate>(s); // NOLINT
263 s);
264 if (c) { 268 if (c) {
265 c->Init( 269 c->Init(
266 target, level, xoffset, yoffset, width, height, format, imageSize); 270 target, level, xoffset, yoffset, width, height, format, imageSize);
267 } 271 }
268 } 272 }
269 273
270 void CompressedTexSubImage2DBucket( 274 void CompressedTexSubImage2DBucket(
271 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 275 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
272 GLsizei height, GLenum format, GLuint bucket_id) { 276 GLsizei height, GLenum format, GLuint bucket_id) {
273 gles2::CompressedTexSubImage2DBucket* c = 277 gles2::cmds::CompressedTexSubImage2DBucket* c =
274 GetCmdSpace<gles2::CompressedTexSubImage2DBucket>(); 278 GetCmdSpace<gles2::cmds::CompressedTexSubImage2DBucket>();
275 if (c) { 279 if (c) {
276 c->Init( 280 c->Init(
277 target, level, xoffset, yoffset, width, height, format, bucket_id); 281 target, level, xoffset, yoffset, width, height, format, bucket_id);
278 } 282 }
279 } 283 }
280 284
281 void CopyTexImage2D( 285 void CopyTexImage2D(
282 GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, 286 GLenum target, GLint level, GLenum internalformat, GLint x, GLint y,
283 GLsizei width, GLsizei height, GLint border) { 287 GLsizei width, GLsizei height, GLint border) {
284 gles2::CopyTexImage2D* c = GetCmdSpace<gles2::CopyTexImage2D>(); 288 gles2::cmds::CopyTexImage2D* c =
289 GetCmdSpace<gles2::cmds::CopyTexImage2D>();
285 if (c) { 290 if (c) {
286 c->Init(target, level, internalformat, x, y, width, height, border); 291 c->Init(target, level, internalformat, x, y, width, height, border);
287 } 292 }
288 } 293 }
289 294
290 void CopyTexSubImage2D( 295 void CopyTexSubImage2D(
291 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, 296 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x,
292 GLint y, GLsizei width, GLsizei height) { 297 GLint y, GLsizei width, GLsizei height) {
293 gles2::CopyTexSubImage2D* c = GetCmdSpace<gles2::CopyTexSubImage2D>(); 298 gles2::cmds::CopyTexSubImage2D* c =
299 GetCmdSpace<gles2::cmds::CopyTexSubImage2D>();
294 if (c) { 300 if (c) {
295 c->Init(target, level, xoffset, yoffset, x, y, width, height); 301 c->Init(target, level, xoffset, yoffset, x, y, width, height);
296 } 302 }
297 } 303 }
298 304
299 void CreateProgram(uint32 client_id) { 305 void CreateProgram(uint32 client_id) {
300 gles2::CreateProgram* c = GetCmdSpace<gles2::CreateProgram>(); 306 gles2::cmds::CreateProgram* c = GetCmdSpace<gles2::cmds::CreateProgram>();
301 if (c) { 307 if (c) {
302 c->Init(client_id); 308 c->Init(client_id);
303 } 309 }
304 } 310 }
305 311
306 void CreateShader(GLenum type, uint32 client_id) { 312 void CreateShader(GLenum type, uint32 client_id) {
307 gles2::CreateShader* c = GetCmdSpace<gles2::CreateShader>(); 313 gles2::cmds::CreateShader* c = GetCmdSpace<gles2::cmds::CreateShader>();
308 if (c) { 314 if (c) {
309 c->Init(type, client_id); 315 c->Init(type, client_id);
310 } 316 }
311 } 317 }
312 318
313 void CullFace(GLenum mode) { 319 void CullFace(GLenum mode) {
314 gles2::CullFace* c = GetCmdSpace<gles2::CullFace>(); 320 gles2::cmds::CullFace* c = GetCmdSpace<gles2::cmds::CullFace>();
315 if (c) { 321 if (c) {
316 c->Init(mode); 322 c->Init(mode);
317 } 323 }
318 } 324 }
319 325
320 void DeleteBuffers( 326 void DeleteBuffers(
321 GLsizei n, uint32 buffers_shm_id, uint32 buffers_shm_offset) { 327 GLsizei n, uint32 buffers_shm_id, uint32 buffers_shm_offset) {
322 gles2::DeleteBuffers* c = GetCmdSpace<gles2::DeleteBuffers>(); 328 gles2::cmds::DeleteBuffers* c = GetCmdSpace<gles2::cmds::DeleteBuffers>();
323 if (c) { 329 if (c) {
324 c->Init(n, buffers_shm_id, buffers_shm_offset); 330 c->Init(n, buffers_shm_id, buffers_shm_offset);
325 } 331 }
326 } 332 }
327 333
328 void DeleteBuffersImmediate(GLsizei n, const GLuint* buffers) { 334 void DeleteBuffersImmediate(GLsizei n, const GLuint* buffers) {
329 const uint32 size = gles2::DeleteBuffersImmediate::ComputeSize(n); 335 const uint32 size = gles2::cmds::DeleteBuffersImmediate::ComputeSize(n);
330 gles2::DeleteBuffersImmediate* c = 336 gles2::cmds::DeleteBuffersImmediate* c =
331 GetImmediateCmdSpaceTotalSize<gles2::DeleteBuffersImmediate>(size); 337 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteBuffersImmediate>(
338 size);
332 if (c) { 339 if (c) {
333 c->Init(n, buffers); 340 c->Init(n, buffers);
334 } 341 }
335 } 342 }
336 343
337 void DeleteFramebuffers( 344 void DeleteFramebuffers(
338 GLsizei n, uint32 framebuffers_shm_id, uint32 framebuffers_shm_offset) { 345 GLsizei n, uint32 framebuffers_shm_id, uint32 framebuffers_shm_offset) {
339 gles2::DeleteFramebuffers* c = GetCmdSpace<gles2::DeleteFramebuffers>(); 346 gles2::cmds::DeleteFramebuffers* c =
347 GetCmdSpace<gles2::cmds::DeleteFramebuffers>();
340 if (c) { 348 if (c) {
341 c->Init(n, framebuffers_shm_id, framebuffers_shm_offset); 349 c->Init(n, framebuffers_shm_id, framebuffers_shm_offset);
342 } 350 }
343 } 351 }
344 352
345 void DeleteFramebuffersImmediate(GLsizei n, const GLuint* framebuffers) { 353 void DeleteFramebuffersImmediate(GLsizei n, const GLuint* framebuffers) {
346 const uint32 size = gles2::DeleteFramebuffersImmediate::ComputeSize(n); 354 const uint32 size =
347 gles2::DeleteFramebuffersImmediate* c = 355 gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n);
348 GetImmediateCmdSpaceTotalSize<gles2::DeleteFramebuffersImmediate>( 356 gles2::cmds::DeleteFramebuffersImmediate* c =
357 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteFramebuffersImmediate>(
349 size); 358 size);
350 if (c) { 359 if (c) {
351 c->Init(n, framebuffers); 360 c->Init(n, framebuffers);
352 } 361 }
353 } 362 }
354 363
355 void DeleteProgram(GLuint program) { 364 void DeleteProgram(GLuint program) {
356 gles2::DeleteProgram* c = GetCmdSpace<gles2::DeleteProgram>(); 365 gles2::cmds::DeleteProgram* c = GetCmdSpace<gles2::cmds::DeleteProgram>();
357 if (c) { 366 if (c) {
358 c->Init(program); 367 c->Init(program);
359 } 368 }
360 } 369 }
361 370
362 void DeleteRenderbuffers( 371 void DeleteRenderbuffers(
363 GLsizei n, uint32 renderbuffers_shm_id, 372 GLsizei n, uint32 renderbuffers_shm_id,
364 uint32 renderbuffers_shm_offset) { 373 uint32 renderbuffers_shm_offset) {
365 gles2::DeleteRenderbuffers* c = GetCmdSpace<gles2::DeleteRenderbuffers>(); 374 gles2::cmds::DeleteRenderbuffers* c =
375 GetCmdSpace<gles2::cmds::DeleteRenderbuffers>();
366 if (c) { 376 if (c) {
367 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset); 377 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset);
368 } 378 }
369 } 379 }
370 380
371 void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) { 381 void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) {
372 const uint32 size = gles2::DeleteRenderbuffersImmediate::ComputeSize(n); 382 const uint32 size =
373 gles2::DeleteRenderbuffersImmediate* c = 383 gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n);
374 GetImmediateCmdSpaceTotalSize<gles2::DeleteRenderbuffersImmediate>( 384 gles2::cmds::DeleteRenderbuffersImmediate* c =
375 size); 385 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteRenderbuffersImmediate> (size); // NOLINT
376 if (c) { 386 if (c) {
377 c->Init(n, renderbuffers); 387 c->Init(n, renderbuffers);
378 } 388 }
379 } 389 }
380 390
381 void DeleteShader(GLuint shader) { 391 void DeleteShader(GLuint shader) {
382 gles2::DeleteShader* c = GetCmdSpace<gles2::DeleteShader>(); 392 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>();
383 if (c) { 393 if (c) {
384 c->Init(shader); 394 c->Init(shader);
385 } 395 }
386 } 396 }
387 397
388 void DeleteTextures( 398 void DeleteTextures(
389 GLsizei n, uint32 textures_shm_id, uint32 textures_shm_offset) { 399 GLsizei n, uint32 textures_shm_id, uint32 textures_shm_offset) {
390 gles2::DeleteTextures* c = GetCmdSpace<gles2::DeleteTextures>(); 400 gles2::cmds::DeleteTextures* c =
401 GetCmdSpace<gles2::cmds::DeleteTextures>();
391 if (c) { 402 if (c) {
392 c->Init(n, textures_shm_id, textures_shm_offset); 403 c->Init(n, textures_shm_id, textures_shm_offset);
393 } 404 }
394 } 405 }
395 406
396 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) { 407 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) {
397 const uint32 size = gles2::DeleteTexturesImmediate::ComputeSize(n); 408 const uint32 size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n);
398 gles2::DeleteTexturesImmediate* c = 409 gles2::cmds::DeleteTexturesImmediate* c =
399 GetImmediateCmdSpaceTotalSize<gles2::DeleteTexturesImmediate>(size); 410 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteTexturesImmediate>(
411 size);
400 if (c) { 412 if (c) {
401 c->Init(n, textures); 413 c->Init(n, textures);
402 } 414 }
403 } 415 }
404 416
405 void DepthFunc(GLenum func) { 417 void DepthFunc(GLenum func) {
406 gles2::DepthFunc* c = GetCmdSpace<gles2::DepthFunc>(); 418 gles2::cmds::DepthFunc* c = GetCmdSpace<gles2::cmds::DepthFunc>();
407 if (c) { 419 if (c) {
408 c->Init(func); 420 c->Init(func);
409 } 421 }
410 } 422 }
411 423
412 void DepthMask(GLboolean flag) { 424 void DepthMask(GLboolean flag) {
413 gles2::DepthMask* c = GetCmdSpace<gles2::DepthMask>(); 425 gles2::cmds::DepthMask* c = GetCmdSpace<gles2::cmds::DepthMask>();
414 if (c) { 426 if (c) {
415 c->Init(flag); 427 c->Init(flag);
416 } 428 }
417 } 429 }
418 430
419 void DepthRangef(GLclampf zNear, GLclampf zFar) { 431 void DepthRangef(GLclampf zNear, GLclampf zFar) {
420 gles2::DepthRangef* c = GetCmdSpace<gles2::DepthRangef>(); 432 gles2::cmds::DepthRangef* c = GetCmdSpace<gles2::cmds::DepthRangef>();
421 if (c) { 433 if (c) {
422 c->Init(zNear, zFar); 434 c->Init(zNear, zFar);
423 } 435 }
424 } 436 }
425 437
426 void DetachShader(GLuint program, GLuint shader) { 438 void DetachShader(GLuint program, GLuint shader) {
427 gles2::DetachShader* c = GetCmdSpace<gles2::DetachShader>(); 439 gles2::cmds::DetachShader* c = GetCmdSpace<gles2::cmds::DetachShader>();
428 if (c) { 440 if (c) {
429 c->Init(program, shader); 441 c->Init(program, shader);
430 } 442 }
431 } 443 }
432 444
433 void Disable(GLenum cap) { 445 void Disable(GLenum cap) {
434 gles2::Disable* c = GetCmdSpace<gles2::Disable>(); 446 gles2::cmds::Disable* c = GetCmdSpace<gles2::cmds::Disable>();
435 if (c) { 447 if (c) {
436 c->Init(cap); 448 c->Init(cap);
437 } 449 }
438 } 450 }
439 451
440 void DisableVertexAttribArray(GLuint index) { 452 void DisableVertexAttribArray(GLuint index) {
441 gles2::DisableVertexAttribArray* c = 453 gles2::cmds::DisableVertexAttribArray* c =
442 GetCmdSpace<gles2::DisableVertexAttribArray>(); 454 GetCmdSpace<gles2::cmds::DisableVertexAttribArray>();
443 if (c) { 455 if (c) {
444 c->Init(index); 456 c->Init(index);
445 } 457 }
446 } 458 }
447 459
448 void DrawArrays(GLenum mode, GLint first, GLsizei count) { 460 void DrawArrays(GLenum mode, GLint first, GLsizei count) {
449 gles2::DrawArrays* c = GetCmdSpace<gles2::DrawArrays>(); 461 gles2::cmds::DrawArrays* c = GetCmdSpace<gles2::cmds::DrawArrays>();
450 if (c) { 462 if (c) {
451 c->Init(mode, first, count); 463 c->Init(mode, first, count);
452 } 464 }
453 } 465 }
454 466
455 void DrawElements( 467 void DrawElements(
456 GLenum mode, GLsizei count, GLenum type, GLuint index_offset) { 468 GLenum mode, GLsizei count, GLenum type, GLuint index_offset) {
457 gles2::DrawElements* c = GetCmdSpace<gles2::DrawElements>(); 469 gles2::cmds::DrawElements* c = GetCmdSpace<gles2::cmds::DrawElements>();
458 if (c) { 470 if (c) {
459 c->Init(mode, count, type, index_offset); 471 c->Init(mode, count, type, index_offset);
460 } 472 }
461 } 473 }
462 474
463 void Enable(GLenum cap) { 475 void Enable(GLenum cap) {
464 gles2::Enable* c = GetCmdSpace<gles2::Enable>(); 476 gles2::cmds::Enable* c = GetCmdSpace<gles2::cmds::Enable>();
465 if (c) { 477 if (c) {
466 c->Init(cap); 478 c->Init(cap);
467 } 479 }
468 } 480 }
469 481
470 void EnableVertexAttribArray(GLuint index) { 482 void EnableVertexAttribArray(GLuint index) {
471 gles2::EnableVertexAttribArray* c = 483 gles2::cmds::EnableVertexAttribArray* c =
472 GetCmdSpace<gles2::EnableVertexAttribArray>(); 484 GetCmdSpace<gles2::cmds::EnableVertexAttribArray>();
473 if (c) { 485 if (c) {
474 c->Init(index); 486 c->Init(index);
475 } 487 }
476 } 488 }
477 489
478 void Finish() { 490 void Finish() {
479 gles2::Finish* c = GetCmdSpace<gles2::Finish>(); 491 gles2::cmds::Finish* c = GetCmdSpace<gles2::cmds::Finish>();
480 if (c) { 492 if (c) {
481 c->Init(); 493 c->Init();
482 } 494 }
483 } 495 }
484 496
485 void Flush() { 497 void Flush() {
486 gles2::Flush* c = GetCmdSpace<gles2::Flush>(); 498 gles2::cmds::Flush* c = GetCmdSpace<gles2::cmds::Flush>();
487 if (c) { 499 if (c) {
488 c->Init(); 500 c->Init();
489 } 501 }
490 } 502 }
491 503
492 void FramebufferRenderbuffer( 504 void FramebufferRenderbuffer(
493 GLenum target, GLenum attachment, GLenum renderbuffertarget, 505 GLenum target, GLenum attachment, GLenum renderbuffertarget,
494 GLuint renderbuffer) { 506 GLuint renderbuffer) {
495 gles2::FramebufferRenderbuffer* c = 507 gles2::cmds::FramebufferRenderbuffer* c =
496 GetCmdSpace<gles2::FramebufferRenderbuffer>(); 508 GetCmdSpace<gles2::cmds::FramebufferRenderbuffer>();
497 if (c) { 509 if (c) {
498 c->Init(target, attachment, renderbuffertarget, renderbuffer); 510 c->Init(target, attachment, renderbuffertarget, renderbuffer);
499 } 511 }
500 } 512 }
501 513
502 void FramebufferTexture2D( 514 void FramebufferTexture2D(
503 GLenum target, GLenum attachment, GLenum textarget, GLuint texture, 515 GLenum target, GLenum attachment, GLenum textarget, GLuint texture,
504 GLint level) { 516 GLint level) {
505 gles2::FramebufferTexture2D* c = 517 gles2::cmds::FramebufferTexture2D* c =
506 GetCmdSpace<gles2::FramebufferTexture2D>(); 518 GetCmdSpace<gles2::cmds::FramebufferTexture2D>();
507 if (c) { 519 if (c) {
508 c->Init(target, attachment, textarget, texture, level); 520 c->Init(target, attachment, textarget, texture, level);
509 } 521 }
510 } 522 }
511 523
512 void FrontFace(GLenum mode) { 524 void FrontFace(GLenum mode) {
513 gles2::FrontFace* c = GetCmdSpace<gles2::FrontFace>(); 525 gles2::cmds::FrontFace* c = GetCmdSpace<gles2::cmds::FrontFace>();
514 if (c) { 526 if (c) {
515 c->Init(mode); 527 c->Init(mode);
516 } 528 }
517 } 529 }
518 530
519 void GenBuffers( 531 void GenBuffers(
520 GLsizei n, uint32 buffers_shm_id, uint32 buffers_shm_offset) { 532 GLsizei n, uint32 buffers_shm_id, uint32 buffers_shm_offset) {
521 gles2::GenBuffers* c = GetCmdSpace<gles2::GenBuffers>(); 533 gles2::cmds::GenBuffers* c = GetCmdSpace<gles2::cmds::GenBuffers>();
522 if (c) { 534 if (c) {
523 c->Init(n, buffers_shm_id, buffers_shm_offset); 535 c->Init(n, buffers_shm_id, buffers_shm_offset);
524 } 536 }
525 } 537 }
526 538
527 void GenBuffersImmediate(GLsizei n, GLuint* buffers) { 539 void GenBuffersImmediate(GLsizei n, GLuint* buffers) {
528 const uint32 size = gles2::GenBuffersImmediate::ComputeSize(n); 540 const uint32 size = gles2::cmds::GenBuffersImmediate::ComputeSize(n);
529 gles2::GenBuffersImmediate* c = 541 gles2::cmds::GenBuffersImmediate* c =
530 GetImmediateCmdSpaceTotalSize<gles2::GenBuffersImmediate>(size); 542 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenBuffersImmediate>(size);
531 if (c) { 543 if (c) {
532 c->Init(n, buffers); 544 c->Init(n, buffers);
533 } 545 }
534 } 546 }
535 547
536 void GenerateMipmap(GLenum target) { 548 void GenerateMipmap(GLenum target) {
537 gles2::GenerateMipmap* c = GetCmdSpace<gles2::GenerateMipmap>(); 549 gles2::cmds::GenerateMipmap* c =
550 GetCmdSpace<gles2::cmds::GenerateMipmap>();
538 if (c) { 551 if (c) {
539 c->Init(target); 552 c->Init(target);
540 } 553 }
541 } 554 }
542 555
543 void GenFramebuffers( 556 void GenFramebuffers(
544 GLsizei n, uint32 framebuffers_shm_id, uint32 framebuffers_shm_offset) { 557 GLsizei n, uint32 framebuffers_shm_id, uint32 framebuffers_shm_offset) {
545 gles2::GenFramebuffers* c = GetCmdSpace<gles2::GenFramebuffers>(); 558 gles2::cmds::GenFramebuffers* c =
559 GetCmdSpace<gles2::cmds::GenFramebuffers>();
546 if (c) { 560 if (c) {
547 c->Init(n, framebuffers_shm_id, framebuffers_shm_offset); 561 c->Init(n, framebuffers_shm_id, framebuffers_shm_offset);
548 } 562 }
549 } 563 }
550 564
551 void GenFramebuffersImmediate(GLsizei n, GLuint* framebuffers) { 565 void GenFramebuffersImmediate(GLsizei n, GLuint* framebuffers) {
552 const uint32 size = gles2::GenFramebuffersImmediate::ComputeSize(n); 566 const uint32 size = gles2::cmds::GenFramebuffersImmediate::ComputeSize(n);
553 gles2::GenFramebuffersImmediate* c = 567 gles2::cmds::GenFramebuffersImmediate* c =
554 GetImmediateCmdSpaceTotalSize<gles2::GenFramebuffersImmediate>(size); 568 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenFramebuffersImmediate>(
569 size);
555 if (c) { 570 if (c) {
556 c->Init(n, framebuffers); 571 c->Init(n, framebuffers);
557 } 572 }
558 } 573 }
559 574
560 void GenRenderbuffers( 575 void GenRenderbuffers(
561 GLsizei n, uint32 renderbuffers_shm_id, 576 GLsizei n, uint32 renderbuffers_shm_id,
562 uint32 renderbuffers_shm_offset) { 577 uint32 renderbuffers_shm_offset) {
563 gles2::GenRenderbuffers* c = GetCmdSpace<gles2::GenRenderbuffers>(); 578 gles2::cmds::GenRenderbuffers* c =
579 GetCmdSpace<gles2::cmds::GenRenderbuffers>();
564 if (c) { 580 if (c) {
565 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset); 581 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset);
566 } 582 }
567 } 583 }
568 584
569 void GenRenderbuffersImmediate(GLsizei n, GLuint* renderbuffers) { 585 void GenRenderbuffersImmediate(GLsizei n, GLuint* renderbuffers) {
570 const uint32 size = gles2::GenRenderbuffersImmediate::ComputeSize(n); 586 const uint32 size = gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n);
571 gles2::GenRenderbuffersImmediate* c = 587 gles2::cmds::GenRenderbuffersImmediate* c =
572 GetImmediateCmdSpaceTotalSize<gles2::GenRenderbuffersImmediate>(size); 588 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenRenderbuffersImmediate>(
589 size);
573 if (c) { 590 if (c) {
574 c->Init(n, renderbuffers); 591 c->Init(n, renderbuffers);
575 } 592 }
576 } 593 }
577 594
578 void GenTextures( 595 void GenTextures(
579 GLsizei n, uint32 textures_shm_id, uint32 textures_shm_offset) { 596 GLsizei n, uint32 textures_shm_id, uint32 textures_shm_offset) {
580 gles2::GenTextures* c = GetCmdSpace<gles2::GenTextures>(); 597 gles2::cmds::GenTextures* c = GetCmdSpace<gles2::cmds::GenTextures>();
581 if (c) { 598 if (c) {
582 c->Init(n, textures_shm_id, textures_shm_offset); 599 c->Init(n, textures_shm_id, textures_shm_offset);
583 } 600 }
584 } 601 }
585 602
586 void GenTexturesImmediate(GLsizei n, GLuint* textures) { 603 void GenTexturesImmediate(GLsizei n, GLuint* textures) {
587 const uint32 size = gles2::GenTexturesImmediate::ComputeSize(n); 604 const uint32 size = gles2::cmds::GenTexturesImmediate::ComputeSize(n);
588 gles2::GenTexturesImmediate* c = 605 gles2::cmds::GenTexturesImmediate* c =
589 GetImmediateCmdSpaceTotalSize<gles2::GenTexturesImmediate>(size); 606 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenTexturesImmediate>(size);
590 if (c) { 607 if (c) {
591 c->Init(n, textures); 608 c->Init(n, textures);
592 } 609 }
593 } 610 }
594 611
595 void GetActiveAttrib( 612 void GetActiveAttrib(
596 GLuint program, GLuint index, uint32 name_bucket_id, uint32 result_shm_id, 613 GLuint program, GLuint index, uint32 name_bucket_id, uint32 result_shm_id,
597 uint32 result_shm_offset) { 614 uint32 result_shm_offset) {
598 gles2::GetActiveAttrib* c = GetCmdSpace<gles2::GetActiveAttrib>(); 615 gles2::cmds::GetActiveAttrib* c =
616 GetCmdSpace<gles2::cmds::GetActiveAttrib>();
599 if (c) { 617 if (c) {
600 c->Init( 618 c->Init(
601 program, index, name_bucket_id, result_shm_id, result_shm_offset); 619 program, index, name_bucket_id, result_shm_id, result_shm_offset);
602 } 620 }
603 } 621 }
604 622
605 void GetActiveUniform( 623 void GetActiveUniform(
606 GLuint program, GLuint index, uint32 name_bucket_id, uint32 result_shm_id, 624 GLuint program, GLuint index, uint32 name_bucket_id, uint32 result_shm_id,
607 uint32 result_shm_offset) { 625 uint32 result_shm_offset) {
608 gles2::GetActiveUniform* c = GetCmdSpace<gles2::GetActiveUniform>(); 626 gles2::cmds::GetActiveUniform* c =
627 GetCmdSpace<gles2::cmds::GetActiveUniform>();
609 if (c) { 628 if (c) {
610 c->Init( 629 c->Init(
611 program, index, name_bucket_id, result_shm_id, result_shm_offset); 630 program, index, name_bucket_id, result_shm_id, result_shm_offset);
612 } 631 }
613 } 632 }
614 633
615 void GetAttachedShaders( 634 void GetAttachedShaders(
616 GLuint program, uint32 result_shm_id, uint32 result_shm_offset, 635 GLuint program, uint32 result_shm_id, uint32 result_shm_offset,
617 uint32 result_size) { 636 uint32 result_size) {
618 gles2::GetAttachedShaders* c = GetCmdSpace<gles2::GetAttachedShaders>(); 637 gles2::cmds::GetAttachedShaders* c =
638 GetCmdSpace<gles2::cmds::GetAttachedShaders>();
619 if (c) { 639 if (c) {
620 c->Init(program, result_shm_id, result_shm_offset, result_size); 640 c->Init(program, result_shm_id, result_shm_offset, result_size);
621 } 641 }
622 } 642 }
623 643
624 void GetBooleanv( 644 void GetBooleanv(
625 GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) { 645 GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) {
626 gles2::GetBooleanv* c = GetCmdSpace<gles2::GetBooleanv>(); 646 gles2::cmds::GetBooleanv* c = GetCmdSpace<gles2::cmds::GetBooleanv>();
627 if (c) { 647 if (c) {
628 c->Init(pname, params_shm_id, params_shm_offset); 648 c->Init(pname, params_shm_id, params_shm_offset);
629 } 649 }
630 } 650 }
631 651
632 void GetBufferParameteriv( 652 void GetBufferParameteriv(
633 GLenum target, GLenum pname, uint32 params_shm_id, 653 GLenum target, GLenum pname, uint32 params_shm_id,
634 uint32 params_shm_offset) { 654 uint32 params_shm_offset) {
635 gles2::GetBufferParameteriv* c = 655 gles2::cmds::GetBufferParameteriv* c =
636 GetCmdSpace<gles2::GetBufferParameteriv>(); 656 GetCmdSpace<gles2::cmds::GetBufferParameteriv>();
637 if (c) { 657 if (c) {
638 c->Init(target, pname, params_shm_id, params_shm_offset); 658 c->Init(target, pname, params_shm_id, params_shm_offset);
639 } 659 }
640 } 660 }
641 661
642 void GetError(uint32 result_shm_id, uint32 result_shm_offset) { 662 void GetError(uint32 result_shm_id, uint32 result_shm_offset) {
643 gles2::GetError* c = GetCmdSpace<gles2::GetError>(); 663 gles2::cmds::GetError* c = GetCmdSpace<gles2::cmds::GetError>();
644 if (c) { 664 if (c) {
645 c->Init(result_shm_id, result_shm_offset); 665 c->Init(result_shm_id, result_shm_offset);
646 } 666 }
647 } 667 }
648 668
649 void GetFloatv( 669 void GetFloatv(
650 GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) { 670 GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) {
651 gles2::GetFloatv* c = GetCmdSpace<gles2::GetFloatv>(); 671 gles2::cmds::GetFloatv* c = GetCmdSpace<gles2::cmds::GetFloatv>();
652 if (c) { 672 if (c) {
653 c->Init(pname, params_shm_id, params_shm_offset); 673 c->Init(pname, params_shm_id, params_shm_offset);
654 } 674 }
655 } 675 }
656 676
657 void GetFramebufferAttachmentParameteriv( 677 void GetFramebufferAttachmentParameteriv(
658 GLenum target, GLenum attachment, GLenum pname, uint32 params_shm_id, 678 GLenum target, GLenum attachment, GLenum pname, uint32 params_shm_id,
659 uint32 params_shm_offset) { 679 uint32 params_shm_offset) {
660 gles2::GetFramebufferAttachmentParameteriv* c = 680 gles2::cmds::GetFramebufferAttachmentParameteriv* c =
661 GetCmdSpace<gles2::GetFramebufferAttachmentParameteriv>(); 681 GetCmdSpace<gles2::cmds::GetFramebufferAttachmentParameteriv>();
662 if (c) { 682 if (c) {
663 c->Init(target, attachment, pname, params_shm_id, params_shm_offset); 683 c->Init(target, attachment, pname, params_shm_id, params_shm_offset);
664 } 684 }
665 } 685 }
666 686
667 void GetIntegerv( 687 void GetIntegerv(
668 GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) { 688 GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) {
669 gles2::GetIntegerv* c = GetCmdSpace<gles2::GetIntegerv>(); 689 gles2::cmds::GetIntegerv* c = GetCmdSpace<gles2::cmds::GetIntegerv>();
670 if (c) { 690 if (c) {
671 c->Init(pname, params_shm_id, params_shm_offset); 691 c->Init(pname, params_shm_id, params_shm_offset);
672 } 692 }
673 } 693 }
674 694
675 void GetProgramiv( 695 void GetProgramiv(
676 GLuint program, GLenum pname, uint32 params_shm_id, 696 GLuint program, GLenum pname, uint32 params_shm_id,
677 uint32 params_shm_offset) { 697 uint32 params_shm_offset) {
678 gles2::GetProgramiv* c = GetCmdSpace<gles2::GetProgramiv>(); 698 gles2::cmds::GetProgramiv* c = GetCmdSpace<gles2::cmds::GetProgramiv>();
679 if (c) { 699 if (c) {
680 c->Init(program, pname, params_shm_id, params_shm_offset); 700 c->Init(program, pname, params_shm_id, params_shm_offset);
681 } 701 }
682 } 702 }
683 703
684 void GetProgramInfoLog(GLuint program, uint32 bucket_id) { 704 void GetProgramInfoLog(GLuint program, uint32 bucket_id) {
685 gles2::GetProgramInfoLog* c = GetCmdSpace<gles2::GetProgramInfoLog>(); 705 gles2::cmds::GetProgramInfoLog* c =
706 GetCmdSpace<gles2::cmds::GetProgramInfoLog>();
686 if (c) { 707 if (c) {
687 c->Init(program, bucket_id); 708 c->Init(program, bucket_id);
688 } 709 }
689 } 710 }
690 711
691 void GetRenderbufferParameteriv( 712 void GetRenderbufferParameteriv(
692 GLenum target, GLenum pname, uint32 params_shm_id, 713 GLenum target, GLenum pname, uint32 params_shm_id,
693 uint32 params_shm_offset) { 714 uint32 params_shm_offset) {
694 gles2::GetRenderbufferParameteriv* c = 715 gles2::cmds::GetRenderbufferParameteriv* c =
695 GetCmdSpace<gles2::GetRenderbufferParameteriv>(); 716 GetCmdSpace<gles2::cmds::GetRenderbufferParameteriv>();
696 if (c) { 717 if (c) {
697 c->Init(target, pname, params_shm_id, params_shm_offset); 718 c->Init(target, pname, params_shm_id, params_shm_offset);
698 } 719 }
699 } 720 }
700 721
701 void GetShaderiv( 722 void GetShaderiv(
702 GLuint shader, GLenum pname, uint32 params_shm_id, 723 GLuint shader, GLenum pname, uint32 params_shm_id,
703 uint32 params_shm_offset) { 724 uint32 params_shm_offset) {
704 gles2::GetShaderiv* c = GetCmdSpace<gles2::GetShaderiv>(); 725 gles2::cmds::GetShaderiv* c = GetCmdSpace<gles2::cmds::GetShaderiv>();
705 if (c) { 726 if (c) {
706 c->Init(shader, pname, params_shm_id, params_shm_offset); 727 c->Init(shader, pname, params_shm_id, params_shm_offset);
707 } 728 }
708 } 729 }
709 730
710 void GetShaderInfoLog(GLuint shader, uint32 bucket_id) { 731 void GetShaderInfoLog(GLuint shader, uint32 bucket_id) {
711 gles2::GetShaderInfoLog* c = GetCmdSpace<gles2::GetShaderInfoLog>(); 732 gles2::cmds::GetShaderInfoLog* c =
733 GetCmdSpace<gles2::cmds::GetShaderInfoLog>();
712 if (c) { 734 if (c) {
713 c->Init(shader, bucket_id); 735 c->Init(shader, bucket_id);
714 } 736 }
715 } 737 }
716 738
717 void GetShaderPrecisionFormat( 739 void GetShaderPrecisionFormat(
718 GLenum shadertype, GLenum precisiontype, uint32 result_shm_id, 740 GLenum shadertype, GLenum precisiontype, uint32 result_shm_id,
719 uint32 result_shm_offset) { 741 uint32 result_shm_offset) {
720 gles2::GetShaderPrecisionFormat* c = 742 gles2::cmds::GetShaderPrecisionFormat* c =
721 GetCmdSpace<gles2::GetShaderPrecisionFormat>(); 743 GetCmdSpace<gles2::cmds::GetShaderPrecisionFormat>();
722 if (c) { 744 if (c) {
723 c->Init(shadertype, precisiontype, result_shm_id, result_shm_offset); 745 c->Init(shadertype, precisiontype, result_shm_id, result_shm_offset);
724 } 746 }
725 } 747 }
726 748
727 void GetShaderSource(GLuint shader, uint32 bucket_id) { 749 void GetShaderSource(GLuint shader, uint32 bucket_id) {
728 gles2::GetShaderSource* c = GetCmdSpace<gles2::GetShaderSource>(); 750 gles2::cmds::GetShaderSource* c =
751 GetCmdSpace<gles2::cmds::GetShaderSource>();
729 if (c) { 752 if (c) {
730 c->Init(shader, bucket_id); 753 c->Init(shader, bucket_id);
731 } 754 }
732 } 755 }
733 756
734 void GetString(GLenum name, uint32 bucket_id) { 757 void GetString(GLenum name, uint32 bucket_id) {
735 gles2::GetString* c = GetCmdSpace<gles2::GetString>(); 758 gles2::cmds::GetString* c = GetCmdSpace<gles2::cmds::GetString>();
736 if (c) { 759 if (c) {
737 c->Init(name, bucket_id); 760 c->Init(name, bucket_id);
738 } 761 }
739 } 762 }
740 763
741 void GetTexParameterfv( 764 void GetTexParameterfv(
742 GLenum target, GLenum pname, uint32 params_shm_id, 765 GLenum target, GLenum pname, uint32 params_shm_id,
743 uint32 params_shm_offset) { 766 uint32 params_shm_offset) {
744 gles2::GetTexParameterfv* c = GetCmdSpace<gles2::GetTexParameterfv>(); 767 gles2::cmds::GetTexParameterfv* c =
768 GetCmdSpace<gles2::cmds::GetTexParameterfv>();
745 if (c) { 769 if (c) {
746 c->Init(target, pname, params_shm_id, params_shm_offset); 770 c->Init(target, pname, params_shm_id, params_shm_offset);
747 } 771 }
748 } 772 }
749 773
750 void GetTexParameteriv( 774 void GetTexParameteriv(
751 GLenum target, GLenum pname, uint32 params_shm_id, 775 GLenum target, GLenum pname, uint32 params_shm_id,
752 uint32 params_shm_offset) { 776 uint32 params_shm_offset) {
753 gles2::GetTexParameteriv* c = GetCmdSpace<gles2::GetTexParameteriv>(); 777 gles2::cmds::GetTexParameteriv* c =
778 GetCmdSpace<gles2::cmds::GetTexParameteriv>();
754 if (c) { 779 if (c) {
755 c->Init(target, pname, params_shm_id, params_shm_offset); 780 c->Init(target, pname, params_shm_id, params_shm_offset);
756 } 781 }
757 } 782 }
758 783
759 void GetUniformfv( 784 void GetUniformfv(
760 GLuint program, GLint location, uint32 params_shm_id, 785 GLuint program, GLint location, uint32 params_shm_id,
761 uint32 params_shm_offset) { 786 uint32 params_shm_offset) {
762 gles2::GetUniformfv* c = GetCmdSpace<gles2::GetUniformfv>(); 787 gles2::cmds::GetUniformfv* c = GetCmdSpace<gles2::cmds::GetUniformfv>();
763 if (c) { 788 if (c) {
764 c->Init(program, location, params_shm_id, params_shm_offset); 789 c->Init(program, location, params_shm_id, params_shm_offset);
765 } 790 }
766 } 791 }
767 792
768 void GetUniformiv( 793 void GetUniformiv(
769 GLuint program, GLint location, uint32 params_shm_id, 794 GLuint program, GLint location, uint32 params_shm_id,
770 uint32 params_shm_offset) { 795 uint32 params_shm_offset) {
771 gles2::GetUniformiv* c = GetCmdSpace<gles2::GetUniformiv>(); 796 gles2::cmds::GetUniformiv* c = GetCmdSpace<gles2::cmds::GetUniformiv>();
772 if (c) { 797 if (c) {
773 c->Init(program, location, params_shm_id, params_shm_offset); 798 c->Init(program, location, params_shm_id, params_shm_offset);
774 } 799 }
775 } 800 }
776 801
777 void GetVertexAttribfv( 802 void GetVertexAttribfv(
778 GLuint index, GLenum pname, uint32 params_shm_id, 803 GLuint index, GLenum pname, uint32 params_shm_id,
779 uint32 params_shm_offset) { 804 uint32 params_shm_offset) {
780 gles2::GetVertexAttribfv* c = GetCmdSpace<gles2::GetVertexAttribfv>(); 805 gles2::cmds::GetVertexAttribfv* c =
806 GetCmdSpace<gles2::cmds::GetVertexAttribfv>();
781 if (c) { 807 if (c) {
782 c->Init(index, pname, params_shm_id, params_shm_offset); 808 c->Init(index, pname, params_shm_id, params_shm_offset);
783 } 809 }
784 } 810 }
785 811
786 void GetVertexAttribiv( 812 void GetVertexAttribiv(
787 GLuint index, GLenum pname, uint32 params_shm_id, 813 GLuint index, GLenum pname, uint32 params_shm_id,
788 uint32 params_shm_offset) { 814 uint32 params_shm_offset) {
789 gles2::GetVertexAttribiv* c = GetCmdSpace<gles2::GetVertexAttribiv>(); 815 gles2::cmds::GetVertexAttribiv* c =
816 GetCmdSpace<gles2::cmds::GetVertexAttribiv>();
790 if (c) { 817 if (c) {
791 c->Init(index, pname, params_shm_id, params_shm_offset); 818 c->Init(index, pname, params_shm_id, params_shm_offset);
792 } 819 }
793 } 820 }
794 821
795 void GetVertexAttribPointerv( 822 void GetVertexAttribPointerv(
796 GLuint index, GLenum pname, uint32 pointer_shm_id, 823 GLuint index, GLenum pname, uint32 pointer_shm_id,
797 uint32 pointer_shm_offset) { 824 uint32 pointer_shm_offset) {
798 gles2::GetVertexAttribPointerv* c = 825 gles2::cmds::GetVertexAttribPointerv* c =
799 GetCmdSpace<gles2::GetVertexAttribPointerv>(); 826 GetCmdSpace<gles2::cmds::GetVertexAttribPointerv>();
800 if (c) { 827 if (c) {
801 c->Init(index, pname, pointer_shm_id, pointer_shm_offset); 828 c->Init(index, pname, pointer_shm_id, pointer_shm_offset);
802 } 829 }
803 } 830 }
804 831
805 void Hint(GLenum target, GLenum mode) { 832 void Hint(GLenum target, GLenum mode) {
806 gles2::Hint* c = GetCmdSpace<gles2::Hint>(); 833 gles2::cmds::Hint* c = GetCmdSpace<gles2::cmds::Hint>();
807 if (c) { 834 if (c) {
808 c->Init(target, mode); 835 c->Init(target, mode);
809 } 836 }
810 } 837 }
811 838
812 void IsBuffer( 839 void IsBuffer(
813 GLuint buffer, uint32 result_shm_id, uint32 result_shm_offset) { 840 GLuint buffer, uint32 result_shm_id, uint32 result_shm_offset) {
814 gles2::IsBuffer* c = GetCmdSpace<gles2::IsBuffer>(); 841 gles2::cmds::IsBuffer* c = GetCmdSpace<gles2::cmds::IsBuffer>();
815 if (c) { 842 if (c) {
816 c->Init(buffer, result_shm_id, result_shm_offset); 843 c->Init(buffer, result_shm_id, result_shm_offset);
817 } 844 }
818 } 845 }
819 846
820 void IsEnabled(GLenum cap, uint32 result_shm_id, uint32 result_shm_offset) { 847 void IsEnabled(GLenum cap, uint32 result_shm_id, uint32 result_shm_offset) {
821 gles2::IsEnabled* c = GetCmdSpace<gles2::IsEnabled>(); 848 gles2::cmds::IsEnabled* c = GetCmdSpace<gles2::cmds::IsEnabled>();
822 if (c) { 849 if (c) {
823 c->Init(cap, result_shm_id, result_shm_offset); 850 c->Init(cap, result_shm_id, result_shm_offset);
824 } 851 }
825 } 852 }
826 853
827 void IsFramebuffer( 854 void IsFramebuffer(
828 GLuint framebuffer, uint32 result_shm_id, uint32 result_shm_offset) { 855 GLuint framebuffer, uint32 result_shm_id, uint32 result_shm_offset) {
829 gles2::IsFramebuffer* c = GetCmdSpace<gles2::IsFramebuffer>(); 856 gles2::cmds::IsFramebuffer* c = GetCmdSpace<gles2::cmds::IsFramebuffer>();
830 if (c) { 857 if (c) {
831 c->Init(framebuffer, result_shm_id, result_shm_offset); 858 c->Init(framebuffer, result_shm_id, result_shm_offset);
832 } 859 }
833 } 860 }
834 861
835 void IsProgram( 862 void IsProgram(
836 GLuint program, uint32 result_shm_id, uint32 result_shm_offset) { 863 GLuint program, uint32 result_shm_id, uint32 result_shm_offset) {
837 gles2::IsProgram* c = GetCmdSpace<gles2::IsProgram>(); 864 gles2::cmds::IsProgram* c = GetCmdSpace<gles2::cmds::IsProgram>();
838 if (c) { 865 if (c) {
839 c->Init(program, result_shm_id, result_shm_offset); 866 c->Init(program, result_shm_id, result_shm_offset);
840 } 867 }
841 } 868 }
842 869
843 void IsRenderbuffer( 870 void IsRenderbuffer(
844 GLuint renderbuffer, uint32 result_shm_id, uint32 result_shm_offset) { 871 GLuint renderbuffer, uint32 result_shm_id, uint32 result_shm_offset) {
845 gles2::IsRenderbuffer* c = GetCmdSpace<gles2::IsRenderbuffer>(); 872 gles2::cmds::IsRenderbuffer* c =
873 GetCmdSpace<gles2::cmds::IsRenderbuffer>();
846 if (c) { 874 if (c) {
847 c->Init(renderbuffer, result_shm_id, result_shm_offset); 875 c->Init(renderbuffer, result_shm_id, result_shm_offset);
848 } 876 }
849 } 877 }
850 878
851 void IsShader( 879 void IsShader(
852 GLuint shader, uint32 result_shm_id, uint32 result_shm_offset) { 880 GLuint shader, uint32 result_shm_id, uint32 result_shm_offset) {
853 gles2::IsShader* c = GetCmdSpace<gles2::IsShader>(); 881 gles2::cmds::IsShader* c = GetCmdSpace<gles2::cmds::IsShader>();
854 if (c) { 882 if (c) {
855 c->Init(shader, result_shm_id, result_shm_offset); 883 c->Init(shader, result_shm_id, result_shm_offset);
856 } 884 }
857 } 885 }
858 886
859 void IsTexture( 887 void IsTexture(
860 GLuint texture, uint32 result_shm_id, uint32 result_shm_offset) { 888 GLuint texture, uint32 result_shm_id, uint32 result_shm_offset) {
861 gles2::IsTexture* c = GetCmdSpace<gles2::IsTexture>(); 889 gles2::cmds::IsTexture* c = GetCmdSpace<gles2::cmds::IsTexture>();
862 if (c) { 890 if (c) {
863 c->Init(texture, result_shm_id, result_shm_offset); 891 c->Init(texture, result_shm_id, result_shm_offset);
864 } 892 }
865 } 893 }
866 894
867 void LineWidth(GLfloat width) { 895 void LineWidth(GLfloat width) {
868 gles2::LineWidth* c = GetCmdSpace<gles2::LineWidth>(); 896 gles2::cmds::LineWidth* c = GetCmdSpace<gles2::cmds::LineWidth>();
869 if (c) { 897 if (c) {
870 c->Init(width); 898 c->Init(width);
871 } 899 }
872 } 900 }
873 901
874 void LinkProgram(GLuint program) { 902 void LinkProgram(GLuint program) {
875 gles2::LinkProgram* c = GetCmdSpace<gles2::LinkProgram>(); 903 gles2::cmds::LinkProgram* c = GetCmdSpace<gles2::cmds::LinkProgram>();
876 if (c) { 904 if (c) {
877 c->Init(program); 905 c->Init(program);
878 } 906 }
879 } 907 }
880 908
881 void PixelStorei(GLenum pname, GLint param) { 909 void PixelStorei(GLenum pname, GLint param) {
882 gles2::PixelStorei* c = GetCmdSpace<gles2::PixelStorei>(); 910 gles2::cmds::PixelStorei* c = GetCmdSpace<gles2::cmds::PixelStorei>();
883 if (c) { 911 if (c) {
884 c->Init(pname, param); 912 c->Init(pname, param);
885 } 913 }
886 } 914 }
887 915
888 void PolygonOffset(GLfloat factor, GLfloat units) { 916 void PolygonOffset(GLfloat factor, GLfloat units) {
889 gles2::PolygonOffset* c = GetCmdSpace<gles2::PolygonOffset>(); 917 gles2::cmds::PolygonOffset* c = GetCmdSpace<gles2::cmds::PolygonOffset>();
890 if (c) { 918 if (c) {
891 c->Init(factor, units); 919 c->Init(factor, units);
892 } 920 }
893 } 921 }
894 922
895 void ReadPixels( 923 void ReadPixels(
896 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, 924 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
897 GLenum type, uint32 pixels_shm_id, uint32 pixels_shm_offset, 925 GLenum type, uint32 pixels_shm_id, uint32 pixels_shm_offset,
898 uint32 result_shm_id, uint32 result_shm_offset) { 926 uint32 result_shm_id, uint32 result_shm_offset) {
899 gles2::ReadPixels* c = GetCmdSpace<gles2::ReadPixels>(); 927 gles2::cmds::ReadPixels* c = GetCmdSpace<gles2::cmds::ReadPixels>();
900 if (c) { 928 if (c) {
901 c->Init( 929 c->Init(
902 x, y, width, height, format, type, pixels_shm_id, pixels_shm_offset, 930 x, y, width, height, format, type, pixels_shm_id, pixels_shm_offset,
903 result_shm_id, result_shm_offset); 931 result_shm_id, result_shm_offset);
904 } 932 }
905 } 933 }
906 934
907 void ReleaseShaderCompiler() { 935 void ReleaseShaderCompiler() {
908 gles2::ReleaseShaderCompiler* c = 936 gles2::cmds::ReleaseShaderCompiler* c =
909 GetCmdSpace<gles2::ReleaseShaderCompiler>(); 937 GetCmdSpace<gles2::cmds::ReleaseShaderCompiler>();
910 if (c) { 938 if (c) {
911 c->Init(); 939 c->Init();
912 } 940 }
913 } 941 }
914 942
915 void RenderbufferStorage( 943 void RenderbufferStorage(
916 GLenum target, GLenum internalformat, GLsizei width, GLsizei height) { 944 GLenum target, GLenum internalformat, GLsizei width, GLsizei height) {
917 gles2::RenderbufferStorage* c = GetCmdSpace<gles2::RenderbufferStorage>(); 945 gles2::cmds::RenderbufferStorage* c =
946 GetCmdSpace<gles2::cmds::RenderbufferStorage>();
918 if (c) { 947 if (c) {
919 c->Init(target, internalformat, width, height); 948 c->Init(target, internalformat, width, height);
920 } 949 }
921 } 950 }
922 951
923 void SampleCoverage(GLclampf value, GLboolean invert) { 952 void SampleCoverage(GLclampf value, GLboolean invert) {
924 gles2::SampleCoverage* c = GetCmdSpace<gles2::SampleCoverage>(); 953 gles2::cmds::SampleCoverage* c =
954 GetCmdSpace<gles2::cmds::SampleCoverage>();
925 if (c) { 955 if (c) {
926 c->Init(value, invert); 956 c->Init(value, invert);
927 } 957 }
928 } 958 }
929 959
930 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) { 960 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
931 gles2::Scissor* c = GetCmdSpace<gles2::Scissor>(); 961 gles2::cmds::Scissor* c = GetCmdSpace<gles2::cmds::Scissor>();
932 if (c) { 962 if (c) {
933 c->Init(x, y, width, height); 963 c->Init(x, y, width, height);
934 } 964 }
935 } 965 }
936 966
937 void ShaderBinary( 967 void ShaderBinary(
938 GLsizei n, uint32 shaders_shm_id, uint32 shaders_shm_offset, 968 GLsizei n, uint32 shaders_shm_id, uint32 shaders_shm_offset,
939 GLenum binaryformat, uint32 binary_shm_id, uint32 binary_shm_offset, 969 GLenum binaryformat, uint32 binary_shm_id, uint32 binary_shm_offset,
940 GLsizei length) { 970 GLsizei length) {
941 gles2::ShaderBinary* c = GetCmdSpace<gles2::ShaderBinary>(); 971 gles2::cmds::ShaderBinary* c = GetCmdSpace<gles2::cmds::ShaderBinary>();
942 if (c) { 972 if (c) {
943 c->Init( 973 c->Init(
944 n, shaders_shm_id, shaders_shm_offset, binaryformat, binary_shm_id, 974 n, shaders_shm_id, shaders_shm_offset, binaryformat, binary_shm_id,
945 binary_shm_offset, length); 975 binary_shm_offset, length);
946 } 976 }
947 } 977 }
948 978
949 void ShaderSource( 979 void ShaderSource(
950 GLuint shader, uint32 data_shm_id, uint32 data_shm_offset, 980 GLuint shader, uint32 data_shm_id, uint32 data_shm_offset,
951 uint32 data_size) { 981 uint32 data_size) {
952 gles2::ShaderSource* c = GetCmdSpace<gles2::ShaderSource>(); 982 gles2::cmds::ShaderSource* c = GetCmdSpace<gles2::cmds::ShaderSource>();
953 if (c) { 983 if (c) {
954 c->Init(shader, data_shm_id, data_shm_offset, data_size); 984 c->Init(shader, data_shm_id, data_shm_offset, data_size);
955 } 985 }
956 } 986 }
957 987
958 void ShaderSourceImmediate(GLuint shader, uint32 data_size) { 988 void ShaderSourceImmediate(GLuint shader, uint32 data_size) {
959 const uint32 s = 0; // TODO(gman): compute correct size 989 const uint32 s = 0; // TODO(gman): compute correct size
960 gles2::ShaderSourceImmediate* c = 990 gles2::cmds::ShaderSourceImmediate* c =
961 GetImmediateCmdSpaceTotalSize<gles2::ShaderSourceImmediate>(s); 991 GetImmediateCmdSpaceTotalSize<gles2::cmds::ShaderSourceImmediate>(s);
962 if (c) { 992 if (c) {
963 c->Init(shader, data_size); 993 c->Init(shader, data_size);
964 } 994 }
965 } 995 }
966 996
967 void ShaderSourceBucket(GLuint shader, uint32 data_bucket_id) { 997 void ShaderSourceBucket(GLuint shader, uint32 data_bucket_id) {
968 gles2::ShaderSourceBucket* c = GetCmdSpace<gles2::ShaderSourceBucket>(); 998 gles2::cmds::ShaderSourceBucket* c =
999 GetCmdSpace<gles2::cmds::ShaderSourceBucket>();
969 if (c) { 1000 if (c) {
970 c->Init(shader, data_bucket_id); 1001 c->Init(shader, data_bucket_id);
971 } 1002 }
972 } 1003 }
973 1004
974 void StencilFunc(GLenum func, GLint ref, GLuint mask) { 1005 void StencilFunc(GLenum func, GLint ref, GLuint mask) {
975 gles2::StencilFunc* c = GetCmdSpace<gles2::StencilFunc>(); 1006 gles2::cmds::StencilFunc* c = GetCmdSpace<gles2::cmds::StencilFunc>();
976 if (c) { 1007 if (c) {
977 c->Init(func, ref, mask); 1008 c->Init(func, ref, mask);
978 } 1009 }
979 } 1010 }
980 1011
981 void StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) { 1012 void StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) {
982 gles2::StencilFuncSeparate* c = GetCmdSpace<gles2::StencilFuncSeparate>(); 1013 gles2::cmds::StencilFuncSeparate* c =
1014 GetCmdSpace<gles2::cmds::StencilFuncSeparate>();
983 if (c) { 1015 if (c) {
984 c->Init(face, func, ref, mask); 1016 c->Init(face, func, ref, mask);
985 } 1017 }
986 } 1018 }
987 1019
988 void StencilMask(GLuint mask) { 1020 void StencilMask(GLuint mask) {
989 gles2::StencilMask* c = GetCmdSpace<gles2::StencilMask>(); 1021 gles2::cmds::StencilMask* c = GetCmdSpace<gles2::cmds::StencilMask>();
990 if (c) { 1022 if (c) {
991 c->Init(mask); 1023 c->Init(mask);
992 } 1024 }
993 } 1025 }
994 1026
995 void StencilMaskSeparate(GLenum face, GLuint mask) { 1027 void StencilMaskSeparate(GLenum face, GLuint mask) {
996 gles2::StencilMaskSeparate* c = GetCmdSpace<gles2::StencilMaskSeparate>(); 1028 gles2::cmds::StencilMaskSeparate* c =
1029 GetCmdSpace<gles2::cmds::StencilMaskSeparate>();
997 if (c) { 1030 if (c) {
998 c->Init(face, mask); 1031 c->Init(face, mask);
999 } 1032 }
1000 } 1033 }
1001 1034
1002 void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) { 1035 void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
1003 gles2::StencilOp* c = GetCmdSpace<gles2::StencilOp>(); 1036 gles2::cmds::StencilOp* c = GetCmdSpace<gles2::cmds::StencilOp>();
1004 if (c) { 1037 if (c) {
1005 c->Init(fail, zfail, zpass); 1038 c->Init(fail, zfail, zpass);
1006 } 1039 }
1007 } 1040 }
1008 1041
1009 void StencilOpSeparate( 1042 void StencilOpSeparate(
1010 GLenum face, GLenum fail, GLenum zfail, GLenum zpass) { 1043 GLenum face, GLenum fail, GLenum zfail, GLenum zpass) {
1011 gles2::StencilOpSeparate* c = GetCmdSpace<gles2::StencilOpSeparate>(); 1044 gles2::cmds::StencilOpSeparate* c =
1045 GetCmdSpace<gles2::cmds::StencilOpSeparate>();
1012 if (c) { 1046 if (c) {
1013 c->Init(face, fail, zfail, zpass); 1047 c->Init(face, fail, zfail, zpass);
1014 } 1048 }
1015 } 1049 }
1016 1050
1017 void TexImage2D( 1051 void TexImage2D(
1018 GLenum target, GLint level, GLint internalformat, GLsizei width, 1052 GLenum target, GLint level, GLint internalformat, GLsizei width,
1019 GLsizei height, GLint border, GLenum format, GLenum type, 1053 GLsizei height, GLint border, GLenum format, GLenum type,
1020 uint32 pixels_shm_id, uint32 pixels_shm_offset) { 1054 uint32 pixels_shm_id, uint32 pixels_shm_offset) {
1021 gles2::TexImage2D* c = GetCmdSpace<gles2::TexImage2D>(); 1055 gles2::cmds::TexImage2D* c = GetCmdSpace<gles2::cmds::TexImage2D>();
1022 if (c) { 1056 if (c) {
1023 c->Init( 1057 c->Init(
1024 target, level, internalformat, width, height, border, format, type, 1058 target, level, internalformat, width, height, border, format, type,
1025 pixels_shm_id, pixels_shm_offset); 1059 pixels_shm_id, pixels_shm_offset);
1026 } 1060 }
1027 } 1061 }
1028 1062
1029 void TexImage2DImmediate( 1063 void TexImage2DImmediate(
1030 GLenum target, GLint level, GLint internalformat, GLsizei width, 1064 GLenum target, GLint level, GLint internalformat, GLsizei width,
1031 GLsizei height, GLint border, GLenum format, GLenum type) { 1065 GLsizei height, GLint border, GLenum format, GLenum type) {
1032 const uint32 s = 0; // TODO(gman): compute correct size 1066 const uint32 s = 0; // TODO(gman): compute correct size
1033 gles2::TexImage2DImmediate* c = 1067 gles2::cmds::TexImage2DImmediate* c =
1034 GetImmediateCmdSpaceTotalSize<gles2::TexImage2DImmediate>(s); 1068 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexImage2DImmediate>(s);
1035 if (c) { 1069 if (c) {
1036 c->Init( 1070 c->Init(
1037 target, level, internalformat, width, height, border, format, type); 1071 target, level, internalformat, width, height, border, format, type);
1038 } 1072 }
1039 } 1073 }
1040 1074
1041 void TexParameterf(GLenum target, GLenum pname, GLfloat param) { 1075 void TexParameterf(GLenum target, GLenum pname, GLfloat param) {
1042 gles2::TexParameterf* c = GetCmdSpace<gles2::TexParameterf>(); 1076 gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>();
1043 if (c) { 1077 if (c) {
1044 c->Init(target, pname, param); 1078 c->Init(target, pname, param);
1045 } 1079 }
1046 } 1080 }
1047 1081
1048 void TexParameterfv( 1082 void TexParameterfv(
1049 GLenum target, GLenum pname, uint32 params_shm_id, 1083 GLenum target, GLenum pname, uint32 params_shm_id,
1050 uint32 params_shm_offset) { 1084 uint32 params_shm_offset) {
1051 gles2::TexParameterfv* c = GetCmdSpace<gles2::TexParameterfv>(); 1085 gles2::cmds::TexParameterfv* c =
1086 GetCmdSpace<gles2::cmds::TexParameterfv>();
1052 if (c) { 1087 if (c) {
1053 c->Init(target, pname, params_shm_id, params_shm_offset); 1088 c->Init(target, pname, params_shm_id, params_shm_offset);
1054 } 1089 }
1055 } 1090 }
1056 1091
1057 void TexParameterfvImmediate( 1092 void TexParameterfvImmediate(
1058 GLenum target, GLenum pname, const GLfloat* params) { 1093 GLenum target, GLenum pname, const GLfloat* params) {
1059 const uint32 size = gles2::TexParameterfvImmediate::ComputeSize(); 1094 const uint32 size = gles2::cmds::TexParameterfvImmediate::ComputeSize();
1060 gles2::TexParameterfvImmediate* c = 1095 gles2::cmds::TexParameterfvImmediate* c =
1061 GetImmediateCmdSpaceTotalSize<gles2::TexParameterfvImmediate>(size); 1096 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterfvImmediate>(
1097 size);
1062 if (c) { 1098 if (c) {
1063 c->Init(target, pname, params); 1099 c->Init(target, pname, params);
1064 } 1100 }
1065 } 1101 }
1066 1102
1067 void TexParameteri(GLenum target, GLenum pname, GLint param) { 1103 void TexParameteri(GLenum target, GLenum pname, GLint param) {
1068 gles2::TexParameteri* c = GetCmdSpace<gles2::TexParameteri>(); 1104 gles2::cmds::TexParameteri* c = GetCmdSpace<gles2::cmds::TexParameteri>();
1069 if (c) { 1105 if (c) {
1070 c->Init(target, pname, param); 1106 c->Init(target, pname, param);
1071 } 1107 }
1072 } 1108 }
1073 1109
1074 void TexParameteriv( 1110 void TexParameteriv(
1075 GLenum target, GLenum pname, uint32 params_shm_id, 1111 GLenum target, GLenum pname, uint32 params_shm_id,
1076 uint32 params_shm_offset) { 1112 uint32 params_shm_offset) {
1077 gles2::TexParameteriv* c = GetCmdSpace<gles2::TexParameteriv>(); 1113 gles2::cmds::TexParameteriv* c =
1114 GetCmdSpace<gles2::cmds::TexParameteriv>();
1078 if (c) { 1115 if (c) {
1079 c->Init(target, pname, params_shm_id, params_shm_offset); 1116 c->Init(target, pname, params_shm_id, params_shm_offset);
1080 } 1117 }
1081 } 1118 }
1082 1119
1083 void TexParameterivImmediate( 1120 void TexParameterivImmediate(
1084 GLenum target, GLenum pname, const GLint* params) { 1121 GLenum target, GLenum pname, const GLint* params) {
1085 const uint32 size = gles2::TexParameterivImmediate::ComputeSize(); 1122 const uint32 size = gles2::cmds::TexParameterivImmediate::ComputeSize();
1086 gles2::TexParameterivImmediate* c = 1123 gles2::cmds::TexParameterivImmediate* c =
1087 GetImmediateCmdSpaceTotalSize<gles2::TexParameterivImmediate>(size); 1124 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterivImmediate>(
1125 size);
1088 if (c) { 1126 if (c) {
1089 c->Init(target, pname, params); 1127 c->Init(target, pname, params);
1090 } 1128 }
1091 } 1129 }
1092 1130
1093 void TexSubImage2D( 1131 void TexSubImage2D(
1094 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 1132 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
1095 GLsizei height, GLenum format, GLenum type, uint32 pixels_shm_id, 1133 GLsizei height, GLenum format, GLenum type, uint32 pixels_shm_id,
1096 uint32 pixels_shm_offset, GLboolean internal) { 1134 uint32 pixels_shm_offset, GLboolean internal) {
1097 gles2::TexSubImage2D* c = GetCmdSpace<gles2::TexSubImage2D>(); 1135 gles2::cmds::TexSubImage2D* c = GetCmdSpace<gles2::cmds::TexSubImage2D>();
1098 if (c) { 1136 if (c) {
1099 c->Init( 1137 c->Init(
1100 target, level, xoffset, yoffset, width, height, format, type, 1138 target, level, xoffset, yoffset, width, height, format, type,
1101 pixels_shm_id, pixels_shm_offset, internal); 1139 pixels_shm_id, pixels_shm_offset, internal);
1102 } 1140 }
1103 } 1141 }
1104 1142
1105 void TexSubImage2DImmediate( 1143 void TexSubImage2DImmediate(
1106 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 1144 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
1107 GLsizei height, GLenum format, GLenum type, GLboolean internal) { 1145 GLsizei height, GLenum format, GLenum type, GLboolean internal) {
1108 const uint32 s = 0; // TODO(gman): compute correct size 1146 const uint32 s = 0; // TODO(gman): compute correct size
1109 gles2::TexSubImage2DImmediate* c = 1147 gles2::cmds::TexSubImage2DImmediate* c =
1110 GetImmediateCmdSpaceTotalSize<gles2::TexSubImage2DImmediate>(s); 1148 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexSubImage2DImmediate>(s);
1111 if (c) { 1149 if (c) {
1112 c->Init( 1150 c->Init(
1113 target, level, xoffset, yoffset, width, height, format, type, 1151 target, level, xoffset, yoffset, width, height, format, type,
1114 internal); 1152 internal);
1115 } 1153 }
1116 } 1154 }
1117 1155
1118 void Uniform1f(GLint location, GLfloat x) { 1156 void Uniform1f(GLint location, GLfloat x) {
1119 gles2::Uniform1f* c = GetCmdSpace<gles2::Uniform1f>(); 1157 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>();
1120 if (c) { 1158 if (c) {
1121 c->Init(location, x); 1159 c->Init(location, x);
1122 } 1160 }
1123 } 1161 }
1124 1162
1125 void Uniform1fv( 1163 void Uniform1fv(
1126 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) { 1164 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
1127 gles2::Uniform1fv* c = GetCmdSpace<gles2::Uniform1fv>(); 1165 gles2::cmds::Uniform1fv* c = GetCmdSpace<gles2::cmds::Uniform1fv>();
1128 if (c) { 1166 if (c) {
1129 c->Init(location, count, v_shm_id, v_shm_offset); 1167 c->Init(location, count, v_shm_id, v_shm_offset);
1130 } 1168 }
1131 } 1169 }
1132 1170
1133 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) { 1171 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1134 const uint32 size = gles2::Uniform1fvImmediate::ComputeSize(count); 1172 const uint32 size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count);
1135 gles2::Uniform1fvImmediate* c = 1173 gles2::cmds::Uniform1fvImmediate* c =
1136 GetImmediateCmdSpaceTotalSize<gles2::Uniform1fvImmediate>(size); 1174 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1fvImmediate>(size);
1137 if (c) { 1175 if (c) {
1138 c->Init(location, count, v); 1176 c->Init(location, count, v);
1139 } 1177 }
1140 } 1178 }
1141 1179
1142 void Uniform1i(GLint location, GLint x) { 1180 void Uniform1i(GLint location, GLint x) {
1143 gles2::Uniform1i* c = GetCmdSpace<gles2::Uniform1i>(); 1181 gles2::cmds::Uniform1i* c = GetCmdSpace<gles2::cmds::Uniform1i>();
1144 if (c) { 1182 if (c) {
1145 c->Init(location, x); 1183 c->Init(location, x);
1146 } 1184 }
1147 } 1185 }
1148 1186
1149 void Uniform1iv( 1187 void Uniform1iv(
1150 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) { 1188 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
1151 gles2::Uniform1iv* c = GetCmdSpace<gles2::Uniform1iv>(); 1189 gles2::cmds::Uniform1iv* c = GetCmdSpace<gles2::cmds::Uniform1iv>();
1152 if (c) { 1190 if (c) {
1153 c->Init(location, count, v_shm_id, v_shm_offset); 1191 c->Init(location, count, v_shm_id, v_shm_offset);
1154 } 1192 }
1155 } 1193 }
1156 1194
1157 void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) { 1195 void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) {
1158 const uint32 size = gles2::Uniform1ivImmediate::ComputeSize(count); 1196 const uint32 size = gles2::cmds::Uniform1ivImmediate::ComputeSize(count);
1159 gles2::Uniform1ivImmediate* c = 1197 gles2::cmds::Uniform1ivImmediate* c =
1160 GetImmediateCmdSpaceTotalSize<gles2::Uniform1ivImmediate>(size); 1198 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1ivImmediate>(size);
1161 if (c) { 1199 if (c) {
1162 c->Init(location, count, v); 1200 c->Init(location, count, v);
1163 } 1201 }
1164 } 1202 }
1165 1203
1166 void Uniform2f(GLint location, GLfloat x, GLfloat y) { 1204 void Uniform2f(GLint location, GLfloat x, GLfloat y) {
1167 gles2::Uniform2f* c = GetCmdSpace<gles2::Uniform2f>(); 1205 gles2::cmds::Uniform2f* c = GetCmdSpace<gles2::cmds::Uniform2f>();
1168 if (c) { 1206 if (c) {
1169 c->Init(location, x, y); 1207 c->Init(location, x, y);
1170 } 1208 }
1171 } 1209 }
1172 1210
1173 void Uniform2fv( 1211 void Uniform2fv(
1174 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) { 1212 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
1175 gles2::Uniform2fv* c = GetCmdSpace<gles2::Uniform2fv>(); 1213 gles2::cmds::Uniform2fv* c = GetCmdSpace<gles2::cmds::Uniform2fv>();
1176 if (c) { 1214 if (c) {
1177 c->Init(location, count, v_shm_id, v_shm_offset); 1215 c->Init(location, count, v_shm_id, v_shm_offset);
1178 } 1216 }
1179 } 1217 }
1180 1218
1181 void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) { 1219 void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1182 const uint32 size = gles2::Uniform2fvImmediate::ComputeSize(count); 1220 const uint32 size = gles2::cmds::Uniform2fvImmediate::ComputeSize(count);
1183 gles2::Uniform2fvImmediate* c = 1221 gles2::cmds::Uniform2fvImmediate* c =
1184 GetImmediateCmdSpaceTotalSize<gles2::Uniform2fvImmediate>(size); 1222 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2fvImmediate>(size);
1185 if (c) { 1223 if (c) {
1186 c->Init(location, count, v); 1224 c->Init(location, count, v);
1187 } 1225 }
1188 } 1226 }
1189 1227
1190 void Uniform2i(GLint location, GLint x, GLint y) { 1228 void Uniform2i(GLint location, GLint x, GLint y) {
1191 gles2::Uniform2i* c = GetCmdSpace<gles2::Uniform2i>(); 1229 gles2::cmds::Uniform2i* c = GetCmdSpace<gles2::cmds::Uniform2i>();
1192 if (c) { 1230 if (c) {
1193 c->Init(location, x, y); 1231 c->Init(location, x, y);
1194 } 1232 }
1195 } 1233 }
1196 1234
1197 void Uniform2iv( 1235 void Uniform2iv(
1198 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) { 1236 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
1199 gles2::Uniform2iv* c = GetCmdSpace<gles2::Uniform2iv>(); 1237 gles2::cmds::Uniform2iv* c = GetCmdSpace<gles2::cmds::Uniform2iv>();
1200 if (c) { 1238 if (c) {
1201 c->Init(location, count, v_shm_id, v_shm_offset); 1239 c->Init(location, count, v_shm_id, v_shm_offset);
1202 } 1240 }
1203 } 1241 }
1204 1242
1205 void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) { 1243 void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) {
1206 const uint32 size = gles2::Uniform2ivImmediate::ComputeSize(count); 1244 const uint32 size = gles2::cmds::Uniform2ivImmediate::ComputeSize(count);
1207 gles2::Uniform2ivImmediate* c = 1245 gles2::cmds::Uniform2ivImmediate* c =
1208 GetImmediateCmdSpaceTotalSize<gles2::Uniform2ivImmediate>(size); 1246 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2ivImmediate>(size);
1209 if (c) { 1247 if (c) {
1210 c->Init(location, count, v); 1248 c->Init(location, count, v);
1211 } 1249 }
1212 } 1250 }
1213 1251
1214 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { 1252 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
1215 gles2::Uniform3f* c = GetCmdSpace<gles2::Uniform3f>(); 1253 gles2::cmds::Uniform3f* c = GetCmdSpace<gles2::cmds::Uniform3f>();
1216 if (c) { 1254 if (c) {
1217 c->Init(location, x, y, z); 1255 c->Init(location, x, y, z);
1218 } 1256 }
1219 } 1257 }
1220 1258
1221 void Uniform3fv( 1259 void Uniform3fv(
1222 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) { 1260 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
1223 gles2::Uniform3fv* c = GetCmdSpace<gles2::Uniform3fv>(); 1261 gles2::cmds::Uniform3fv* c = GetCmdSpace<gles2::cmds::Uniform3fv>();
1224 if (c) { 1262 if (c) {
1225 c->Init(location, count, v_shm_id, v_shm_offset); 1263 c->Init(location, count, v_shm_id, v_shm_offset);
1226 } 1264 }
1227 } 1265 }
1228 1266
1229 void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) { 1267 void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1230 const uint32 size = gles2::Uniform3fvImmediate::ComputeSize(count); 1268 const uint32 size = gles2::cmds::Uniform3fvImmediate::ComputeSize(count);
1231 gles2::Uniform3fvImmediate* c = 1269 gles2::cmds::Uniform3fvImmediate* c =
1232 GetImmediateCmdSpaceTotalSize<gles2::Uniform3fvImmediate>(size); 1270 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3fvImmediate>(size);
1233 if (c) { 1271 if (c) {
1234 c->Init(location, count, v); 1272 c->Init(location, count, v);
1235 } 1273 }
1236 } 1274 }
1237 1275
1238 void Uniform3i(GLint location, GLint x, GLint y, GLint z) { 1276 void Uniform3i(GLint location, GLint x, GLint y, GLint z) {
1239 gles2::Uniform3i* c = GetCmdSpace<gles2::Uniform3i>(); 1277 gles2::cmds::Uniform3i* c = GetCmdSpace<gles2::cmds::Uniform3i>();
1240 if (c) { 1278 if (c) {
1241 c->Init(location, x, y, z); 1279 c->Init(location, x, y, z);
1242 } 1280 }
1243 } 1281 }
1244 1282
1245 void Uniform3iv( 1283 void Uniform3iv(
1246 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) { 1284 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
1247 gles2::Uniform3iv* c = GetCmdSpace<gles2::Uniform3iv>(); 1285 gles2::cmds::Uniform3iv* c = GetCmdSpace<gles2::cmds::Uniform3iv>();
1248 if (c) { 1286 if (c) {
1249 c->Init(location, count, v_shm_id, v_shm_offset); 1287 c->Init(location, count, v_shm_id, v_shm_offset);
1250 } 1288 }
1251 } 1289 }
1252 1290
1253 void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) { 1291 void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) {
1254 const uint32 size = gles2::Uniform3ivImmediate::ComputeSize(count); 1292 const uint32 size = gles2::cmds::Uniform3ivImmediate::ComputeSize(count);
1255 gles2::Uniform3ivImmediate* c = 1293 gles2::cmds::Uniform3ivImmediate* c =
1256 GetImmediateCmdSpaceTotalSize<gles2::Uniform3ivImmediate>(size); 1294 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3ivImmediate>(size);
1257 if (c) { 1295 if (c) {
1258 c->Init(location, count, v); 1296 c->Init(location, count, v);
1259 } 1297 }
1260 } 1298 }
1261 1299
1262 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { 1300 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
1263 gles2::Uniform4f* c = GetCmdSpace<gles2::Uniform4f>(); 1301 gles2::cmds::Uniform4f* c = GetCmdSpace<gles2::cmds::Uniform4f>();
1264 if (c) { 1302 if (c) {
1265 c->Init(location, x, y, z, w); 1303 c->Init(location, x, y, z, w);
1266 } 1304 }
1267 } 1305 }
1268 1306
1269 void Uniform4fv( 1307 void Uniform4fv(
1270 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) { 1308 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
1271 gles2::Uniform4fv* c = GetCmdSpace<gles2::Uniform4fv>(); 1309 gles2::cmds::Uniform4fv* c = GetCmdSpace<gles2::cmds::Uniform4fv>();
1272 if (c) { 1310 if (c) {
1273 c->Init(location, count, v_shm_id, v_shm_offset); 1311 c->Init(location, count, v_shm_id, v_shm_offset);
1274 } 1312 }
1275 } 1313 }
1276 1314
1277 void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) { 1315 void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1278 const uint32 size = gles2::Uniform4fvImmediate::ComputeSize(count); 1316 const uint32 size = gles2::cmds::Uniform4fvImmediate::ComputeSize(count);
1279 gles2::Uniform4fvImmediate* c = 1317 gles2::cmds::Uniform4fvImmediate* c =
1280 GetImmediateCmdSpaceTotalSize<gles2::Uniform4fvImmediate>(size); 1318 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4fvImmediate>(size);
1281 if (c) { 1319 if (c) {
1282 c->Init(location, count, v); 1320 c->Init(location, count, v);
1283 } 1321 }
1284 } 1322 }
1285 1323
1286 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) { 1324 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
1287 gles2::Uniform4i* c = GetCmdSpace<gles2::Uniform4i>(); 1325 gles2::cmds::Uniform4i* c = GetCmdSpace<gles2::cmds::Uniform4i>();
1288 if (c) { 1326 if (c) {
1289 c->Init(location, x, y, z, w); 1327 c->Init(location, x, y, z, w);
1290 } 1328 }
1291 } 1329 }
1292 1330
1293 void Uniform4iv( 1331 void Uniform4iv(
1294 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) { 1332 GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
1295 gles2::Uniform4iv* c = GetCmdSpace<gles2::Uniform4iv>(); 1333 gles2::cmds::Uniform4iv* c = GetCmdSpace<gles2::cmds::Uniform4iv>();
1296 if (c) { 1334 if (c) {
1297 c->Init(location, count, v_shm_id, v_shm_offset); 1335 c->Init(location, count, v_shm_id, v_shm_offset);
1298 } 1336 }
1299 } 1337 }
1300 1338
1301 void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) { 1339 void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) {
1302 const uint32 size = gles2::Uniform4ivImmediate::ComputeSize(count); 1340 const uint32 size = gles2::cmds::Uniform4ivImmediate::ComputeSize(count);
1303 gles2::Uniform4ivImmediate* c = 1341 gles2::cmds::Uniform4ivImmediate* c =
1304 GetImmediateCmdSpaceTotalSize<gles2::Uniform4ivImmediate>(size); 1342 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4ivImmediate>(size);
1305 if (c) { 1343 if (c) {
1306 c->Init(location, count, v); 1344 c->Init(location, count, v);
1307 } 1345 }
1308 } 1346 }
1309 1347
1310 void UniformMatrix2fv( 1348 void UniformMatrix2fv(
1311 GLint location, GLsizei count, GLboolean transpose, uint32 value_shm_id, 1349 GLint location, GLsizei count, GLboolean transpose, uint32 value_shm_id,
1312 uint32 value_shm_offset) { 1350 uint32 value_shm_offset) {
1313 gles2::UniformMatrix2fv* c = GetCmdSpace<gles2::UniformMatrix2fv>(); 1351 gles2::cmds::UniformMatrix2fv* c =
1352 GetCmdSpace<gles2::cmds::UniformMatrix2fv>();
1314 if (c) { 1353 if (c) {
1315 c->Init(location, count, transpose, value_shm_id, value_shm_offset); 1354 c->Init(location, count, transpose, value_shm_id, value_shm_offset);
1316 } 1355 }
1317 } 1356 }
1318 1357
1319 void UniformMatrix2fvImmediate( 1358 void UniformMatrix2fvImmediate(
1320 GLint location, GLsizei count, GLboolean transpose, 1359 GLint location, GLsizei count, GLboolean transpose,
1321 const GLfloat* value) { 1360 const GLfloat* value) {
1322 const uint32 size = gles2::UniformMatrix2fvImmediate::ComputeSize(count); 1361 const uint32 size =
1323 gles2::UniformMatrix2fvImmediate* c = 1362 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count);
1324 GetImmediateCmdSpaceTotalSize<gles2::UniformMatrix2fvImmediate>(size); 1363 gles2::cmds::UniformMatrix2fvImmediate* c =
1364 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>(
1365 size);
1325 if (c) { 1366 if (c) {
1326 c->Init(location, count, transpose, value); 1367 c->Init(location, count, transpose, value);
1327 } 1368 }
1328 } 1369 }
1329 1370
1330 void UniformMatrix3fv( 1371 void UniformMatrix3fv(
1331 GLint location, GLsizei count, GLboolean transpose, uint32 value_shm_id, 1372 GLint location, GLsizei count, GLboolean transpose, uint32 value_shm_id,
1332 uint32 value_shm_offset) { 1373 uint32 value_shm_offset) {
1333 gles2::UniformMatrix3fv* c = GetCmdSpace<gles2::UniformMatrix3fv>(); 1374 gles2::cmds::UniformMatrix3fv* c =
1375 GetCmdSpace<gles2::cmds::UniformMatrix3fv>();
1334 if (c) { 1376 if (c) {
1335 c->Init(location, count, transpose, value_shm_id, value_shm_offset); 1377 c->Init(location, count, transpose, value_shm_id, value_shm_offset);
1336 } 1378 }
1337 } 1379 }
1338 1380
1339 void UniformMatrix3fvImmediate( 1381 void UniformMatrix3fvImmediate(
1340 GLint location, GLsizei count, GLboolean transpose, 1382 GLint location, GLsizei count, GLboolean transpose,
1341 const GLfloat* value) { 1383 const GLfloat* value) {
1342 const uint32 size = gles2::UniformMatrix3fvImmediate::ComputeSize(count); 1384 const uint32 size =
1343 gles2::UniformMatrix3fvImmediate* c = 1385 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count);
1344 GetImmediateCmdSpaceTotalSize<gles2::UniformMatrix3fvImmediate>(size); 1386 gles2::cmds::UniformMatrix3fvImmediate* c =
1387 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>(
1388 size);
1345 if (c) { 1389 if (c) {
1346 c->Init(location, count, transpose, value); 1390 c->Init(location, count, transpose, value);
1347 } 1391 }
1348 } 1392 }
1349 1393
1350 void UniformMatrix4fv( 1394 void UniformMatrix4fv(
1351 GLint location, GLsizei count, GLboolean transpose, uint32 value_shm_id, 1395 GLint location, GLsizei count, GLboolean transpose, uint32 value_shm_id,
1352 uint32 value_shm_offset) { 1396 uint32 value_shm_offset) {
1353 gles2::UniformMatrix4fv* c = GetCmdSpace<gles2::UniformMatrix4fv>(); 1397 gles2::cmds::UniformMatrix4fv* c =
1398 GetCmdSpace<gles2::cmds::UniformMatrix4fv>();
1354 if (c) { 1399 if (c) {
1355 c->Init(location, count, transpose, value_shm_id, value_shm_offset); 1400 c->Init(location, count, transpose, value_shm_id, value_shm_offset);
1356 } 1401 }
1357 } 1402 }
1358 1403
1359 void UniformMatrix4fvImmediate( 1404 void UniformMatrix4fvImmediate(
1360 GLint location, GLsizei count, GLboolean transpose, 1405 GLint location, GLsizei count, GLboolean transpose,
1361 const GLfloat* value) { 1406 const GLfloat* value) {
1362 const uint32 size = gles2::UniformMatrix4fvImmediate::ComputeSize(count); 1407 const uint32 size =
1363 gles2::UniformMatrix4fvImmediate* c = 1408 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count);
1364 GetImmediateCmdSpaceTotalSize<gles2::UniformMatrix4fvImmediate>(size); 1409 gles2::cmds::UniformMatrix4fvImmediate* c =
1410 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>(
1411 size);
1365 if (c) { 1412 if (c) {
1366 c->Init(location, count, transpose, value); 1413 c->Init(location, count, transpose, value);
1367 } 1414 }
1368 } 1415 }
1369 1416
1370 void UseProgram(GLuint program) { 1417 void UseProgram(GLuint program) {
1371 gles2::UseProgram* c = GetCmdSpace<gles2::UseProgram>(); 1418 gles2::cmds::UseProgram* c = GetCmdSpace<gles2::cmds::UseProgram>();
1372 if (c) { 1419 if (c) {
1373 c->Init(program); 1420 c->Init(program);
1374 } 1421 }
1375 } 1422 }
1376 1423
1377 void ValidateProgram(GLuint program) { 1424 void ValidateProgram(GLuint program) {
1378 gles2::ValidateProgram* c = GetCmdSpace<gles2::ValidateProgram>(); 1425 gles2::cmds::ValidateProgram* c =
1426 GetCmdSpace<gles2::cmds::ValidateProgram>();
1379 if (c) { 1427 if (c) {
1380 c->Init(program); 1428 c->Init(program);
1381 } 1429 }
1382 } 1430 }
1383 1431
1384 void VertexAttrib1f(GLuint indx, GLfloat x) { 1432 void VertexAttrib1f(GLuint indx, GLfloat x) {
1385 gles2::VertexAttrib1f* c = GetCmdSpace<gles2::VertexAttrib1f>(); 1433 gles2::cmds::VertexAttrib1f* c =
1434 GetCmdSpace<gles2::cmds::VertexAttrib1f>();
1386 if (c) { 1435 if (c) {
1387 c->Init(indx, x); 1436 c->Init(indx, x);
1388 } 1437 }
1389 } 1438 }
1390 1439
1391 void VertexAttrib1fv( 1440 void VertexAttrib1fv(
1392 GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) { 1441 GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) {
1393 gles2::VertexAttrib1fv* c = GetCmdSpace<gles2::VertexAttrib1fv>(); 1442 gles2::cmds::VertexAttrib1fv* c =
1443 GetCmdSpace<gles2::cmds::VertexAttrib1fv>();
1394 if (c) { 1444 if (c) {
1395 c->Init(indx, values_shm_id, values_shm_offset); 1445 c->Init(indx, values_shm_id, values_shm_offset);
1396 } 1446 }
1397 } 1447 }
1398 1448
1399 void VertexAttrib1fvImmediate(GLuint indx, const GLfloat* values) { 1449 void VertexAttrib1fvImmediate(GLuint indx, const GLfloat* values) {
1400 const uint32 size = gles2::VertexAttrib1fvImmediate::ComputeSize(); 1450 const uint32 size = gles2::cmds::VertexAttrib1fvImmediate::ComputeSize();
1401 gles2::VertexAttrib1fvImmediate* c = 1451 gles2::cmds::VertexAttrib1fvImmediate* c =
1402 GetImmediateCmdSpaceTotalSize<gles2::VertexAttrib1fvImmediate>(size); 1452 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib1fvImmediate>(
1453 size);
1403 if (c) { 1454 if (c) {
1404 c->Init(indx, values); 1455 c->Init(indx, values);
1405 } 1456 }
1406 } 1457 }
1407 1458
1408 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { 1459 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
1409 gles2::VertexAttrib2f* c = GetCmdSpace<gles2::VertexAttrib2f>(); 1460 gles2::cmds::VertexAttrib2f* c =
1461 GetCmdSpace<gles2::cmds::VertexAttrib2f>();
1410 if (c) { 1462 if (c) {
1411 c->Init(indx, x, y); 1463 c->Init(indx, x, y);
1412 } 1464 }
1413 } 1465 }
1414 1466
1415 void VertexAttrib2fv( 1467 void VertexAttrib2fv(
1416 GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) { 1468 GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) {
1417 gles2::VertexAttrib2fv* c = GetCmdSpace<gles2::VertexAttrib2fv>(); 1469 gles2::cmds::VertexAttrib2fv* c =
1470 GetCmdSpace<gles2::cmds::VertexAttrib2fv>();
1418 if (c) { 1471 if (c) {
1419 c->Init(indx, values_shm_id, values_shm_offset); 1472 c->Init(indx, values_shm_id, values_shm_offset);
1420 } 1473 }
1421 } 1474 }
1422 1475
1423 void VertexAttrib2fvImmediate(GLuint indx, const GLfloat* values) { 1476 void VertexAttrib2fvImmediate(GLuint indx, const GLfloat* values) {
1424 const uint32 size = gles2::VertexAttrib2fvImmediate::ComputeSize(); 1477 const uint32 size = gles2::cmds::VertexAttrib2fvImmediate::ComputeSize();
1425 gles2::VertexAttrib2fvImmediate* c = 1478 gles2::cmds::VertexAttrib2fvImmediate* c =
1426 GetImmediateCmdSpaceTotalSize<gles2::VertexAttrib2fvImmediate>(size); 1479 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib2fvImmediate>(
1480 size);
1427 if (c) { 1481 if (c) {
1428 c->Init(indx, values); 1482 c->Init(indx, values);
1429 } 1483 }
1430 } 1484 }
1431 1485
1432 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) { 1486 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) {
1433 gles2::VertexAttrib3f* c = GetCmdSpace<gles2::VertexAttrib3f>(); 1487 gles2::cmds::VertexAttrib3f* c =
1488 GetCmdSpace<gles2::cmds::VertexAttrib3f>();
1434 if (c) { 1489 if (c) {
1435 c->Init(indx, x, y, z); 1490 c->Init(indx, x, y, z);
1436 } 1491 }
1437 } 1492 }
1438 1493
1439 void VertexAttrib3fv( 1494 void VertexAttrib3fv(
1440 GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) { 1495 GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) {
1441 gles2::VertexAttrib3fv* c = GetCmdSpace<gles2::VertexAttrib3fv>(); 1496 gles2::cmds::VertexAttrib3fv* c =
1497 GetCmdSpace<gles2::cmds::VertexAttrib3fv>();
1442 if (c) { 1498 if (c) {
1443 c->Init(indx, values_shm_id, values_shm_offset); 1499 c->Init(indx, values_shm_id, values_shm_offset);
1444 } 1500 }
1445 } 1501 }
1446 1502
1447 void VertexAttrib3fvImmediate(GLuint indx, const GLfloat* values) { 1503 void VertexAttrib3fvImmediate(GLuint indx, const GLfloat* values) {
1448 const uint32 size = gles2::VertexAttrib3fvImmediate::ComputeSize(); 1504 const uint32 size = gles2::cmds::VertexAttrib3fvImmediate::ComputeSize();
1449 gles2::VertexAttrib3fvImmediate* c = 1505 gles2::cmds::VertexAttrib3fvImmediate* c =
1450 GetImmediateCmdSpaceTotalSize<gles2::VertexAttrib3fvImmediate>(size); 1506 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib3fvImmediate>(
1507 size);
1451 if (c) { 1508 if (c) {
1452 c->Init(indx, values); 1509 c->Init(indx, values);
1453 } 1510 }
1454 } 1511 }
1455 1512
1456 void VertexAttrib4f( 1513 void VertexAttrib4f(
1457 GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { 1514 GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
1458 gles2::VertexAttrib4f* c = GetCmdSpace<gles2::VertexAttrib4f>(); 1515 gles2::cmds::VertexAttrib4f* c =
1516 GetCmdSpace<gles2::cmds::VertexAttrib4f>();
1459 if (c) { 1517 if (c) {
1460 c->Init(indx, x, y, z, w); 1518 c->Init(indx, x, y, z, w);
1461 } 1519 }
1462 } 1520 }
1463 1521
1464 void VertexAttrib4fv( 1522 void VertexAttrib4fv(
1465 GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) { 1523 GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) {
1466 gles2::VertexAttrib4fv* c = GetCmdSpace<gles2::VertexAttrib4fv>(); 1524 gles2::cmds::VertexAttrib4fv* c =
1525 GetCmdSpace<gles2::cmds::VertexAttrib4fv>();
1467 if (c) { 1526 if (c) {
1468 c->Init(indx, values_shm_id, values_shm_offset); 1527 c->Init(indx, values_shm_id, values_shm_offset);
1469 } 1528 }
1470 } 1529 }
1471 1530
1472 void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) { 1531 void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) {
1473 const uint32 size = gles2::VertexAttrib4fvImmediate::ComputeSize(); 1532 const uint32 size = gles2::cmds::VertexAttrib4fvImmediate::ComputeSize();
1474 gles2::VertexAttrib4fvImmediate* c = 1533 gles2::cmds::VertexAttrib4fvImmediate* c =
1475 GetImmediateCmdSpaceTotalSize<gles2::VertexAttrib4fvImmediate>(size); 1534 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib4fvImmediate>(
1535 size);
1476 if (c) { 1536 if (c) {
1477 c->Init(indx, values); 1537 c->Init(indx, values);
1478 } 1538 }
1479 } 1539 }
1480 1540
1481 void VertexAttribPointer( 1541 void VertexAttribPointer(
1482 GLuint indx, GLint size, GLenum type, GLboolean normalized, 1542 GLuint indx, GLint size, GLenum type, GLboolean normalized,
1483 GLsizei stride, GLuint offset) { 1543 GLsizei stride, GLuint offset) {
1484 gles2::VertexAttribPointer* c = GetCmdSpace<gles2::VertexAttribPointer>(); 1544 gles2::cmds::VertexAttribPointer* c =
1545 GetCmdSpace<gles2::cmds::VertexAttribPointer>();
1485 if (c) { 1546 if (c) {
1486 c->Init(indx, size, type, normalized, stride, offset); 1547 c->Init(indx, size, type, normalized, stride, offset);
1487 } 1548 }
1488 } 1549 }
1489 1550
1490 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { 1551 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
1491 gles2::Viewport* c = GetCmdSpace<gles2::Viewport>(); 1552 gles2::cmds::Viewport* c = GetCmdSpace<gles2::cmds::Viewport>();
1492 if (c) { 1553 if (c) {
1493 c->Init(x, y, width, height); 1554 c->Init(x, y, width, height);
1494 } 1555 }
1495 } 1556 }
1496 1557
1497 void BlitFramebufferEXT( 1558 void BlitFramebufferEXT(
1498 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, 1559 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0,
1499 GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { 1560 GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) {
1500 gles2::BlitFramebufferEXT* c = GetCmdSpace<gles2::BlitFramebufferEXT>(); 1561 gles2::cmds::BlitFramebufferEXT* c =
1562 GetCmdSpace<gles2::cmds::BlitFramebufferEXT>();
1501 if (c) { 1563 if (c) {
1502 c->Init( 1564 c->Init(
1503 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, 1565 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask,
1504 filter); 1566 filter);
1505 } 1567 }
1506 } 1568 }
1507 1569
1508 void RenderbufferStorageMultisampleEXT( 1570 void RenderbufferStorageMultisampleEXT(
1509 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, 1571 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width,
1510 GLsizei height) { 1572 GLsizei height) {
1511 gles2::RenderbufferStorageMultisampleEXT* c = 1573 gles2::cmds::RenderbufferStorageMultisampleEXT* c =
1512 GetCmdSpace<gles2::RenderbufferStorageMultisampleEXT>(); 1574 GetCmdSpace<gles2::cmds::RenderbufferStorageMultisampleEXT>();
1513 if (c) { 1575 if (c) {
1514 c->Init(target, samples, internalformat, width, height); 1576 c->Init(target, samples, internalformat, width, height);
1515 } 1577 }
1516 } 1578 }
1517 1579
1518 void TexStorage2DEXT( 1580 void TexStorage2DEXT(
1519 GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, 1581 GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width,
1520 GLsizei height) { 1582 GLsizei height) {
1521 gles2::TexStorage2DEXT* c = GetCmdSpace<gles2::TexStorage2DEXT>(); 1583 gles2::cmds::TexStorage2DEXT* c =
1584 GetCmdSpace<gles2::cmds::TexStorage2DEXT>();
1522 if (c) { 1585 if (c) {
1523 c->Init(target, levels, internalFormat, width, height); 1586 c->Init(target, levels, internalFormat, width, height);
1524 } 1587 }
1525 } 1588 }
1526 1589
1527 void GenQueriesEXT( 1590 void GenQueriesEXT(
1528 GLsizei n, uint32 queries_shm_id, uint32 queries_shm_offset) { 1591 GLsizei n, uint32 queries_shm_id, uint32 queries_shm_offset) {
1529 gles2::GenQueriesEXT* c = GetCmdSpace<gles2::GenQueriesEXT>(); 1592 gles2::cmds::GenQueriesEXT* c = GetCmdSpace<gles2::cmds::GenQueriesEXT>();
1530 if (c) { 1593 if (c) {
1531 c->Init(n, queries_shm_id, queries_shm_offset); 1594 c->Init(n, queries_shm_id, queries_shm_offset);
1532 } 1595 }
1533 } 1596 }
1534 1597
1535 void GenQueriesEXTImmediate(GLsizei n, GLuint* queries) { 1598 void GenQueriesEXTImmediate(GLsizei n, GLuint* queries) {
1536 const uint32 size = gles2::GenQueriesEXTImmediate::ComputeSize(n); 1599 const uint32 size = gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n);
1537 gles2::GenQueriesEXTImmediate* c = 1600 gles2::cmds::GenQueriesEXTImmediate* c =
1538 GetImmediateCmdSpaceTotalSize<gles2::GenQueriesEXTImmediate>(size); 1601 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenQueriesEXTImmediate>(
1602 size);
1539 if (c) { 1603 if (c) {
1540 c->Init(n, queries); 1604 c->Init(n, queries);
1541 } 1605 }
1542 } 1606 }
1543 1607
1544 void DeleteQueriesEXT( 1608 void DeleteQueriesEXT(
1545 GLsizei n, uint32 queries_shm_id, uint32 queries_shm_offset) { 1609 GLsizei n, uint32 queries_shm_id, uint32 queries_shm_offset) {
1546 gles2::DeleteQueriesEXT* c = GetCmdSpace<gles2::DeleteQueriesEXT>(); 1610 gles2::cmds::DeleteQueriesEXT* c =
1611 GetCmdSpace<gles2::cmds::DeleteQueriesEXT>();
1547 if (c) { 1612 if (c) {
1548 c->Init(n, queries_shm_id, queries_shm_offset); 1613 c->Init(n, queries_shm_id, queries_shm_offset);
1549 } 1614 }
1550 } 1615 }
1551 1616
1552 void DeleteQueriesEXTImmediate(GLsizei n, const GLuint* queries) { 1617 void DeleteQueriesEXTImmediate(GLsizei n, const GLuint* queries) {
1553 const uint32 size = gles2::DeleteQueriesEXTImmediate::ComputeSize(n); 1618 const uint32 size = gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n);
1554 gles2::DeleteQueriesEXTImmediate* c = 1619 gles2::cmds::DeleteQueriesEXTImmediate* c =
1555 GetImmediateCmdSpaceTotalSize<gles2::DeleteQueriesEXTImmediate>(size); 1620 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteQueriesEXTImmediate>(
1621 size);
1556 if (c) { 1622 if (c) {
1557 c->Init(n, queries); 1623 c->Init(n, queries);
1558 } 1624 }
1559 } 1625 }
1560 1626
1561 void BeginQueryEXT( 1627 void BeginQueryEXT(
1562 GLenum target, GLuint id, uint32 sync_data_shm_id, 1628 GLenum target, GLuint id, uint32 sync_data_shm_id,
1563 uint32 sync_data_shm_offset) { 1629 uint32 sync_data_shm_offset) {
1564 gles2::BeginQueryEXT* c = GetCmdSpace<gles2::BeginQueryEXT>(); 1630 gles2::cmds::BeginQueryEXT* c = GetCmdSpace<gles2::cmds::BeginQueryEXT>();
1565 if (c) { 1631 if (c) {
1566 c->Init(target, id, sync_data_shm_id, sync_data_shm_offset); 1632 c->Init(target, id, sync_data_shm_id, sync_data_shm_offset);
1567 } 1633 }
1568 } 1634 }
1569 1635
1570 void EndQueryEXT(GLenum target, GLuint submit_count) { 1636 void EndQueryEXT(GLenum target, GLuint submit_count) {
1571 gles2::EndQueryEXT* c = GetCmdSpace<gles2::EndQueryEXT>(); 1637 gles2::cmds::EndQueryEXT* c = GetCmdSpace<gles2::cmds::EndQueryEXT>();
1572 if (c) { 1638 if (c) {
1573 c->Init(target, submit_count); 1639 c->Init(target, submit_count);
1574 } 1640 }
1575 } 1641 }
1576 1642
1577 void InsertEventMarkerEXT(GLuint bucket_id) { 1643 void InsertEventMarkerEXT(GLuint bucket_id) {
1578 gles2::InsertEventMarkerEXT* c = 1644 gles2::cmds::InsertEventMarkerEXT* c =
1579 GetCmdSpace<gles2::InsertEventMarkerEXT>(); 1645 GetCmdSpace<gles2::cmds::InsertEventMarkerEXT>();
1580 if (c) { 1646 if (c) {
1581 c->Init(bucket_id); 1647 c->Init(bucket_id);
1582 } 1648 }
1583 } 1649 }
1584 1650
1585 void PushGroupMarkerEXT(GLuint bucket_id) { 1651 void PushGroupMarkerEXT(GLuint bucket_id) {
1586 gles2::PushGroupMarkerEXT* c = GetCmdSpace<gles2::PushGroupMarkerEXT>(); 1652 gles2::cmds::PushGroupMarkerEXT* c =
1653 GetCmdSpace<gles2::cmds::PushGroupMarkerEXT>();
1587 if (c) { 1654 if (c) {
1588 c->Init(bucket_id); 1655 c->Init(bucket_id);
1589 } 1656 }
1590 } 1657 }
1591 1658
1592 void PopGroupMarkerEXT() { 1659 void PopGroupMarkerEXT() {
1593 gles2::PopGroupMarkerEXT* c = GetCmdSpace<gles2::PopGroupMarkerEXT>(); 1660 gles2::cmds::PopGroupMarkerEXT* c =
1661 GetCmdSpace<gles2::cmds::PopGroupMarkerEXT>();
1594 if (c) { 1662 if (c) {
1595 c->Init(); 1663 c->Init();
1596 } 1664 }
1597 } 1665 }
1598 1666
1599 void GenVertexArraysOES( 1667 void GenVertexArraysOES(
1600 GLsizei n, uint32 arrays_shm_id, uint32 arrays_shm_offset) { 1668 GLsizei n, uint32 arrays_shm_id, uint32 arrays_shm_offset) {
1601 gles2::GenVertexArraysOES* c = GetCmdSpace<gles2::GenVertexArraysOES>(); 1669 gles2::cmds::GenVertexArraysOES* c =
1670 GetCmdSpace<gles2::cmds::GenVertexArraysOES>();
1602 if (c) { 1671 if (c) {
1603 c->Init(n, arrays_shm_id, arrays_shm_offset); 1672 c->Init(n, arrays_shm_id, arrays_shm_offset);
1604 } 1673 }
1605 } 1674 }
1606 1675
1607 void GenVertexArraysOESImmediate(GLsizei n, GLuint* arrays) { 1676 void GenVertexArraysOESImmediate(GLsizei n, GLuint* arrays) {
1608 const uint32 size = gles2::GenVertexArraysOESImmediate::ComputeSize(n); 1677 const uint32 size =
1609 gles2::GenVertexArraysOESImmediate* c = 1678 gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n);
1610 GetImmediateCmdSpaceTotalSize<gles2::GenVertexArraysOESImmediate>( 1679 gles2::cmds::GenVertexArraysOESImmediate* c =
1680 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenVertexArraysOESImmediate>(
1611 size); 1681 size);
1612 if (c) { 1682 if (c) {
1613 c->Init(n, arrays); 1683 c->Init(n, arrays);
1614 } 1684 }
1615 } 1685 }
1616 1686
1617 void DeleteVertexArraysOES( 1687 void DeleteVertexArraysOES(
1618 GLsizei n, uint32 arrays_shm_id, uint32 arrays_shm_offset) { 1688 GLsizei n, uint32 arrays_shm_id, uint32 arrays_shm_offset) {
1619 gles2::DeleteVertexArraysOES* c = 1689 gles2::cmds::DeleteVertexArraysOES* c =
1620 GetCmdSpace<gles2::DeleteVertexArraysOES>(); 1690 GetCmdSpace<gles2::cmds::DeleteVertexArraysOES>();
1621 if (c) { 1691 if (c) {
1622 c->Init(n, arrays_shm_id, arrays_shm_offset); 1692 c->Init(n, arrays_shm_id, arrays_shm_offset);
1623 } 1693 }
1624 } 1694 }
1625 1695
1626 void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) { 1696 void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) {
1627 const uint32 size = gles2::DeleteVertexArraysOESImmediate::ComputeSize(n); 1697 const uint32 size =
1628 gles2::DeleteVertexArraysOESImmediate* c = 1698 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n);
1629 GetImmediateCmdSpaceTotalSize<gles2::DeleteVertexArraysOESImmediate>( 1699 gles2::cmds::DeleteVertexArraysOESImmediate* c =
1630 size); 1700 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteVertexArraysOESImmediat e>(size); // NOLINT
1631 if (c) { 1701 if (c) {
1632 c->Init(n, arrays); 1702 c->Init(n, arrays);
1633 } 1703 }
1634 } 1704 }
1635 1705
1636 void IsVertexArrayOES( 1706 void IsVertexArrayOES(
1637 GLuint array, uint32 result_shm_id, uint32 result_shm_offset) { 1707 GLuint array, uint32 result_shm_id, uint32 result_shm_offset) {
1638 gles2::IsVertexArrayOES* c = GetCmdSpace<gles2::IsVertexArrayOES>(); 1708 gles2::cmds::IsVertexArrayOES* c =
1709 GetCmdSpace<gles2::cmds::IsVertexArrayOES>();
1639 if (c) { 1710 if (c) {
1640 c->Init(array, result_shm_id, result_shm_offset); 1711 c->Init(array, result_shm_id, result_shm_offset);
1641 } 1712 }
1642 } 1713 }
1643 1714
1644 void BindVertexArrayOES(GLuint array) { 1715 void BindVertexArrayOES(GLuint array) {
1645 gles2::BindVertexArrayOES* c = GetCmdSpace<gles2::BindVertexArrayOES>(); 1716 gles2::cmds::BindVertexArrayOES* c =
1717 GetCmdSpace<gles2::cmds::BindVertexArrayOES>();
1646 if (c) { 1718 if (c) {
1647 c->Init(array); 1719 c->Init(array);
1648 } 1720 }
1649 } 1721 }
1650 1722
1651 void SwapBuffers() { 1723 void SwapBuffers() {
1652 gles2::SwapBuffers* c = GetCmdSpace<gles2::SwapBuffers>(); 1724 gles2::cmds::SwapBuffers* c = GetCmdSpace<gles2::cmds::SwapBuffers>();
1653 if (c) { 1725 if (c) {
1654 c->Init(); 1726 c->Init();
1655 } 1727 }
1656 } 1728 }
1657 1729
1658 void GetMaxValueInBufferCHROMIUM( 1730 void GetMaxValueInBufferCHROMIUM(
1659 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset, 1731 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset,
1660 uint32 result_shm_id, uint32 result_shm_offset) { 1732 uint32 result_shm_id, uint32 result_shm_offset) {
1661 gles2::GetMaxValueInBufferCHROMIUM* c = 1733 gles2::cmds::GetMaxValueInBufferCHROMIUM* c =
1662 GetCmdSpace<gles2::GetMaxValueInBufferCHROMIUM>(); 1734 GetCmdSpace<gles2::cmds::GetMaxValueInBufferCHROMIUM>();
1663 if (c) { 1735 if (c) {
1664 c->Init( 1736 c->Init(
1665 buffer_id, count, type, offset, result_shm_id, result_shm_offset); 1737 buffer_id, count, type, offset, result_shm_id, result_shm_offset);
1666 } 1738 }
1667 } 1739 }
1668 1740
1669 void GenSharedIdsCHROMIUM( 1741 void GenSharedIdsCHROMIUM(
1670 GLuint namespace_id, GLuint id_offset, GLsizei n, uint32 ids_shm_id, 1742 GLuint namespace_id, GLuint id_offset, GLsizei n, uint32 ids_shm_id,
1671 uint32 ids_shm_offset) { 1743 uint32 ids_shm_offset) {
1672 gles2::GenSharedIdsCHROMIUM* c = 1744 gles2::cmds::GenSharedIdsCHROMIUM* c =
1673 GetCmdSpace<gles2::GenSharedIdsCHROMIUM>(); 1745 GetCmdSpace<gles2::cmds::GenSharedIdsCHROMIUM>();
1674 if (c) { 1746 if (c) {
1675 c->Init(namespace_id, id_offset, n, ids_shm_id, ids_shm_offset); 1747 c->Init(namespace_id, id_offset, n, ids_shm_id, ids_shm_offset);
1676 } 1748 }
1677 } 1749 }
1678 1750
1679 void DeleteSharedIdsCHROMIUM( 1751 void DeleteSharedIdsCHROMIUM(
1680 GLuint namespace_id, GLsizei n, uint32 ids_shm_id, 1752 GLuint namespace_id, GLsizei n, uint32 ids_shm_id,
1681 uint32 ids_shm_offset) { 1753 uint32 ids_shm_offset) {
1682 gles2::DeleteSharedIdsCHROMIUM* c = 1754 gles2::cmds::DeleteSharedIdsCHROMIUM* c =
1683 GetCmdSpace<gles2::DeleteSharedIdsCHROMIUM>(); 1755 GetCmdSpace<gles2::cmds::DeleteSharedIdsCHROMIUM>();
1684 if (c) { 1756 if (c) {
1685 c->Init(namespace_id, n, ids_shm_id, ids_shm_offset); 1757 c->Init(namespace_id, n, ids_shm_id, ids_shm_offset);
1686 } 1758 }
1687 } 1759 }
1688 1760
1689 void RegisterSharedIdsCHROMIUM( 1761 void RegisterSharedIdsCHROMIUM(
1690 GLuint namespace_id, GLsizei n, uint32 ids_shm_id, 1762 GLuint namespace_id, GLsizei n, uint32 ids_shm_id,
1691 uint32 ids_shm_offset) { 1763 uint32 ids_shm_offset) {
1692 gles2::RegisterSharedIdsCHROMIUM* c = 1764 gles2::cmds::RegisterSharedIdsCHROMIUM* c =
1693 GetCmdSpace<gles2::RegisterSharedIdsCHROMIUM>(); 1765 GetCmdSpace<gles2::cmds::RegisterSharedIdsCHROMIUM>();
1694 if (c) { 1766 if (c) {
1695 c->Init(namespace_id, n, ids_shm_id, ids_shm_offset); 1767 c->Init(namespace_id, n, ids_shm_id, ids_shm_offset);
1696 } 1768 }
1697 } 1769 }
1698 1770
1699 void EnableFeatureCHROMIUM( 1771 void EnableFeatureCHROMIUM(
1700 GLuint bucket_id, uint32 result_shm_id, uint32 result_shm_offset) { 1772 GLuint bucket_id, uint32 result_shm_id, uint32 result_shm_offset) {
1701 gles2::EnableFeatureCHROMIUM* c = 1773 gles2::cmds::EnableFeatureCHROMIUM* c =
1702 GetCmdSpace<gles2::EnableFeatureCHROMIUM>(); 1774 GetCmdSpace<gles2::cmds::EnableFeatureCHROMIUM>();
1703 if (c) { 1775 if (c) {
1704 c->Init(bucket_id, result_shm_id, result_shm_offset); 1776 c->Init(bucket_id, result_shm_id, result_shm_offset);
1705 } 1777 }
1706 } 1778 }
1707 1779
1708 void ResizeCHROMIUM(GLuint width, GLuint height) { 1780 void ResizeCHROMIUM(GLuint width, GLuint height) {
1709 gles2::ResizeCHROMIUM* c = GetCmdSpace<gles2::ResizeCHROMIUM>(); 1781 gles2::cmds::ResizeCHROMIUM* c =
1782 GetCmdSpace<gles2::cmds::ResizeCHROMIUM>();
1710 if (c) { 1783 if (c) {
1711 c->Init(width, height); 1784 c->Init(width, height);
1712 } 1785 }
1713 } 1786 }
1714 1787
1715 void GetRequestableExtensionsCHROMIUM(uint32 bucket_id) { 1788 void GetRequestableExtensionsCHROMIUM(uint32 bucket_id) {
1716 gles2::GetRequestableExtensionsCHROMIUM* c = 1789 gles2::cmds::GetRequestableExtensionsCHROMIUM* c =
1717 GetCmdSpace<gles2::GetRequestableExtensionsCHROMIUM>(); 1790 GetCmdSpace<gles2::cmds::GetRequestableExtensionsCHROMIUM>();
1718 if (c) { 1791 if (c) {
1719 c->Init(bucket_id); 1792 c->Init(bucket_id);
1720 } 1793 }
1721 } 1794 }
1722 1795
1723 void RequestExtensionCHROMIUM(uint32 bucket_id) { 1796 void RequestExtensionCHROMIUM(uint32 bucket_id) {
1724 gles2::RequestExtensionCHROMIUM* c = 1797 gles2::cmds::RequestExtensionCHROMIUM* c =
1725 GetCmdSpace<gles2::RequestExtensionCHROMIUM>(); 1798 GetCmdSpace<gles2::cmds::RequestExtensionCHROMIUM>();
1726 if (c) { 1799 if (c) {
1727 c->Init(bucket_id); 1800 c->Init(bucket_id);
1728 } 1801 }
1729 } 1802 }
1730 1803
1731 void GetMultipleIntegervCHROMIUM( 1804 void GetMultipleIntegervCHROMIUM(
1732 uint32 pnames_shm_id, uint32 pnames_shm_offset, GLuint count, 1805 uint32 pnames_shm_id, uint32 pnames_shm_offset, GLuint count,
1733 uint32 results_shm_id, uint32 results_shm_offset, GLsizeiptr size) { 1806 uint32 results_shm_id, uint32 results_shm_offset, GLsizeiptr size) {
1734 gles2::GetMultipleIntegervCHROMIUM* c = 1807 gles2::cmds::GetMultipleIntegervCHROMIUM* c =
1735 GetCmdSpace<gles2::GetMultipleIntegervCHROMIUM>(); 1808 GetCmdSpace<gles2::cmds::GetMultipleIntegervCHROMIUM>();
1736 if (c) { 1809 if (c) {
1737 c->Init( 1810 c->Init(
1738 pnames_shm_id, pnames_shm_offset, count, results_shm_id, 1811 pnames_shm_id, pnames_shm_offset, count, results_shm_id,
1739 results_shm_offset, size); 1812 results_shm_offset, size);
1740 } 1813 }
1741 } 1814 }
1742 1815
1743 void GetProgramInfoCHROMIUM(GLuint program, uint32 bucket_id) { 1816 void GetProgramInfoCHROMIUM(GLuint program, uint32 bucket_id) {
1744 gles2::GetProgramInfoCHROMIUM* c = 1817 gles2::cmds::GetProgramInfoCHROMIUM* c =
1745 GetCmdSpace<gles2::GetProgramInfoCHROMIUM>(); 1818 GetCmdSpace<gles2::cmds::GetProgramInfoCHROMIUM>();
1746 if (c) { 1819 if (c) {
1747 c->Init(program, bucket_id); 1820 c->Init(program, bucket_id);
1748 } 1821 }
1749 } 1822 }
1750 1823
1751 void CreateStreamTextureCHROMIUM( 1824 void CreateStreamTextureCHROMIUM(
1752 GLuint client_id, uint32 result_shm_id, uint32 result_shm_offset) { 1825 GLuint client_id, uint32 result_shm_id, uint32 result_shm_offset) {
1753 gles2::CreateStreamTextureCHROMIUM* c = 1826 gles2::cmds::CreateStreamTextureCHROMIUM* c =
1754 GetCmdSpace<gles2::CreateStreamTextureCHROMIUM>(); 1827 GetCmdSpace<gles2::cmds::CreateStreamTextureCHROMIUM>();
1755 if (c) { 1828 if (c) {
1756 c->Init(client_id, result_shm_id, result_shm_offset); 1829 c->Init(client_id, result_shm_id, result_shm_offset);
1757 } 1830 }
1758 } 1831 }
1759 1832
1760 void DestroyStreamTextureCHROMIUM(GLuint texture) { 1833 void DestroyStreamTextureCHROMIUM(GLuint texture) {
1761 gles2::DestroyStreamTextureCHROMIUM* c = 1834 gles2::cmds::DestroyStreamTextureCHROMIUM* c =
1762 GetCmdSpace<gles2::DestroyStreamTextureCHROMIUM>(); 1835 GetCmdSpace<gles2::cmds::DestroyStreamTextureCHROMIUM>();
1763 if (c) { 1836 if (c) {
1764 c->Init(texture); 1837 c->Init(texture);
1765 } 1838 }
1766 } 1839 }
1767 1840
1768 void GetTranslatedShaderSourceANGLE(GLuint shader, uint32 bucket_id) { 1841 void GetTranslatedShaderSourceANGLE(GLuint shader, uint32 bucket_id) {
1769 gles2::GetTranslatedShaderSourceANGLE* c = 1842 gles2::cmds::GetTranslatedShaderSourceANGLE* c =
1770 GetCmdSpace<gles2::GetTranslatedShaderSourceANGLE>(); 1843 GetCmdSpace<gles2::cmds::GetTranslatedShaderSourceANGLE>();
1771 if (c) { 1844 if (c) {
1772 c->Init(shader, bucket_id); 1845 c->Init(shader, bucket_id);
1773 } 1846 }
1774 } 1847 }
1775 1848
1776 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { 1849 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) {
1777 gles2::PostSubBufferCHROMIUM* c = 1850 gles2::cmds::PostSubBufferCHROMIUM* c =
1778 GetCmdSpace<gles2::PostSubBufferCHROMIUM>(); 1851 GetCmdSpace<gles2::cmds::PostSubBufferCHROMIUM>();
1779 if (c) { 1852 if (c) {
1780 c->Init(x, y, width, height); 1853 c->Init(x, y, width, height);
1781 } 1854 }
1782 } 1855 }
1783 1856
1784 void TexImageIOSurface2DCHROMIUM( 1857 void TexImageIOSurface2DCHROMIUM(
1785 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId, 1858 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId,
1786 GLuint plane) { 1859 GLuint plane) {
1787 gles2::TexImageIOSurface2DCHROMIUM* c = 1860 gles2::cmds::TexImageIOSurface2DCHROMIUM* c =
1788 GetCmdSpace<gles2::TexImageIOSurface2DCHROMIUM>(); 1861 GetCmdSpace<gles2::cmds::TexImageIOSurface2DCHROMIUM>();
1789 if (c) { 1862 if (c) {
1790 c->Init(target, width, height, ioSurfaceId, plane); 1863 c->Init(target, width, height, ioSurfaceId, plane);
1791 } 1864 }
1792 } 1865 }
1793 1866
1794 void CopyTextureCHROMIUM( 1867 void CopyTextureCHROMIUM(
1795 GLenum target, GLenum source_id, GLenum dest_id, GLint level, 1868 GLenum target, GLenum source_id, GLenum dest_id, GLint level,
1796 GLint internalformat) { 1869 GLint internalformat) {
1797 gles2::CopyTextureCHROMIUM* c = GetCmdSpace<gles2::CopyTextureCHROMIUM>(); 1870 gles2::cmds::CopyTextureCHROMIUM* c =
1871 GetCmdSpace<gles2::cmds::CopyTextureCHROMIUM>();
1798 if (c) { 1872 if (c) {
1799 c->Init(target, source_id, dest_id, level, internalformat); 1873 c->Init(target, source_id, dest_id, level, internalformat);
1800 } 1874 }
1801 } 1875 }
1802 1876
1803 void DrawArraysInstancedANGLE( 1877 void DrawArraysInstancedANGLE(
1804 GLenum mode, GLint first, GLsizei count, GLsizei primcount) { 1878 GLenum mode, GLint first, GLsizei count, GLsizei primcount) {
1805 gles2::DrawArraysInstancedANGLE* c = 1879 gles2::cmds::DrawArraysInstancedANGLE* c =
1806 GetCmdSpace<gles2::DrawArraysInstancedANGLE>(); 1880 GetCmdSpace<gles2::cmds::DrawArraysInstancedANGLE>();
1807 if (c) { 1881 if (c) {
1808 c->Init(mode, first, count, primcount); 1882 c->Init(mode, first, count, primcount);
1809 } 1883 }
1810 } 1884 }
1811 1885
1812 void DrawElementsInstancedANGLE( 1886 void DrawElementsInstancedANGLE(
1813 GLenum mode, GLsizei count, GLenum type, GLuint index_offset, 1887 GLenum mode, GLsizei count, GLenum type, GLuint index_offset,
1814 GLsizei primcount) { 1888 GLsizei primcount) {
1815 gles2::DrawElementsInstancedANGLE* c = 1889 gles2::cmds::DrawElementsInstancedANGLE* c =
1816 GetCmdSpace<gles2::DrawElementsInstancedANGLE>(); 1890 GetCmdSpace<gles2::cmds::DrawElementsInstancedANGLE>();
1817 if (c) { 1891 if (c) {
1818 c->Init(mode, count, type, index_offset, primcount); 1892 c->Init(mode, count, type, index_offset, primcount);
1819 } 1893 }
1820 } 1894 }
1821 1895
1822 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) { 1896 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
1823 gles2::VertexAttribDivisorANGLE* c = 1897 gles2::cmds::VertexAttribDivisorANGLE* c =
1824 GetCmdSpace<gles2::VertexAttribDivisorANGLE>(); 1898 GetCmdSpace<gles2::cmds::VertexAttribDivisorANGLE>();
1825 if (c) { 1899 if (c) {
1826 c->Init(index, divisor); 1900 c->Init(index, divisor);
1827 } 1901 }
1828 } 1902 }
1829 1903
1830 void GenMailboxCHROMIUM(GLuint bucket_id) { 1904 void GenMailboxCHROMIUM(GLuint bucket_id) {
1831 gles2::GenMailboxCHROMIUM* c = GetCmdSpace<gles2::GenMailboxCHROMIUM>(); 1905 gles2::cmds::GenMailboxCHROMIUM* c =
1906 GetCmdSpace<gles2::cmds::GenMailboxCHROMIUM>();
1832 if (c) { 1907 if (c) {
1833 c->Init(bucket_id); 1908 c->Init(bucket_id);
1834 } 1909 }
1835 } 1910 }
1836 1911
1837 void ProduceTextureCHROMIUM( 1912 void ProduceTextureCHROMIUM(
1838 GLenum target, uint32 mailbox_shm_id, uint32 mailbox_shm_offset) { 1913 GLenum target, uint32 mailbox_shm_id, uint32 mailbox_shm_offset) {
1839 gles2::ProduceTextureCHROMIUM* c = 1914 gles2::cmds::ProduceTextureCHROMIUM* c =
1840 GetCmdSpace<gles2::ProduceTextureCHROMIUM>(); 1915 GetCmdSpace<gles2::cmds::ProduceTextureCHROMIUM>();
1841 if (c) { 1916 if (c) {
1842 c->Init(target, mailbox_shm_id, mailbox_shm_offset); 1917 c->Init(target, mailbox_shm_id, mailbox_shm_offset);
1843 } 1918 }
1844 } 1919 }
1845 1920
1846 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { 1921 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
1847 const uint32 size = gles2::ProduceTextureCHROMIUMImmediate::ComputeSize(); 1922 const uint32 size =
1848 gles2::ProduceTextureCHROMIUMImmediate* c = 1923 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize();
1849 GetImmediateCmdSpaceTotalSize<gles2::ProduceTextureCHROMIUMImmediate>( 1924 gles2::cmds::ProduceTextureCHROMIUMImmediate* c =
1850 size); 1925 GetImmediateCmdSpaceTotalSize<gles2::cmds::ProduceTextureCHROMIUMImmedia te>(size); // NOLINT
1851 if (c) { 1926 if (c) {
1852 c->Init(target, mailbox); 1927 c->Init(target, mailbox);
1853 } 1928 }
1854 } 1929 }
1855 1930
1856 void ConsumeTextureCHROMIUM( 1931 void ConsumeTextureCHROMIUM(
1857 GLenum target, uint32 mailbox_shm_id, uint32 mailbox_shm_offset) { 1932 GLenum target, uint32 mailbox_shm_id, uint32 mailbox_shm_offset) {
1858 gles2::ConsumeTextureCHROMIUM* c = 1933 gles2::cmds::ConsumeTextureCHROMIUM* c =
1859 GetCmdSpace<gles2::ConsumeTextureCHROMIUM>(); 1934 GetCmdSpace<gles2::cmds::ConsumeTextureCHROMIUM>();
1860 if (c) { 1935 if (c) {
1861 c->Init(target, mailbox_shm_id, mailbox_shm_offset); 1936 c->Init(target, mailbox_shm_id, mailbox_shm_offset);
1862 } 1937 }
1863 } 1938 }
1864 1939
1865 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { 1940 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
1866 const uint32 size = gles2::ConsumeTextureCHROMIUMImmediate::ComputeSize(); 1941 const uint32 size =
1867 gles2::ConsumeTextureCHROMIUMImmediate* c = 1942 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize();
1868 GetImmediateCmdSpaceTotalSize<gles2::ConsumeTextureCHROMIUMImmediate>( 1943 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c =
1869 size); 1944 GetImmediateCmdSpaceTotalSize<gles2::cmds::ConsumeTextureCHROMIUMImmedia te>(size); // NOLINT
1870 if (c) { 1945 if (c) {
1871 c->Init(target, mailbox); 1946 c->Init(target, mailbox);
1872 } 1947 }
1873 } 1948 }
1874 1949
1875 void BindUniformLocationCHROMIUM( 1950 void BindUniformLocationCHROMIUM(
1876 GLuint program, GLint location, uint32 name_shm_id, 1951 GLuint program, GLint location, uint32 name_shm_id,
1877 uint32 name_shm_offset, uint32 data_size) { 1952 uint32 name_shm_offset, uint32 data_size) {
1878 gles2::BindUniformLocationCHROMIUM* c = 1953 gles2::cmds::BindUniformLocationCHROMIUM* c =
1879 GetCmdSpace<gles2::BindUniformLocationCHROMIUM>(); 1954 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUM>();
1880 if (c) { 1955 if (c) {
1881 c->Init(program, location, name_shm_id, name_shm_offset, data_size); 1956 c->Init(program, location, name_shm_id, name_shm_offset, data_size);
1882 } 1957 }
1883 } 1958 }
1884 1959
1885 void BindUniformLocationCHROMIUMImmediate( 1960 void BindUniformLocationCHROMIUMImmediate(
1886 GLuint program, GLint location, const char* name) { 1961 GLuint program, GLint location, const char* name) {
1887 const uint32 data_size = strlen(name); 1962 const uint32 data_size = strlen(name);
1888 gles2::BindUniformLocationCHROMIUMImmediate* c = 1963 gles2::cmds::BindUniformLocationCHROMIUMImmediate* c =
1889 GetImmediateCmdSpace<gles2::BindUniformLocationCHROMIUMImmediate>( 1964 GetImmediateCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMImmediate>(
1890 data_size); 1965 data_size);
1891 if (c) { 1966 if (c) {
1892 c->Init(program, location, name, data_size); 1967 c->Init(program, location, name, data_size);
1893 } 1968 }
1894 } 1969 }
1895 1970
1896 void BindUniformLocationCHROMIUMBucket( 1971 void BindUniformLocationCHROMIUMBucket(
1897 GLuint program, GLint location, uint32 name_bucket_id) { 1972 GLuint program, GLint location, uint32 name_bucket_id) {
1898 gles2::BindUniformLocationCHROMIUMBucket* c = 1973 gles2::cmds::BindUniformLocationCHROMIUMBucket* c =
1899 GetCmdSpace<gles2::BindUniformLocationCHROMIUMBucket>(); 1974 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>();
1900 if (c) { 1975 if (c) {
1901 c->Init(program, location, name_bucket_id); 1976 c->Init(program, location, name_bucket_id);
1902 } 1977 }
1903 } 1978 }
1904 1979
1905 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { 1980 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1906 gles2::BindTexImage2DCHROMIUM* c = 1981 gles2::cmds::BindTexImage2DCHROMIUM* c =
1907 GetCmdSpace<gles2::BindTexImage2DCHROMIUM>(); 1982 GetCmdSpace<gles2::cmds::BindTexImage2DCHROMIUM>();
1908 if (c) { 1983 if (c) {
1909 c->Init(target, imageId); 1984 c->Init(target, imageId);
1910 } 1985 }
1911 } 1986 }
1912 1987
1913 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { 1988 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1914 gles2::ReleaseTexImage2DCHROMIUM* c = 1989 gles2::cmds::ReleaseTexImage2DCHROMIUM* c =
1915 GetCmdSpace<gles2::ReleaseTexImage2DCHROMIUM>(); 1990 GetCmdSpace<gles2::cmds::ReleaseTexImage2DCHROMIUM>();
1916 if (c) { 1991 if (c) {
1917 c->Init(target, imageId); 1992 c->Init(target, imageId);
1918 } 1993 }
1919 } 1994 }
1920 1995
1921 void TraceBeginCHROMIUM(GLuint bucket_id) { 1996 void TraceBeginCHROMIUM(GLuint bucket_id) {
1922 gles2::TraceBeginCHROMIUM* c = GetCmdSpace<gles2::TraceBeginCHROMIUM>(); 1997 gles2::cmds::TraceBeginCHROMIUM* c =
1998 GetCmdSpace<gles2::cmds::TraceBeginCHROMIUM>();
1923 if (c) { 1999 if (c) {
1924 c->Init(bucket_id); 2000 c->Init(bucket_id);
1925 } 2001 }
1926 } 2002 }
1927 2003
1928 void TraceEndCHROMIUM() { 2004 void TraceEndCHROMIUM() {
1929 gles2::TraceEndCHROMIUM* c = GetCmdSpace<gles2::TraceEndCHROMIUM>(); 2005 gles2::cmds::TraceEndCHROMIUM* c =
2006 GetCmdSpace<gles2::cmds::TraceEndCHROMIUM>();
1930 if (c) { 2007 if (c) {
1931 c->Init(); 2008 c->Init();
1932 } 2009 }
1933 } 2010 }
1934 2011
1935 void AsyncTexSubImage2DCHROMIUM( 2012 void AsyncTexSubImage2DCHROMIUM(
1936 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 2013 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
1937 GLsizei height, GLenum format, GLenum type, uint32 data_shm_id, 2014 GLsizei height, GLenum format, GLenum type, uint32 data_shm_id,
1938 uint32 data_shm_offset) { 2015 uint32 data_shm_offset) {
1939 gles2::AsyncTexSubImage2DCHROMIUM* c = 2016 gles2::cmds::AsyncTexSubImage2DCHROMIUM* c =
1940 GetCmdSpace<gles2::AsyncTexSubImage2DCHROMIUM>(); 2017 GetCmdSpace<gles2::cmds::AsyncTexSubImage2DCHROMIUM>();
1941 if (c) { 2018 if (c) {
1942 c->Init( 2019 c->Init(
1943 target, level, xoffset, yoffset, width, height, format, type, 2020 target, level, xoffset, yoffset, width, height, format, type,
1944 data_shm_id, data_shm_offset); 2021 data_shm_id, data_shm_offset);
1945 } 2022 }
1946 } 2023 }
1947 2024
1948 void AsyncTexImage2DCHROMIUM( 2025 void AsyncTexImage2DCHROMIUM(
1949 GLenum target, GLint level, GLint internalformat, GLsizei width, 2026 GLenum target, GLint level, GLint internalformat, GLsizei width,
1950 GLsizei height, GLint border, GLenum format, GLenum type, 2027 GLsizei height, GLint border, GLenum format, GLenum type,
1951 uint32 pixels_shm_id, uint32 pixels_shm_offset) { 2028 uint32 pixels_shm_id, uint32 pixels_shm_offset) {
1952 gles2::AsyncTexImage2DCHROMIUM* c = 2029 gles2::cmds::AsyncTexImage2DCHROMIUM* c =
1953 GetCmdSpace<gles2::AsyncTexImage2DCHROMIUM>(); 2030 GetCmdSpace<gles2::cmds::AsyncTexImage2DCHROMIUM>();
1954 if (c) { 2031 if (c) {
1955 c->Init( 2032 c->Init(
1956 target, level, internalformat, width, height, border, format, type, 2033 target, level, internalformat, width, height, border, format, type,
1957 pixels_shm_id, pixels_shm_offset); 2034 pixels_shm_id, pixels_shm_offset);
1958 } 2035 }
1959 } 2036 }
1960 2037
1961 void DiscardFramebufferEXT( 2038 void DiscardFramebufferEXT(
1962 GLenum target, GLsizei count, uint32 attachments_shm_id, 2039 GLenum target, GLsizei count, uint32 attachments_shm_id,
1963 uint32 attachments_shm_offset) { 2040 uint32 attachments_shm_offset) {
1964 gles2::DiscardFramebufferEXT* c = 2041 gles2::cmds::DiscardFramebufferEXT* c =
1965 GetCmdSpace<gles2::DiscardFramebufferEXT>(); 2042 GetCmdSpace<gles2::cmds::DiscardFramebufferEXT>();
1966 if (c) { 2043 if (c) {
1967 c->Init(target, count, attachments_shm_id, attachments_shm_offset); 2044 c->Init(target, count, attachments_shm_id, attachments_shm_offset);
1968 } 2045 }
1969 } 2046 }
1970 2047
1971 void DiscardFramebufferEXTImmediate( 2048 void DiscardFramebufferEXTImmediate(
1972 GLenum target, GLsizei count, const GLenum* attachments) { 2049 GLenum target, GLsizei count, const GLenum* attachments) {
1973 const uint32 size = 2050 const uint32 size =
1974 gles2::DiscardFramebufferEXTImmediate::ComputeSize(count); 2051 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count);
1975 gles2::DiscardFramebufferEXTImmediate* c = 2052 gles2::cmds::DiscardFramebufferEXTImmediate* c =
1976 GetImmediateCmdSpaceTotalSize<gles2::DiscardFramebufferEXTImmediate>( 2053 GetImmediateCmdSpaceTotalSize<gles2::cmds::DiscardFramebufferEXTImmediat e>(size); // NOLINT
1977 size);
1978 if (c) { 2054 if (c) {
1979 c->Init(target, count, attachments); 2055 c->Init(target, count, attachments);
1980 } 2056 }
1981 } 2057 }
1982 2058
1983 void LoseContextCHROMIUM(GLenum current, GLenum other) { 2059 void LoseContextCHROMIUM(GLenum current, GLenum other) {
1984 gles2::LoseContextCHROMIUM* c = GetCmdSpace<gles2::LoseContextCHROMIUM>(); 2060 gles2::cmds::LoseContextCHROMIUM* c =
2061 GetCmdSpace<gles2::cmds::LoseContextCHROMIUM>();
1985 if (c) { 2062 if (c) {
1986 c->Init(current, other); 2063 c->Init(current, other);
1987 } 2064 }
1988 } 2065 }
1989 2066
1990 void WaitSyncPointCHROMIUM(GLuint sync_point) { 2067 void WaitSyncPointCHROMIUM(GLuint sync_point) {
1991 gles2::WaitSyncPointCHROMIUM* c = 2068 gles2::cmds::WaitSyncPointCHROMIUM* c =
1992 GetCmdSpace<gles2::WaitSyncPointCHROMIUM>(); 2069 GetCmdSpace<gles2::cmds::WaitSyncPointCHROMIUM>();
1993 if (c) { 2070 if (c) {
1994 c->Init(sync_point); 2071 c->Init(sync_point);
1995 } 2072 }
1996 } 2073 }
1997 2074
1998 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 2075 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
1999 2076
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698