OLD | NEW |
1 | 1 |
2 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 | 6 |
7 namespace command_buffer { | 7 namespace command_buffer { |
8 namespace gles2 { | 8 namespace gles2 { |
9 | 9 |
10 namespace { | 10 namespace { |
11 | 11 |
12 parse_error::ParseError ValidateActiveTexture( | 12 parse_error::ParseError ValidateActiveTexture( |
13 GLES2Decoder* decoder, unsigned int arg_count, GLenum texture) { | 13 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum texture) { |
14 return parse_error::kParseNoError; | 14 return parse_error::kParseNoError; |
15 } | 15 } |
16 parse_error::ParseError ValidateAttachShader( | 16 parse_error::ParseError ValidateAttachShader( |
17 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, | 17 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
18 GLuint shader) { | 18 GLuint shader) { |
19 return parse_error::kParseNoError; | 19 return parse_error::kParseNoError; |
20 } | 20 } |
21 parse_error::ParseError ValidateBindAttribLocation( | 21 parse_error::ParseError ValidateBindAttribLocation( |
22 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, GLuint index, | 22 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
23 const char* name) { | 23 GLuint index, const char* name) { |
24 if (name == NULL) { | 24 if (name == NULL) { |
25 return parse_error::kParseOutOfBounds; | 25 return parse_error::kParseOutOfBounds; |
26 } | 26 } |
27 return parse_error::kParseNoError; | 27 return parse_error::kParseNoError; |
28 } | 28 } |
29 parse_error::ParseError ValidateBindAttribLocationImmediate( | 29 parse_error::ParseError ValidateBindAttribLocationImmediate( |
30 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, GLuint index, | 30 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
31 const char* name) { | 31 GLuint index, const char* name) { |
32 if (name == NULL) { | 32 if (name == NULL) { |
33 return parse_error::kParseOutOfBounds; | 33 return parse_error::kParseOutOfBounds; |
34 } | 34 } |
35 return parse_error::kParseNoError; | 35 return parse_error::kParseNoError; |
36 } | 36 } |
37 parse_error::ParseError ValidateBindBuffer( | 37 parse_error::ParseError ValidateBindBuffer( |
38 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 38 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
39 GLuint buffer) { | 39 GLuint buffer) { |
40 return parse_error::kParseNoError; | 40 return parse_error::kParseNoError; |
41 } | 41 } |
42 parse_error::ParseError ValidateBindFramebuffer( | 42 parse_error::ParseError ValidateBindFramebuffer( |
43 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 43 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
44 GLuint framebuffer) { | 44 GLuint framebuffer) { |
45 return parse_error::kParseNoError; | 45 return parse_error::kParseNoError; |
46 } | 46 } |
47 parse_error::ParseError ValidateBindRenderbuffer( | 47 parse_error::ParseError ValidateBindRenderbuffer( |
48 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 48 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
49 GLuint renderbuffer) { | 49 GLuint renderbuffer) { |
50 return parse_error::kParseNoError; | 50 return parse_error::kParseNoError; |
51 } | 51 } |
52 parse_error::ParseError ValidateBindTexture( | 52 parse_error::ParseError ValidateBindTexture( |
53 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 53 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
54 GLuint texture) { | 54 GLuint texture) { |
55 return parse_error::kParseNoError; | 55 return parse_error::kParseNoError; |
56 } | 56 } |
57 parse_error::ParseError ValidateBlendColor( | 57 parse_error::ParseError ValidateBlendColor( |
58 GLES2Decoder* decoder, unsigned int arg_count, GLclampf red, GLclampf green, | 58 GLES2Decoder* decoder, uint32 immediate_data_size, GLclampf red, |
59 GLclampf blue, GLclampf alpha) { | 59 GLclampf green, GLclampf blue, GLclampf alpha) { |
60 return parse_error::kParseNoError; | 60 return parse_error::kParseNoError; |
61 } | 61 } |
62 parse_error::ParseError ValidateBlendEquation( | 62 parse_error::ParseError ValidateBlendEquation( |
63 GLES2Decoder* decoder, unsigned int arg_count, GLenum mode) { | 63 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum mode) { |
64 return parse_error::kParseNoError; | 64 return parse_error::kParseNoError; |
65 } | 65 } |
66 parse_error::ParseError ValidateBlendEquationSeparate( | 66 parse_error::ParseError ValidateBlendEquationSeparate( |
67 GLES2Decoder* decoder, unsigned int arg_count, GLenum modeRGB, | 67 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum modeRGB, |
68 GLenum modeAlpha) { | 68 GLenum modeAlpha) { |
69 return parse_error::kParseNoError; | 69 return parse_error::kParseNoError; |
70 } | 70 } |
71 parse_error::ParseError ValidateBlendFunc( | 71 parse_error::ParseError ValidateBlendFunc( |
72 GLES2Decoder* decoder, unsigned int arg_count, GLenum sfactor, | 72 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum sfactor, |
73 GLenum dfactor) { | 73 GLenum dfactor) { |
74 return parse_error::kParseNoError; | 74 return parse_error::kParseNoError; |
75 } | 75 } |
76 parse_error::ParseError ValidateBlendFuncSeparate( | 76 parse_error::ParseError ValidateBlendFuncSeparate( |
77 GLES2Decoder* decoder, unsigned int arg_count, GLenum srcRGB, GLenum dstRGB, | 77 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum srcRGB, |
78 GLenum srcAlpha, GLenum dstAlpha) { | 78 GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { |
79 return parse_error::kParseNoError; | 79 return parse_error::kParseNoError; |
80 } | 80 } |
81 parse_error::ParseError ValidateBufferData( | 81 parse_error::ParseError ValidateBufferData( |
82 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 82 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
83 GLsizeiptr size, const void* data, GLenum usage) { | 83 GLsizeiptr size, const void* data, GLenum usage) { |
84 if (data == NULL) { | 84 if (data == NULL) { |
85 return parse_error::kParseOutOfBounds; | 85 return parse_error::kParseOutOfBounds; |
86 } | 86 } |
87 return parse_error::kParseNoError; | 87 return parse_error::kParseNoError; |
88 } | 88 } |
89 parse_error::ParseError ValidateBufferDataImmediate( | 89 parse_error::ParseError ValidateBufferDataImmediate( |
90 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 90 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
91 GLsizeiptr size, const void* data, GLenum usage) { | 91 GLsizeiptr size, const void* data, GLenum usage) { |
92 if (data == NULL) { | 92 if (data == NULL) { |
93 return parse_error::kParseOutOfBounds; | 93 return parse_error::kParseOutOfBounds; |
94 } | 94 } |
95 return parse_error::kParseNoError; | 95 return parse_error::kParseNoError; |
96 } | 96 } |
97 parse_error::ParseError ValidateBufferSubData( | 97 parse_error::ParseError ValidateBufferSubData( |
98 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 98 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
99 GLintptr offset, GLsizeiptr size, const void* data) { | 99 GLintptr offset, GLsizeiptr size, const void* data) { |
100 if (data == NULL) { | 100 if (data == NULL) { |
101 return parse_error::kParseOutOfBounds; | 101 return parse_error::kParseOutOfBounds; |
102 } | 102 } |
103 return parse_error::kParseNoError; | 103 return parse_error::kParseNoError; |
104 } | 104 } |
105 parse_error::ParseError ValidateBufferSubDataImmediate( | 105 parse_error::ParseError ValidateBufferSubDataImmediate( |
106 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 106 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
107 GLintptr offset, GLsizeiptr size, const void* data) { | 107 GLintptr offset, GLsizeiptr size, const void* data) { |
108 if (data == NULL) { | 108 if (data == NULL) { |
109 return parse_error::kParseOutOfBounds; | 109 return parse_error::kParseOutOfBounds; |
110 } | 110 } |
111 return parse_error::kParseNoError; | 111 return parse_error::kParseNoError; |
112 } | 112 } |
113 parse_error::ParseError ValidateCheckFramebufferStatus( | 113 parse_error::ParseError ValidateCheckFramebufferStatus( |
114 GLES2Decoder* decoder, unsigned int arg_count, GLenum target) { | 114 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target) { |
115 return parse_error::kParseNoError; | 115 return parse_error::kParseNoError; |
116 } | 116 } |
117 parse_error::ParseError ValidateClear( | 117 parse_error::ParseError ValidateClear( |
118 GLES2Decoder* decoder, unsigned int arg_count, GLbitfield mask) { | 118 GLES2Decoder* decoder, uint32 immediate_data_size, GLbitfield mask) { |
119 return parse_error::kParseNoError; | 119 return parse_error::kParseNoError; |
120 } | 120 } |
121 parse_error::ParseError ValidateClearColor( | 121 parse_error::ParseError ValidateClearColor( |
122 GLES2Decoder* decoder, unsigned int arg_count, GLclampf red, GLclampf green, | 122 GLES2Decoder* decoder, uint32 immediate_data_size, GLclampf red, |
123 GLclampf blue, GLclampf alpha) { | 123 GLclampf green, GLclampf blue, GLclampf alpha) { |
124 return parse_error::kParseNoError; | 124 return parse_error::kParseNoError; |
125 } | 125 } |
126 parse_error::ParseError ValidateClearDepthf( | 126 parse_error::ParseError ValidateClearDepthf( |
127 GLES2Decoder* decoder, unsigned int arg_count, GLclampf depth) { | 127 GLES2Decoder* decoder, uint32 immediate_data_size, GLclampf depth) { |
128 return parse_error::kParseNoError; | 128 return parse_error::kParseNoError; |
129 } | 129 } |
130 parse_error::ParseError ValidateClearStencil( | 130 parse_error::ParseError ValidateClearStencil( |
131 GLES2Decoder* decoder, unsigned int arg_count, GLint s) { | 131 GLES2Decoder* decoder, uint32 immediate_data_size, GLint s) { |
132 return parse_error::kParseNoError; | 132 return parse_error::kParseNoError; |
133 } | 133 } |
134 parse_error::ParseError ValidateColorMask( | 134 parse_error::ParseError ValidateColorMask( |
135 GLES2Decoder* decoder, unsigned int arg_count, GLboolean red, | 135 GLES2Decoder* decoder, uint32 immediate_data_size, GLboolean red, |
136 GLboolean green, GLboolean blue, GLboolean alpha) { | 136 GLboolean green, GLboolean blue, GLboolean alpha) { |
137 return parse_error::kParseNoError; | 137 return parse_error::kParseNoError; |
138 } | 138 } |
139 parse_error::ParseError ValidateCompileShader( | 139 parse_error::ParseError ValidateCompileShader( |
140 GLES2Decoder* decoder, unsigned int arg_count, GLuint shader) { | 140 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint shader) { |
141 return parse_error::kParseNoError; | 141 return parse_error::kParseNoError; |
142 } | 142 } |
143 parse_error::ParseError ValidateCompressedTexImage2D( | 143 parse_error::ParseError ValidateCompressedTexImage2D( |
144 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLint level, | 144 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
145 GLenum internalformat, GLsizei width, GLsizei height, GLint border, | 145 GLint level, GLenum internalformat, GLsizei width, GLsizei height, |
146 GLsizei imageSize, const void* data) { | 146 GLint border, GLsizei imageSize, const void* data) { |
147 if (data == NULL) { | 147 if (data == NULL) { |
148 return parse_error::kParseOutOfBounds; | 148 return parse_error::kParseOutOfBounds; |
149 } | 149 } |
150 return parse_error::kParseNoError; | 150 return parse_error::kParseNoError; |
151 } | 151 } |
152 parse_error::ParseError ValidateCompressedTexImage2DImmediate( | 152 parse_error::ParseError ValidateCompressedTexImage2DImmediate( |
153 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLint level, | 153 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
154 GLenum internalformat, GLsizei width, GLsizei height, GLint border, | 154 GLint level, GLenum internalformat, GLsizei width, GLsizei height, |
155 GLsizei imageSize, const void* data) { | 155 GLint border, GLsizei imageSize, const void* data) { |
156 if (data == NULL) { | 156 if (data == NULL) { |
157 return parse_error::kParseOutOfBounds; | 157 return parse_error::kParseOutOfBounds; |
158 } | 158 } |
159 return parse_error::kParseNoError; | 159 return parse_error::kParseNoError; |
160 } | 160 } |
161 parse_error::ParseError ValidateCompressedTexSubImage2D( | 161 parse_error::ParseError ValidateCompressedTexSubImage2D( |
162 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLint level, | 162 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
163 GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, | 163 GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, |
164 GLsizei imageSize, const void* data) { | 164 GLenum format, GLsizei imageSize, const void* data) { |
165 if (data == NULL) { | 165 if (data == NULL) { |
166 return parse_error::kParseOutOfBounds; | 166 return parse_error::kParseOutOfBounds; |
167 } | 167 } |
168 return parse_error::kParseNoError; | 168 return parse_error::kParseNoError; |
169 } | 169 } |
170 parse_error::ParseError ValidateCompressedTexSubImage2DImmediate( | 170 parse_error::ParseError ValidateCompressedTexSubImage2DImmediate( |
171 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLint level, | 171 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
172 GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, | 172 GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, |
173 GLsizei imageSize, const void* data) { | 173 GLenum format, GLsizei imageSize, const void* data) { |
174 if (data == NULL) { | 174 if (data == NULL) { |
175 return parse_error::kParseOutOfBounds; | 175 return parse_error::kParseOutOfBounds; |
176 } | 176 } |
177 return parse_error::kParseNoError; | 177 return parse_error::kParseNoError; |
178 } | 178 } |
179 parse_error::ParseError ValidateCopyTexImage2D( | 179 parse_error::ParseError ValidateCopyTexImage2D( |
180 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLint level, | 180 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
181 GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, | 181 GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, |
182 GLint border) { | 182 GLsizei height, GLint border) { |
183 return parse_error::kParseNoError; | 183 return parse_error::kParseNoError; |
184 } | 184 } |
185 parse_error::ParseError ValidateCopyTexSubImage2D( | 185 parse_error::ParseError ValidateCopyTexSubImage2D( |
186 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLint level, | 186 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
187 GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, | 187 GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, |
188 GLsizei height) { | 188 GLsizei height) { |
189 return parse_error::kParseNoError; | 189 return parse_error::kParseNoError; |
190 } | 190 } |
191 parse_error::ParseError ValidateCreateProgram( | 191 parse_error::ParseError ValidateCreateProgram( |
192 GLES2Decoder* decoder, unsigned int arg_count) { | 192 GLES2Decoder* decoder, uint32 immediate_data_size) { |
193 return parse_error::kParseNoError; | 193 return parse_error::kParseNoError; |
194 } | 194 } |
195 parse_error::ParseError ValidateCreateShader( | 195 parse_error::ParseError ValidateCreateShader( |
196 GLES2Decoder* decoder, unsigned int arg_count, GLenum type) { | 196 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum type) { |
197 return parse_error::kParseNoError; | 197 return parse_error::kParseNoError; |
198 } | 198 } |
199 parse_error::ParseError ValidateCullFace( | 199 parse_error::ParseError ValidateCullFace( |
200 GLES2Decoder* decoder, unsigned int arg_count, GLenum mode) { | 200 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum mode) { |
201 return parse_error::kParseNoError; | 201 return parse_error::kParseNoError; |
202 } | 202 } |
203 parse_error::ParseError ValidateDeleteBuffers( | 203 parse_error::ParseError ValidateDeleteBuffers( |
204 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 204 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
205 const GLuint* buffers) { | 205 const GLuint* buffers) { |
206 if (buffers == NULL) { | 206 if (buffers == NULL) { |
207 return parse_error::kParseOutOfBounds; | 207 return parse_error::kParseOutOfBounds; |
208 } | 208 } |
209 return parse_error::kParseNoError; | 209 return parse_error::kParseNoError; |
210 } | 210 } |
211 parse_error::ParseError ValidateDeleteBuffersImmediate( | 211 parse_error::ParseError ValidateDeleteBuffersImmediate( |
212 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 212 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
213 const GLuint* buffers) { | 213 const GLuint* buffers) { |
214 if (buffers == NULL) { | 214 if (buffers == NULL) { |
215 return parse_error::kParseOutOfBounds; | 215 return parse_error::kParseOutOfBounds; |
216 } | 216 } |
217 return parse_error::kParseNoError; | 217 return parse_error::kParseNoError; |
218 } | 218 } |
219 parse_error::ParseError ValidateDeleteFramebuffers( | 219 parse_error::ParseError ValidateDeleteFramebuffers( |
220 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 220 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
221 const GLuint* framebuffers) { | 221 const GLuint* framebuffers) { |
222 if (framebuffers == NULL) { | 222 if (framebuffers == NULL) { |
223 return parse_error::kParseOutOfBounds; | 223 return parse_error::kParseOutOfBounds; |
224 } | 224 } |
225 return parse_error::kParseNoError; | 225 return parse_error::kParseNoError; |
226 } | 226 } |
227 parse_error::ParseError ValidateDeleteFramebuffersImmediate( | 227 parse_error::ParseError ValidateDeleteFramebuffersImmediate( |
228 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 228 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
229 const GLuint* framebuffers) { | 229 const GLuint* framebuffers) { |
230 if (framebuffers == NULL) { | 230 if (framebuffers == NULL) { |
231 return parse_error::kParseOutOfBounds; | 231 return parse_error::kParseOutOfBounds; |
232 } | 232 } |
233 return parse_error::kParseNoError; | 233 return parse_error::kParseNoError; |
234 } | 234 } |
235 parse_error::ParseError ValidateDeleteProgram( | 235 parse_error::ParseError ValidateDeleteProgram( |
236 GLES2Decoder* decoder, unsigned int arg_count, GLuint program) { | 236 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program) { |
237 return parse_error::kParseNoError; | 237 return parse_error::kParseNoError; |
238 } | 238 } |
239 parse_error::ParseError ValidateDeleteRenderbuffers( | 239 parse_error::ParseError ValidateDeleteRenderbuffers( |
240 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 240 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
241 const GLuint* renderbuffers) { | 241 const GLuint* renderbuffers) { |
242 if (renderbuffers == NULL) { | 242 if (renderbuffers == NULL) { |
243 return parse_error::kParseOutOfBounds; | 243 return parse_error::kParseOutOfBounds; |
244 } | 244 } |
245 return parse_error::kParseNoError; | 245 return parse_error::kParseNoError; |
246 } | 246 } |
247 parse_error::ParseError ValidateDeleteRenderbuffersImmediate( | 247 parse_error::ParseError ValidateDeleteRenderbuffersImmediate( |
248 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 248 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
249 const GLuint* renderbuffers) { | 249 const GLuint* renderbuffers) { |
250 if (renderbuffers == NULL) { | 250 if (renderbuffers == NULL) { |
251 return parse_error::kParseOutOfBounds; | 251 return parse_error::kParseOutOfBounds; |
252 } | 252 } |
253 return parse_error::kParseNoError; | 253 return parse_error::kParseNoError; |
254 } | 254 } |
255 parse_error::ParseError ValidateDeleteShader( | 255 parse_error::ParseError ValidateDeleteShader( |
256 GLES2Decoder* decoder, unsigned int arg_count, GLuint shader) { | 256 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint shader) { |
257 return parse_error::kParseNoError; | 257 return parse_error::kParseNoError; |
258 } | 258 } |
259 parse_error::ParseError ValidateDeleteTextures( | 259 parse_error::ParseError ValidateDeleteTextures( |
260 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 260 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
261 const GLuint* textures) { | 261 const GLuint* textures) { |
262 if (textures == NULL) { | 262 if (textures == NULL) { |
263 return parse_error::kParseOutOfBounds; | 263 return parse_error::kParseOutOfBounds; |
264 } | 264 } |
265 return parse_error::kParseNoError; | 265 return parse_error::kParseNoError; |
266 } | 266 } |
267 parse_error::ParseError ValidateDeleteTexturesImmediate( | 267 parse_error::ParseError ValidateDeleteTexturesImmediate( |
268 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 268 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
269 const GLuint* textures) { | 269 const GLuint* textures) { |
270 if (textures == NULL) { | 270 if (textures == NULL) { |
271 return parse_error::kParseOutOfBounds; | 271 return parse_error::kParseOutOfBounds; |
272 } | 272 } |
273 return parse_error::kParseNoError; | 273 return parse_error::kParseNoError; |
274 } | 274 } |
275 parse_error::ParseError ValidateDepthFunc( | 275 parse_error::ParseError ValidateDepthFunc( |
276 GLES2Decoder* decoder, unsigned int arg_count, GLenum func) { | 276 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum func) { |
277 return parse_error::kParseNoError; | 277 return parse_error::kParseNoError; |
278 } | 278 } |
279 parse_error::ParseError ValidateDepthMask( | 279 parse_error::ParseError ValidateDepthMask( |
280 GLES2Decoder* decoder, unsigned int arg_count, GLboolean flag) { | 280 GLES2Decoder* decoder, uint32 immediate_data_size, GLboolean flag) { |
281 return parse_error::kParseNoError; | 281 return parse_error::kParseNoError; |
282 } | 282 } |
283 parse_error::ParseError ValidateDepthRangef( | 283 parse_error::ParseError ValidateDepthRangef( |
284 GLES2Decoder* decoder, unsigned int arg_count, GLclampf zNear, | 284 GLES2Decoder* decoder, uint32 immediate_data_size, GLclampf zNear, |
285 GLclampf zFar) { | 285 GLclampf zFar) { |
286 return parse_error::kParseNoError; | 286 return parse_error::kParseNoError; |
287 } | 287 } |
288 parse_error::ParseError ValidateDetachShader( | 288 parse_error::ParseError ValidateDetachShader( |
289 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, | 289 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
290 GLuint shader) { | 290 GLuint shader) { |
291 return parse_error::kParseNoError; | 291 return parse_error::kParseNoError; |
292 } | 292 } |
293 parse_error::ParseError ValidateDisable( | 293 parse_error::ParseError ValidateDisable( |
294 GLES2Decoder* decoder, unsigned int arg_count, GLenum cap) { | 294 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum cap) { |
295 return parse_error::kParseNoError; | 295 return parse_error::kParseNoError; |
296 } | 296 } |
297 parse_error::ParseError ValidateDisableVertexAttribArray( | 297 parse_error::ParseError ValidateDisableVertexAttribArray( |
298 GLES2Decoder* decoder, unsigned int arg_count, GLuint index) { | 298 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint index) { |
299 return parse_error::kParseNoError; | 299 return parse_error::kParseNoError; |
300 } | 300 } |
301 parse_error::ParseError ValidateDrawArrays( | 301 parse_error::ParseError ValidateDrawArrays( |
302 GLES2Decoder* decoder, unsigned int arg_count, GLenum mode, GLint first, | 302 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum mode, GLint first, |
303 GLsizei count) { | 303 GLsizei count) { |
304 return parse_error::kParseNoError; | 304 return parse_error::kParseNoError; |
305 } | 305 } |
306 parse_error::ParseError ValidateDrawElements( | 306 parse_error::ParseError ValidateDrawElements( |
307 GLES2Decoder* decoder, unsigned int arg_count, GLenum mode, GLsizei count, | 307 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum mode, |
308 GLenum type, const void* indices) { | 308 GLsizei count, GLenum type, const void* indices) { |
309 if (indices == NULL) { | 309 if (indices == NULL) { |
310 return parse_error::kParseOutOfBounds; | 310 return parse_error::kParseOutOfBounds; |
311 } | 311 } |
312 return parse_error::kParseNoError; | 312 return parse_error::kParseNoError; |
313 } | 313 } |
314 parse_error::ParseError ValidateEnable( | 314 parse_error::ParseError ValidateEnable( |
315 GLES2Decoder* decoder, unsigned int arg_count, GLenum cap) { | 315 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum cap) { |
316 return parse_error::kParseNoError; | 316 return parse_error::kParseNoError; |
317 } | 317 } |
318 parse_error::ParseError ValidateEnableVertexAttribArray( | 318 parse_error::ParseError ValidateEnableVertexAttribArray( |
319 GLES2Decoder* decoder, unsigned int arg_count, GLuint index) { | 319 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint index) { |
320 return parse_error::kParseNoError; | 320 return parse_error::kParseNoError; |
321 } | 321 } |
322 parse_error::ParseError ValidateFinish( | 322 parse_error::ParseError ValidateFinish( |
323 GLES2Decoder* decoder, unsigned int arg_count) { | 323 GLES2Decoder* decoder, uint32 immediate_data_size) { |
324 return parse_error::kParseNoError; | 324 return parse_error::kParseNoError; |
325 } | 325 } |
326 parse_error::ParseError ValidateFlush( | 326 parse_error::ParseError ValidateFlush( |
327 GLES2Decoder* decoder, unsigned int arg_count) { | 327 GLES2Decoder* decoder, uint32 immediate_data_size) { |
328 return parse_error::kParseNoError; | 328 return parse_error::kParseNoError; |
329 } | 329 } |
330 parse_error::ParseError ValidateFramebufferRenderbuffer( | 330 parse_error::ParseError ValidateFramebufferRenderbuffer( |
331 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 331 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
332 GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) { | 332 GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) { |
333 return parse_error::kParseNoError; | 333 return parse_error::kParseNoError; |
334 } | 334 } |
335 parse_error::ParseError ValidateFramebufferTexture2D( | 335 parse_error::ParseError ValidateFramebufferTexture2D( |
336 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 336 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
337 GLenum attachment, GLenum textarget, GLuint texture, GLint level) { | 337 GLenum attachment, GLenum textarget, GLuint texture, GLint level) { |
338 return parse_error::kParseNoError; | 338 return parse_error::kParseNoError; |
339 } | 339 } |
340 parse_error::ParseError ValidateFrontFace( | 340 parse_error::ParseError ValidateFrontFace( |
341 GLES2Decoder* decoder, unsigned int arg_count, GLenum mode) { | 341 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum mode) { |
342 return parse_error::kParseNoError; | 342 return parse_error::kParseNoError; |
343 } | 343 } |
344 parse_error::ParseError ValidateGenBuffers( | 344 parse_error::ParseError ValidateGenBuffers( |
345 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 345 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
346 GLuint* buffers) { | 346 GLuint* buffers) { |
347 if (buffers == NULL) { | 347 if (buffers == NULL) { |
348 return parse_error::kParseOutOfBounds; | 348 return parse_error::kParseOutOfBounds; |
349 } | 349 } |
350 return parse_error::kParseNoError; | 350 return parse_error::kParseNoError; |
351 } | 351 } |
352 parse_error::ParseError ValidateGenBuffersImmediate( | 352 parse_error::ParseError ValidateGenBuffersImmediate( |
353 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 353 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
354 GLuint* buffers) { | 354 GLuint* buffers) { |
355 if (buffers == NULL) { | 355 if (buffers == NULL) { |
356 return parse_error::kParseOutOfBounds; | 356 return parse_error::kParseOutOfBounds; |
357 } | 357 } |
358 return parse_error::kParseNoError; | 358 return parse_error::kParseNoError; |
359 } | 359 } |
360 parse_error::ParseError ValidateGenerateMipmap( | 360 parse_error::ParseError ValidateGenerateMipmap( |
361 GLES2Decoder* decoder, unsigned int arg_count, GLenum target) { | 361 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target) { |
362 return parse_error::kParseNoError; | 362 return parse_error::kParseNoError; |
363 } | 363 } |
364 parse_error::ParseError ValidateGenFramebuffers( | 364 parse_error::ParseError ValidateGenFramebuffers( |
365 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 365 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
366 GLuint* framebuffers) { | 366 GLuint* framebuffers) { |
367 if (framebuffers == NULL) { | 367 if (framebuffers == NULL) { |
368 return parse_error::kParseOutOfBounds; | 368 return parse_error::kParseOutOfBounds; |
369 } | 369 } |
370 return parse_error::kParseNoError; | 370 return parse_error::kParseNoError; |
371 } | 371 } |
372 parse_error::ParseError ValidateGenFramebuffersImmediate( | 372 parse_error::ParseError ValidateGenFramebuffersImmediate( |
373 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 373 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
374 GLuint* framebuffers) { | 374 GLuint* framebuffers) { |
375 if (framebuffers == NULL) { | 375 if (framebuffers == NULL) { |
376 return parse_error::kParseOutOfBounds; | 376 return parse_error::kParseOutOfBounds; |
377 } | 377 } |
378 return parse_error::kParseNoError; | 378 return parse_error::kParseNoError; |
379 } | 379 } |
380 parse_error::ParseError ValidateGenRenderbuffers( | 380 parse_error::ParseError ValidateGenRenderbuffers( |
381 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 381 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
382 GLuint* renderbuffers) { | 382 GLuint* renderbuffers) { |
383 if (renderbuffers == NULL) { | 383 if (renderbuffers == NULL) { |
384 return parse_error::kParseOutOfBounds; | 384 return parse_error::kParseOutOfBounds; |
385 } | 385 } |
386 return parse_error::kParseNoError; | 386 return parse_error::kParseNoError; |
387 } | 387 } |
388 parse_error::ParseError ValidateGenRenderbuffersImmediate( | 388 parse_error::ParseError ValidateGenRenderbuffersImmediate( |
389 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 389 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
390 GLuint* renderbuffers) { | 390 GLuint* renderbuffers) { |
391 if (renderbuffers == NULL) { | 391 if (renderbuffers == NULL) { |
392 return parse_error::kParseOutOfBounds; | 392 return parse_error::kParseOutOfBounds; |
393 } | 393 } |
394 return parse_error::kParseNoError; | 394 return parse_error::kParseNoError; |
395 } | 395 } |
396 parse_error::ParseError ValidateGenTextures( | 396 parse_error::ParseError ValidateGenTextures( |
397 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 397 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
398 GLuint* textures) { | 398 GLuint* textures) { |
399 if (textures == NULL) { | 399 if (textures == NULL) { |
400 return parse_error::kParseOutOfBounds; | 400 return parse_error::kParseOutOfBounds; |
401 } | 401 } |
402 return parse_error::kParseNoError; | 402 return parse_error::kParseNoError; |
403 } | 403 } |
404 parse_error::ParseError ValidateGenTexturesImmediate( | 404 parse_error::ParseError ValidateGenTexturesImmediate( |
405 GLES2Decoder* decoder, unsigned int arg_count, GLsizei n, | 405 GLES2Decoder* decoder, uint32 immediate_data_size, GLsizei n, |
406 GLuint* textures) { | 406 GLuint* textures) { |
407 if (textures == NULL) { | 407 if (textures == NULL) { |
408 return parse_error::kParseOutOfBounds; | 408 return parse_error::kParseOutOfBounds; |
409 } | 409 } |
410 return parse_error::kParseNoError; | 410 return parse_error::kParseNoError; |
411 } | 411 } |
412 parse_error::ParseError ValidateGetActiveAttrib( | 412 parse_error::ParseError ValidateGetActiveAttrib( |
413 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, GLuint index, | 413 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
414 GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name) { | 414 GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, |
| 415 char* name) { |
415 if (length == NULL) { | 416 if (length == NULL) { |
416 return parse_error::kParseOutOfBounds; | 417 return parse_error::kParseOutOfBounds; |
417 } | 418 } |
418 if (size == NULL) { | 419 if (size == NULL) { |
419 return parse_error::kParseOutOfBounds; | 420 return parse_error::kParseOutOfBounds; |
420 } | 421 } |
421 if (type == NULL) { | 422 if (type == NULL) { |
422 return parse_error::kParseOutOfBounds; | 423 return parse_error::kParseOutOfBounds; |
423 } | 424 } |
424 if (name == NULL) { | 425 if (name == NULL) { |
425 return parse_error::kParseOutOfBounds; | 426 return parse_error::kParseOutOfBounds; |
426 } | 427 } |
427 return parse_error::kParseNoError; | 428 return parse_error::kParseNoError; |
428 } | 429 } |
429 parse_error::ParseError ValidateGetActiveUniform( | 430 parse_error::ParseError ValidateGetActiveUniform( |
430 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, GLuint index, | 431 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
431 GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name) { | 432 GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, |
| 433 char* name) { |
432 if (length == NULL) { | 434 if (length == NULL) { |
433 return parse_error::kParseOutOfBounds; | 435 return parse_error::kParseOutOfBounds; |
434 } | 436 } |
435 if (size == NULL) { | 437 if (size == NULL) { |
436 return parse_error::kParseOutOfBounds; | 438 return parse_error::kParseOutOfBounds; |
437 } | 439 } |
438 if (type == NULL) { | 440 if (type == NULL) { |
439 return parse_error::kParseOutOfBounds; | 441 return parse_error::kParseOutOfBounds; |
440 } | 442 } |
441 if (name == NULL) { | 443 if (name == NULL) { |
442 return parse_error::kParseOutOfBounds; | 444 return parse_error::kParseOutOfBounds; |
443 } | 445 } |
444 return parse_error::kParseNoError; | 446 return parse_error::kParseNoError; |
445 } | 447 } |
446 parse_error::ParseError ValidateGetAttachedShaders( | 448 parse_error::ParseError ValidateGetAttachedShaders( |
447 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, | 449 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
448 GLsizei maxcount, GLsizei* count, GLuint* shaders) { | 450 GLsizei maxcount, GLsizei* count, GLuint* shaders) { |
449 if (count == NULL) { | 451 if (count == NULL) { |
450 return parse_error::kParseOutOfBounds; | 452 return parse_error::kParseOutOfBounds; |
451 } | 453 } |
452 if (shaders == NULL) { | 454 if (shaders == NULL) { |
453 return parse_error::kParseOutOfBounds; | 455 return parse_error::kParseOutOfBounds; |
454 } | 456 } |
455 return parse_error::kParseNoError; | 457 return parse_error::kParseNoError; |
456 } | 458 } |
457 parse_error::ParseError ValidateGetAttribLocation( | 459 parse_error::ParseError ValidateGetAttribLocation( |
458 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, | 460 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
459 const char* name) { | 461 const char* name) { |
460 if (name == NULL) { | 462 if (name == NULL) { |
461 return parse_error::kParseOutOfBounds; | 463 return parse_error::kParseOutOfBounds; |
462 } | 464 } |
463 return parse_error::kParseNoError; | 465 return parse_error::kParseNoError; |
464 } | 466 } |
465 parse_error::ParseError ValidateGetAttribLocationImmediate( | 467 parse_error::ParseError ValidateGetAttribLocationImmediate( |
466 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, | 468 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
467 const char* name) { | 469 const char* name) { |
468 if (name == NULL) { | 470 if (name == NULL) { |
469 return parse_error::kParseOutOfBounds; | 471 return parse_error::kParseOutOfBounds; |
470 } | 472 } |
471 return parse_error::kParseNoError; | 473 return parse_error::kParseNoError; |
472 } | 474 } |
473 parse_error::ParseError ValidateGetBooleanv( | 475 parse_error::ParseError ValidateGetBooleanv( |
474 GLES2Decoder* decoder, unsigned int arg_count, GLenum pname, | 476 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum pname, |
475 GLboolean* params) { | 477 GLboolean* params) { |
476 if (params == NULL) { | 478 if (params == NULL) { |
477 return parse_error::kParseOutOfBounds; | 479 return parse_error::kParseOutOfBounds; |
478 } | 480 } |
479 return parse_error::kParseNoError; | 481 return parse_error::kParseNoError; |
480 } | 482 } |
481 parse_error::ParseError ValidateGetBufferParameteriv( | 483 parse_error::ParseError ValidateGetBufferParameteriv( |
482 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLenum pname, | 484 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
483 GLint* params) { | 485 GLenum pname, GLint* params) { |
484 if (params == NULL) { | 486 if (params == NULL) { |
485 return parse_error::kParseOutOfBounds; | 487 return parse_error::kParseOutOfBounds; |
486 } | 488 } |
487 return parse_error::kParseNoError; | 489 return parse_error::kParseNoError; |
488 } | 490 } |
489 parse_error::ParseError ValidateGetError( | 491 parse_error::ParseError ValidateGetError( |
490 GLES2Decoder* decoder, unsigned int arg_count) { | 492 GLES2Decoder* decoder, uint32 immediate_data_size) { |
491 return parse_error::kParseNoError; | 493 return parse_error::kParseNoError; |
492 } | 494 } |
493 parse_error::ParseError ValidateGetFloatv( | 495 parse_error::ParseError ValidateGetFloatv( |
494 GLES2Decoder* decoder, unsigned int arg_count, GLenum pname, | 496 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum pname, |
495 GLfloat* params) { | 497 GLfloat* params) { |
496 if (params == NULL) { | 498 if (params == NULL) { |
497 return parse_error::kParseOutOfBounds; | 499 return parse_error::kParseOutOfBounds; |
498 } | 500 } |
499 return parse_error::kParseNoError; | 501 return parse_error::kParseNoError; |
500 } | 502 } |
501 parse_error::ParseError ValidateGetFramebufferAttachmentParameteriv( | 503 parse_error::ParseError ValidateGetFramebufferAttachmentParameteriv( |
502 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 504 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
503 GLenum attachment, GLenum pname, GLint* params) { | 505 GLenum attachment, GLenum pname, GLint* params) { |
504 if (params == NULL) { | 506 if (params == NULL) { |
505 return parse_error::kParseOutOfBounds; | 507 return parse_error::kParseOutOfBounds; |
506 } | 508 } |
507 return parse_error::kParseNoError; | 509 return parse_error::kParseNoError; |
508 } | 510 } |
509 parse_error::ParseError ValidateGetIntegerv( | 511 parse_error::ParseError ValidateGetIntegerv( |
510 GLES2Decoder* decoder, unsigned int arg_count, GLenum pname, | 512 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum pname, |
511 GLint* params) { | 513 GLint* params) { |
512 if (params == NULL) { | 514 if (params == NULL) { |
513 return parse_error::kParseOutOfBounds; | 515 return parse_error::kParseOutOfBounds; |
514 } | 516 } |
515 return parse_error::kParseNoError; | 517 return parse_error::kParseNoError; |
516 } | 518 } |
517 parse_error::ParseError ValidateGetProgramiv( | 519 parse_error::ParseError ValidateGetProgramiv( |
518 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, GLenum pname, | 520 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
519 GLint* params) { | 521 GLenum pname, GLint* params) { |
520 if (params == NULL) { | 522 if (params == NULL) { |
521 return parse_error::kParseOutOfBounds; | 523 return parse_error::kParseOutOfBounds; |
522 } | 524 } |
523 return parse_error::kParseNoError; | 525 return parse_error::kParseNoError; |
524 } | 526 } |
525 parse_error::ParseError ValidateGetProgramInfoLog( | 527 parse_error::ParseError ValidateGetProgramInfoLog( |
526 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, | 528 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
527 GLsizei bufsize, GLsizei* length, char* infolog) { | 529 GLsizei bufsize, GLsizei* length, char* infolog) { |
528 if (length == NULL) { | 530 if (length == NULL) { |
529 return parse_error::kParseOutOfBounds; | 531 return parse_error::kParseOutOfBounds; |
530 } | 532 } |
531 if (infolog == NULL) { | 533 if (infolog == NULL) { |
532 return parse_error::kParseOutOfBounds; | 534 return parse_error::kParseOutOfBounds; |
533 } | 535 } |
534 return parse_error::kParseNoError; | 536 return parse_error::kParseNoError; |
535 } | 537 } |
536 parse_error::ParseError ValidateGetRenderbufferParameteriv( | 538 parse_error::ParseError ValidateGetRenderbufferParameteriv( |
537 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLenum pname, | 539 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
538 GLint* params) { | 540 GLenum pname, GLint* params) { |
539 if (params == NULL) { | 541 if (params == NULL) { |
540 return parse_error::kParseOutOfBounds; | 542 return parse_error::kParseOutOfBounds; |
541 } | 543 } |
542 return parse_error::kParseNoError; | 544 return parse_error::kParseNoError; |
543 } | 545 } |
544 parse_error::ParseError ValidateGetShaderiv( | 546 parse_error::ParseError ValidateGetShaderiv( |
545 GLES2Decoder* decoder, unsigned int arg_count, GLuint shader, GLenum pname, | 547 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint shader, |
546 GLint* params) { | 548 GLenum pname, GLint* params) { |
547 if (params == NULL) { | 549 if (params == NULL) { |
548 return parse_error::kParseOutOfBounds; | 550 return parse_error::kParseOutOfBounds; |
549 } | 551 } |
550 return parse_error::kParseNoError; | 552 return parse_error::kParseNoError; |
551 } | 553 } |
552 parse_error::ParseError ValidateGetShaderInfoLog( | 554 parse_error::ParseError ValidateGetShaderInfoLog( |
553 GLES2Decoder* decoder, unsigned int arg_count, GLuint shader, | 555 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint shader, |
554 GLsizei bufsize, GLsizei* length, char* infolog) { | 556 GLsizei bufsize, GLsizei* length, char* infolog) { |
555 if (length == NULL) { | 557 if (length == NULL) { |
556 return parse_error::kParseOutOfBounds; | 558 return parse_error::kParseOutOfBounds; |
557 } | 559 } |
558 if (infolog == NULL) { | 560 if (infolog == NULL) { |
559 return parse_error::kParseOutOfBounds; | 561 return parse_error::kParseOutOfBounds; |
560 } | 562 } |
561 return parse_error::kParseNoError; | 563 return parse_error::kParseNoError; |
562 } | 564 } |
563 parse_error::ParseError ValidateGetShaderPrecisionFormat( | 565 parse_error::ParseError ValidateGetShaderPrecisionFormat( |
564 GLES2Decoder* decoder, unsigned int arg_count, GLenum shadertype, | 566 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum shadertype, |
565 GLenum precisiontype, GLint* range, GLint* precision) { | 567 GLenum precisiontype, GLint* range, GLint* precision) { |
566 if (range == NULL) { | 568 if (range == NULL) { |
567 return parse_error::kParseOutOfBounds; | 569 return parse_error::kParseOutOfBounds; |
568 } | 570 } |
569 if (precision == NULL) { | 571 if (precision == NULL) { |
570 return parse_error::kParseOutOfBounds; | 572 return parse_error::kParseOutOfBounds; |
571 } | 573 } |
572 return parse_error::kParseNoError; | 574 return parse_error::kParseNoError; |
573 } | 575 } |
574 parse_error::ParseError ValidateGetShaderSource( | 576 parse_error::ParseError ValidateGetShaderSource( |
575 GLES2Decoder* decoder, unsigned int arg_count, GLuint shader, | 577 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint shader, |
576 GLsizei bufsize, GLsizei* length, char* source) { | 578 GLsizei bufsize, GLsizei* length, char* source) { |
577 if (length == NULL) { | 579 if (length == NULL) { |
578 return parse_error::kParseOutOfBounds; | 580 return parse_error::kParseOutOfBounds; |
579 } | 581 } |
580 if (source == NULL) { | 582 if (source == NULL) { |
581 return parse_error::kParseOutOfBounds; | 583 return parse_error::kParseOutOfBounds; |
582 } | 584 } |
583 return parse_error::kParseNoError; | 585 return parse_error::kParseNoError; |
584 } | 586 } |
585 parse_error::ParseError ValidateGetString( | 587 parse_error::ParseError ValidateGetString( |
586 GLES2Decoder* decoder, unsigned int arg_count, GLenum name) { | 588 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum name) { |
587 return parse_error::kParseNoError; | 589 return parse_error::kParseNoError; |
588 } | 590 } |
589 parse_error::ParseError ValidateGetTexParameterfv( | 591 parse_error::ParseError ValidateGetTexParameterfv( |
590 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLenum pname, | 592 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
591 GLfloat* params) { | 593 GLenum pname, GLfloat* params) { |
592 if (params == NULL) { | 594 if (params == NULL) { |
593 return parse_error::kParseOutOfBounds; | 595 return parse_error::kParseOutOfBounds; |
594 } | 596 } |
595 return parse_error::kParseNoError; | 597 return parse_error::kParseNoError; |
596 } | 598 } |
597 parse_error::ParseError ValidateGetTexParameteriv( | 599 parse_error::ParseError ValidateGetTexParameteriv( |
598 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLenum pname, | 600 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
599 GLint* params) { | 601 GLenum pname, GLint* params) { |
600 if (params == NULL) { | 602 if (params == NULL) { |
601 return parse_error::kParseOutOfBounds; | 603 return parse_error::kParseOutOfBounds; |
602 } | 604 } |
603 return parse_error::kParseNoError; | 605 return parse_error::kParseNoError; |
604 } | 606 } |
605 parse_error::ParseError ValidateGetUniformfv( | 607 parse_error::ParseError ValidateGetUniformfv( |
606 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, | 608 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
607 GLint location, GLfloat* params) { | 609 GLint location, GLfloat* params) { |
608 if (params == NULL) { | 610 if (params == NULL) { |
609 return parse_error::kParseOutOfBounds; | 611 return parse_error::kParseOutOfBounds; |
610 } | 612 } |
611 return parse_error::kParseNoError; | 613 return parse_error::kParseNoError; |
612 } | 614 } |
613 parse_error::ParseError ValidateGetUniformiv( | 615 parse_error::ParseError ValidateGetUniformiv( |
614 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, | 616 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
615 GLint location, GLint* params) { | 617 GLint location, GLint* params) { |
616 if (params == NULL) { | 618 if (params == NULL) { |
617 return parse_error::kParseOutOfBounds; | 619 return parse_error::kParseOutOfBounds; |
618 } | 620 } |
619 return parse_error::kParseNoError; | 621 return parse_error::kParseNoError; |
620 } | 622 } |
621 parse_error::ParseError ValidateGetUniformLocation( | 623 parse_error::ParseError ValidateGetUniformLocation( |
622 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, | 624 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
623 const char* name) { | 625 const char* name) { |
624 if (name == NULL) { | 626 if (name == NULL) { |
625 return parse_error::kParseOutOfBounds; | 627 return parse_error::kParseOutOfBounds; |
626 } | 628 } |
627 return parse_error::kParseNoError; | 629 return parse_error::kParseNoError; |
628 } | 630 } |
629 parse_error::ParseError ValidateGetUniformLocationImmediate( | 631 parse_error::ParseError ValidateGetUniformLocationImmediate( |
630 GLES2Decoder* decoder, unsigned int arg_count, GLuint program, | 632 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program, |
631 const char* name) { | 633 const char* name) { |
632 if (name == NULL) { | 634 if (name == NULL) { |
633 return parse_error::kParseOutOfBounds; | 635 return parse_error::kParseOutOfBounds; |
634 } | 636 } |
635 return parse_error::kParseNoError; | 637 return parse_error::kParseNoError; |
636 } | 638 } |
637 parse_error::ParseError ValidateGetVertexAttribfv( | 639 parse_error::ParseError ValidateGetVertexAttribfv( |
638 GLES2Decoder* decoder, unsigned int arg_count, GLuint index, GLenum pname, | 640 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint index, |
639 GLfloat* params) { | 641 GLenum pname, GLfloat* params) { |
640 if (params == NULL) { | 642 if (params == NULL) { |
641 return parse_error::kParseOutOfBounds; | 643 return parse_error::kParseOutOfBounds; |
642 } | 644 } |
643 return parse_error::kParseNoError; | 645 return parse_error::kParseNoError; |
644 } | 646 } |
645 parse_error::ParseError ValidateGetVertexAttribiv( | 647 parse_error::ParseError ValidateGetVertexAttribiv( |
646 GLES2Decoder* decoder, unsigned int arg_count, GLuint index, GLenum pname, | 648 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint index, |
647 GLint* params) { | 649 GLenum pname, GLint* params) { |
648 if (params == NULL) { | 650 if (params == NULL) { |
649 return parse_error::kParseOutOfBounds; | 651 return parse_error::kParseOutOfBounds; |
650 } | 652 } |
651 return parse_error::kParseNoError; | 653 return parse_error::kParseNoError; |
652 } | 654 } |
653 parse_error::ParseError ValidateGetVertexAttribPointerv( | 655 parse_error::ParseError ValidateGetVertexAttribPointerv( |
654 GLES2Decoder* decoder, unsigned int arg_count, GLuint index, GLenum pname, | 656 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint index, |
655 void** pointer) { | 657 GLenum pname, void** pointer) { |
656 if (pointer == NULL) { | 658 if (pointer == NULL) { |
657 return parse_error::kParseOutOfBounds; | 659 return parse_error::kParseOutOfBounds; |
658 } | 660 } |
659 return parse_error::kParseNoError; | 661 return parse_error::kParseNoError; |
660 } | 662 } |
661 parse_error::ParseError ValidateHint( | 663 parse_error::ParseError ValidateHint( |
662 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 664 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
663 GLenum mode) { | 665 GLenum mode) { |
664 return parse_error::kParseNoError; | 666 return parse_error::kParseNoError; |
665 } | 667 } |
666 parse_error::ParseError ValidateIsBuffer( | 668 parse_error::ParseError ValidateIsBuffer( |
667 GLES2Decoder* decoder, unsigned int arg_count, GLuint buffer) { | 669 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint buffer) { |
668 return parse_error::kParseNoError; | 670 return parse_error::kParseNoError; |
669 } | 671 } |
670 parse_error::ParseError ValidateIsEnabled( | 672 parse_error::ParseError ValidateIsEnabled( |
671 GLES2Decoder* decoder, unsigned int arg_count, GLenum cap) { | 673 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum cap) { |
672 return parse_error::kParseNoError; | 674 return parse_error::kParseNoError; |
673 } | 675 } |
674 parse_error::ParseError ValidateIsFramebuffer( | 676 parse_error::ParseError ValidateIsFramebuffer( |
675 GLES2Decoder* decoder, unsigned int arg_count, GLuint framebuffer) { | 677 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint framebuffer) { |
676 return parse_error::kParseNoError; | 678 return parse_error::kParseNoError; |
677 } | 679 } |
678 parse_error::ParseError ValidateIsProgram( | 680 parse_error::ParseError ValidateIsProgram( |
679 GLES2Decoder* decoder, unsigned int arg_count, GLuint program) { | 681 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program) { |
680 return parse_error::kParseNoError; | 682 return parse_error::kParseNoError; |
681 } | 683 } |
682 parse_error::ParseError ValidateIsRenderbuffer( | 684 parse_error::ParseError ValidateIsRenderbuffer( |
683 GLES2Decoder* decoder, unsigned int arg_count, GLuint renderbuffer) { | 685 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint renderbuffer) { |
684 return parse_error::kParseNoError; | 686 return parse_error::kParseNoError; |
685 } | 687 } |
686 parse_error::ParseError ValidateIsShader( | 688 parse_error::ParseError ValidateIsShader( |
687 GLES2Decoder* decoder, unsigned int arg_count, GLuint shader) { | 689 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint shader) { |
688 return parse_error::kParseNoError; | 690 return parse_error::kParseNoError; |
689 } | 691 } |
690 parse_error::ParseError ValidateIsTexture( | 692 parse_error::ParseError ValidateIsTexture( |
691 GLES2Decoder* decoder, unsigned int arg_count, GLuint texture) { | 693 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint texture) { |
692 return parse_error::kParseNoError; | 694 return parse_error::kParseNoError; |
693 } | 695 } |
694 parse_error::ParseError ValidateLineWidth( | 696 parse_error::ParseError ValidateLineWidth( |
695 GLES2Decoder* decoder, unsigned int arg_count, GLfloat width) { | 697 GLES2Decoder* decoder, uint32 immediate_data_size, GLfloat width) { |
696 return parse_error::kParseNoError; | 698 return parse_error::kParseNoError; |
697 } | 699 } |
698 parse_error::ParseError ValidateLinkProgram( | 700 parse_error::ParseError ValidateLinkProgram( |
699 GLES2Decoder* decoder, unsigned int arg_count, GLuint program) { | 701 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program) { |
700 return parse_error::kParseNoError; | 702 return parse_error::kParseNoError; |
701 } | 703 } |
702 parse_error::ParseError ValidatePixelStorei( | 704 parse_error::ParseError ValidatePixelStorei( |
703 GLES2Decoder* decoder, unsigned int arg_count, GLenum pname, GLint param) { | 705 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum pname, |
| 706 GLint param) { |
704 return parse_error::kParseNoError; | 707 return parse_error::kParseNoError; |
705 } | 708 } |
706 parse_error::ParseError ValidatePolygonOffset( | 709 parse_error::ParseError ValidatePolygonOffset( |
707 GLES2Decoder* decoder, unsigned int arg_count, GLfloat factor, | 710 GLES2Decoder* decoder, uint32 immediate_data_size, GLfloat factor, |
708 GLfloat units) { | 711 GLfloat units) { |
709 return parse_error::kParseNoError; | 712 return parse_error::kParseNoError; |
710 } | 713 } |
711 parse_error::ParseError ValidateReadPixels( | 714 parse_error::ParseError ValidateReadPixels( |
712 GLES2Decoder* decoder, unsigned int arg_count, GLint x, GLint y, | 715 GLES2Decoder* decoder, uint32 immediate_data_size, GLint x, GLint y, |
713 GLsizei width, GLsizei height, GLenum format, GLenum type, void* pixels) { | 716 GLsizei width, GLsizei height, GLenum format, GLenum type, void* pixels) { |
714 if (pixels == NULL) { | 717 if (pixels == NULL) { |
715 return parse_error::kParseOutOfBounds; | 718 return parse_error::kParseOutOfBounds; |
716 } | 719 } |
717 return parse_error::kParseNoError; | 720 return parse_error::kParseNoError; |
718 } | 721 } |
719 parse_error::ParseError ValidateRenderbufferStorage( | 722 parse_error::ParseError ValidateRenderbufferStorage( |
720 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, | 723 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
721 GLenum internalformat, GLsizei width, GLsizei height) { | 724 GLenum internalformat, GLsizei width, GLsizei height) { |
722 return parse_error::kParseNoError; | 725 return parse_error::kParseNoError; |
723 } | 726 } |
724 parse_error::ParseError ValidateSampleCoverage( | 727 parse_error::ParseError ValidateSampleCoverage( |
725 GLES2Decoder* decoder, unsigned int arg_count, GLclampf value, | 728 GLES2Decoder* decoder, uint32 immediate_data_size, GLclampf value, |
726 GLboolean invert) { | 729 GLboolean invert) { |
727 return parse_error::kParseNoError; | 730 return parse_error::kParseNoError; |
728 } | 731 } |
729 parse_error::ParseError ValidateScissor( | 732 parse_error::ParseError ValidateScissor( |
730 GLES2Decoder* decoder, unsigned int arg_count, GLint x, GLint y, | 733 GLES2Decoder* decoder, uint32 immediate_data_size, GLint x, GLint y, |
731 GLsizei width, GLsizei height) { | 734 GLsizei width, GLsizei height) { |
732 return parse_error::kParseNoError; | 735 return parse_error::kParseNoError; |
733 } | 736 } |
734 parse_error::ParseError ValidateShaderSource( | 737 parse_error::ParseError ValidateShaderSource( |
735 GLES2Decoder* decoder, unsigned int arg_count, GLuint shader, GLsizei count, | 738 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint shader, |
736 const char** string, const GLint* length) { | 739 GLsizei count, const char** string, const GLint* length) { |
737 if (string == NULL) { | 740 if (string == NULL) { |
738 return parse_error::kParseOutOfBounds; | 741 return parse_error::kParseOutOfBounds; |
739 } | 742 } |
740 if (length == NULL) { | 743 if (length == NULL) { |
741 return parse_error::kParseOutOfBounds; | 744 return parse_error::kParseOutOfBounds; |
742 } | 745 } |
743 return parse_error::kParseNoError; | 746 return parse_error::kParseNoError; |
744 } | 747 } |
745 parse_error::ParseError ValidateShaderSourceImmediate( | 748 parse_error::ParseError ValidateShaderSourceImmediate( |
746 GLES2Decoder* decoder, unsigned int arg_count, GLuint shader, GLsizei count, | 749 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint shader, |
747 const char** string, const GLint* length) { | 750 GLsizei count, const char** string, const GLint* length) { |
748 if (string == NULL) { | 751 if (string == NULL) { |
749 return parse_error::kParseOutOfBounds; | 752 return parse_error::kParseOutOfBounds; |
750 } | 753 } |
751 if (length == NULL) { | 754 if (length == NULL) { |
752 return parse_error::kParseOutOfBounds; | 755 return parse_error::kParseOutOfBounds; |
753 } | 756 } |
754 return parse_error::kParseNoError; | 757 return parse_error::kParseNoError; |
755 } | 758 } |
756 parse_error::ParseError ValidateStencilFunc( | 759 parse_error::ParseError ValidateStencilFunc( |
757 GLES2Decoder* decoder, unsigned int arg_count, GLenum func, GLint ref, | 760 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum func, GLint ref, |
758 GLuint mask) { | 761 GLuint mask) { |
759 return parse_error::kParseNoError; | 762 return parse_error::kParseNoError; |
760 } | 763 } |
761 parse_error::ParseError ValidateStencilFuncSeparate( | 764 parse_error::ParseError ValidateStencilFuncSeparate( |
762 GLES2Decoder* decoder, unsigned int arg_count, GLenum face, GLenum func, | 765 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum face, GLenum func, |
763 GLint ref, GLuint mask) { | 766 GLint ref, GLuint mask) { |
764 return parse_error::kParseNoError; | 767 return parse_error::kParseNoError; |
765 } | 768 } |
766 parse_error::ParseError ValidateStencilMask( | 769 parse_error::ParseError ValidateStencilMask( |
767 GLES2Decoder* decoder, unsigned int arg_count, GLuint mask) { | 770 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint mask) { |
768 return parse_error::kParseNoError; | 771 return parse_error::kParseNoError; |
769 } | 772 } |
770 parse_error::ParseError ValidateStencilMaskSeparate( | 773 parse_error::ParseError ValidateStencilMaskSeparate( |
771 GLES2Decoder* decoder, unsigned int arg_count, GLenum face, GLuint mask) { | 774 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum face, |
| 775 GLuint mask) { |
772 return parse_error::kParseNoError; | 776 return parse_error::kParseNoError; |
773 } | 777 } |
774 parse_error::ParseError ValidateStencilOp( | 778 parse_error::ParseError ValidateStencilOp( |
775 GLES2Decoder* decoder, unsigned int arg_count, GLenum fail, GLenum zfail, | 779 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum fail, |
776 GLenum zpass) { | 780 GLenum zfail, GLenum zpass) { |
777 return parse_error::kParseNoError; | 781 return parse_error::kParseNoError; |
778 } | 782 } |
779 parse_error::ParseError ValidateStencilOpSeparate( | 783 parse_error::ParseError ValidateStencilOpSeparate( |
780 GLES2Decoder* decoder, unsigned int arg_count, GLenum face, GLenum fail, | 784 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum face, GLenum fail, |
781 GLenum zfail, GLenum zpass) { | 785 GLenum zfail, GLenum zpass) { |
782 return parse_error::kParseNoError; | 786 return parse_error::kParseNoError; |
783 } | 787 } |
784 parse_error::ParseError ValidateTexImage2D( | 788 parse_error::ParseError ValidateTexImage2D( |
785 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLint level, | 789 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
786 GLint internalformat, GLsizei width, GLsizei height, GLint border, | 790 GLint level, GLint internalformat, GLsizei width, GLsizei height, |
| 791 GLint border, GLenum format, GLenum type, const void* pixels) { |
| 792 if (pixels == NULL) { |
| 793 return parse_error::kParseOutOfBounds; |
| 794 } |
| 795 return parse_error::kParseNoError; |
| 796 } |
| 797 parse_error::ParseError ValidateTexImage2DImmediate( |
| 798 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
| 799 GLint level, GLint internalformat, GLsizei width, GLsizei height, |
| 800 GLint border, GLenum format, GLenum type, const void* pixels) { |
| 801 if (pixels == NULL) { |
| 802 return parse_error::kParseOutOfBounds; |
| 803 } |
| 804 return parse_error::kParseNoError; |
| 805 } |
| 806 parse_error::ParseError ValidateTexParameterf( |
| 807 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
| 808 GLenum pname, GLfloat param) { |
| 809 return parse_error::kParseNoError; |
| 810 } |
| 811 parse_error::ParseError ValidateTexParameterfv( |
| 812 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
| 813 GLenum pname, const GLfloat* params) { |
| 814 if (params == NULL) { |
| 815 return parse_error::kParseOutOfBounds; |
| 816 } |
| 817 return parse_error::kParseNoError; |
| 818 } |
| 819 parse_error::ParseError ValidateTexParameterfvImmediate( |
| 820 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
| 821 GLenum pname, const GLfloat* params) { |
| 822 if (params == NULL) { |
| 823 return parse_error::kParseOutOfBounds; |
| 824 } |
| 825 if (!CheckImmediateDataSize<TexParameterfvImmediate>( |
| 826 immediate_data_size, 1, sizeof(GLfloat), 1)) { |
| 827 return parse_error::kParseOutOfBounds; |
| 828 } |
| 829 return parse_error::kParseNoError; |
| 830 } |
| 831 parse_error::ParseError ValidateTexParameteri( |
| 832 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
| 833 GLenum pname, GLint param) { |
| 834 return parse_error::kParseNoError; |
| 835 } |
| 836 parse_error::ParseError ValidateTexParameteriv( |
| 837 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
| 838 GLenum pname, const GLint* params) { |
| 839 if (params == NULL) { |
| 840 return parse_error::kParseOutOfBounds; |
| 841 } |
| 842 return parse_error::kParseNoError; |
| 843 } |
| 844 parse_error::ParseError ValidateTexParameterivImmediate( |
| 845 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
| 846 GLenum pname, const GLint* params) { |
| 847 if (params == NULL) { |
| 848 return parse_error::kParseOutOfBounds; |
| 849 } |
| 850 if (!CheckImmediateDataSize<TexParameterivImmediate>( |
| 851 immediate_data_size, 1, sizeof(GLint), 1)) { |
| 852 return parse_error::kParseOutOfBounds; |
| 853 } |
| 854 return parse_error::kParseNoError; |
| 855 } |
| 856 parse_error::ParseError ValidateTexSubImage2D( |
| 857 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
| 858 GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, |
787 GLenum format, GLenum type, const void* pixels) { | 859 GLenum format, GLenum type, const void* pixels) { |
788 if (pixels == NULL) { | 860 if (pixels == NULL) { |
789 return parse_error::kParseOutOfBounds; | 861 return parse_error::kParseOutOfBounds; |
790 } | 862 } |
791 return parse_error::kParseNoError; | 863 return parse_error::kParseNoError; |
792 } | 864 } |
793 parse_error::ParseError ValidateTexImage2DImmediate( | 865 parse_error::ParseError ValidateTexSubImage2DImmediate( |
794 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLint level, | 866 GLES2Decoder* decoder, uint32 immediate_data_size, GLenum target, |
795 GLint internalformat, GLsizei width, GLsizei height, GLint border, | 867 GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, |
796 GLenum format, GLenum type, const void* pixels) { | 868 GLenum format, GLenum type, const void* pixels) { |
797 if (pixels == NULL) { | 869 if (pixels == NULL) { |
798 return parse_error::kParseOutOfBounds; | 870 return parse_error::kParseOutOfBounds; |
799 } | 871 } |
800 return parse_error::kParseNoError; | 872 return parse_error::kParseNoError; |
801 } | 873 } |
802 parse_error::ParseError ValidateTexParameterf( | |
803 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLenum pname, | |
804 GLfloat param) { | |
805 return parse_error::kParseNoError; | |
806 } | |
807 parse_error::ParseError ValidateTexParameterfv( | |
808 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLenum pname, | |
809 const GLfloat* params) { | |
810 if (params == NULL) { | |
811 return parse_error::kParseOutOfBounds; | |
812 } | |
813 return parse_error::kParseNoError; | |
814 } | |
815 parse_error::ParseError ValidateTexParameterfvImmediate( | |
816 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLenum pname, | |
817 const GLfloat* params) { | |
818 if (params == NULL) { | |
819 return parse_error::kParseOutOfBounds; | |
820 } | |
821 if (!CheckImmediateDataSize<TexParameterfvImmediate>( | |
822 arg_count, 1, sizeof(GLfloat), 1)) { | |
823 return parse_error::kParseOutOfBounds; | |
824 } | |
825 return parse_error::kParseNoError; | |
826 } | |
827 parse_error::ParseError ValidateTexParameteri( | |
828 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLenum pname, | |
829 GLint param) { | |
830 return parse_error::kParseNoError; | |
831 } | |
832 parse_error::ParseError ValidateTexParameteriv( | |
833 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLenum pname, | |
834 const GLint* params) { | |
835 if (params == NULL) { | |
836 return parse_error::kParseOutOfBounds; | |
837 } | |
838 return parse_error::kParseNoError; | |
839 } | |
840 parse_error::ParseError ValidateTexParameterivImmediate( | |
841 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLenum pname, | |
842 const GLint* params) { | |
843 if (params == NULL) { | |
844 return parse_error::kParseOutOfBounds; | |
845 } | |
846 if (!CheckImmediateDataSize<TexParameterivImmediate>( | |
847 arg_count, 1, sizeof(GLint), 1)) { | |
848 return parse_error::kParseOutOfBounds; | |
849 } | |
850 return parse_error::kParseNoError; | |
851 } | |
852 parse_error::ParseError ValidateTexSubImage2D( | |
853 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLint level, | |
854 GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, | |
855 GLenum type, const void* pixels) { | |
856 if (pixels == NULL) { | |
857 return parse_error::kParseOutOfBounds; | |
858 } | |
859 return parse_error::kParseNoError; | |
860 } | |
861 parse_error::ParseError ValidateTexSubImage2DImmediate( | |
862 GLES2Decoder* decoder, unsigned int arg_count, GLenum target, GLint level, | |
863 GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, | |
864 GLenum type, const void* pixels) { | |
865 if (pixels == NULL) { | |
866 return parse_error::kParseOutOfBounds; | |
867 } | |
868 return parse_error::kParseNoError; | |
869 } | |
870 parse_error::ParseError ValidateUniform1f( | 874 parse_error::ParseError ValidateUniform1f( |
871 GLES2Decoder* decoder, unsigned int arg_count, GLint location, GLfloat x) { | 875 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
| 876 GLfloat x) { |
872 return parse_error::kParseNoError; | 877 return parse_error::kParseNoError; |
873 } | 878 } |
874 parse_error::ParseError ValidateUniform1fv( | 879 parse_error::ParseError ValidateUniform1fv( |
875 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 880 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
876 GLsizei count, const GLfloat* v) { | 881 GLsizei count, const GLfloat* v) { |
877 if (v == NULL) { | 882 if (v == NULL) { |
878 return parse_error::kParseOutOfBounds; | 883 return parse_error::kParseOutOfBounds; |
879 } | 884 } |
880 return parse_error::kParseNoError; | 885 return parse_error::kParseNoError; |
881 } | 886 } |
882 parse_error::ParseError ValidateUniform1fvImmediate( | 887 parse_error::ParseError ValidateUniform1fvImmediate( |
883 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 888 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
884 GLsizei count, const GLfloat* v) { | 889 GLsizei count, const GLfloat* v) { |
885 if (v == NULL) { | 890 if (v == NULL) { |
886 return parse_error::kParseOutOfBounds; | 891 return parse_error::kParseOutOfBounds; |
887 } | 892 } |
888 if (!CheckImmediateDataSize<Uniform1fvImmediate>( | 893 if (!CheckImmediateDataSize<Uniform1fvImmediate>( |
889 arg_count, count, sizeof(GLfloat), 1)) { | 894 immediate_data_size, count, sizeof(GLfloat), 1)) { |
890 return parse_error::kParseOutOfBounds; | 895 return parse_error::kParseOutOfBounds; |
891 } | 896 } |
892 return parse_error::kParseNoError; | 897 return parse_error::kParseNoError; |
893 } | 898 } |
894 parse_error::ParseError ValidateUniform1i( | 899 parse_error::ParseError ValidateUniform1i( |
895 GLES2Decoder* decoder, unsigned int arg_count, GLint location, GLint x) { | 900 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
| 901 GLint x) { |
896 return parse_error::kParseNoError; | 902 return parse_error::kParseNoError; |
897 } | 903 } |
898 parse_error::ParseError ValidateUniform1iv( | 904 parse_error::ParseError ValidateUniform1iv( |
899 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 905 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
900 GLsizei count, const GLint* v) { | 906 GLsizei count, const GLint* v) { |
901 if (v == NULL) { | 907 if (v == NULL) { |
902 return parse_error::kParseOutOfBounds; | 908 return parse_error::kParseOutOfBounds; |
903 } | 909 } |
904 return parse_error::kParseNoError; | 910 return parse_error::kParseNoError; |
905 } | 911 } |
906 parse_error::ParseError ValidateUniform1ivImmediate( | 912 parse_error::ParseError ValidateUniform1ivImmediate( |
907 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 913 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
908 GLsizei count, const GLint* v) { | 914 GLsizei count, const GLint* v) { |
909 if (v == NULL) { | 915 if (v == NULL) { |
910 return parse_error::kParseOutOfBounds; | 916 return parse_error::kParseOutOfBounds; |
911 } | 917 } |
912 if (!CheckImmediateDataSize<Uniform1ivImmediate>( | 918 if (!CheckImmediateDataSize<Uniform1ivImmediate>( |
913 arg_count, count, sizeof(GLint), 1)) { | 919 immediate_data_size, count, sizeof(GLint), 1)) { |
914 return parse_error::kParseOutOfBounds; | 920 return parse_error::kParseOutOfBounds; |
915 } | 921 } |
916 return parse_error::kParseNoError; | 922 return parse_error::kParseNoError; |
917 } | 923 } |
918 parse_error::ParseError ValidateUniform2f( | 924 parse_error::ParseError ValidateUniform2f( |
919 GLES2Decoder* decoder, unsigned int arg_count, GLint location, GLfloat x, | 925 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
920 GLfloat y) { | 926 GLfloat x, GLfloat y) { |
921 return parse_error::kParseNoError; | 927 return parse_error::kParseNoError; |
922 } | 928 } |
923 parse_error::ParseError ValidateUniform2fv( | 929 parse_error::ParseError ValidateUniform2fv( |
924 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 930 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
925 GLsizei count, const GLfloat* v) { | 931 GLsizei count, const GLfloat* v) { |
926 if (v == NULL) { | 932 if (v == NULL) { |
927 return parse_error::kParseOutOfBounds; | 933 return parse_error::kParseOutOfBounds; |
928 } | 934 } |
929 return parse_error::kParseNoError; | 935 return parse_error::kParseNoError; |
930 } | 936 } |
931 parse_error::ParseError ValidateUniform2fvImmediate( | 937 parse_error::ParseError ValidateUniform2fvImmediate( |
932 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 938 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
933 GLsizei count, const GLfloat* v) { | 939 GLsizei count, const GLfloat* v) { |
934 if (v == NULL) { | 940 if (v == NULL) { |
935 return parse_error::kParseOutOfBounds; | 941 return parse_error::kParseOutOfBounds; |
936 } | 942 } |
937 if (!CheckImmediateDataSize<Uniform2fvImmediate>( | 943 if (!CheckImmediateDataSize<Uniform2fvImmediate>( |
938 arg_count, count, sizeof(GLfloat), 2)) { | 944 immediate_data_size, count, sizeof(GLfloat), 2)) { |
939 return parse_error::kParseOutOfBounds; | 945 return parse_error::kParseOutOfBounds; |
940 } | 946 } |
941 return parse_error::kParseNoError; | 947 return parse_error::kParseNoError; |
942 } | 948 } |
943 parse_error::ParseError ValidateUniform2i( | 949 parse_error::ParseError ValidateUniform2i( |
944 GLES2Decoder* decoder, unsigned int arg_count, GLint location, GLint x, | 950 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, GLint x, |
945 GLint y) { | 951 GLint y) { |
946 return parse_error::kParseNoError; | 952 return parse_error::kParseNoError; |
947 } | 953 } |
948 parse_error::ParseError ValidateUniform2iv( | 954 parse_error::ParseError ValidateUniform2iv( |
949 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 955 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
950 GLsizei count, const GLint* v) { | 956 GLsizei count, const GLint* v) { |
951 if (v == NULL) { | 957 if (v == NULL) { |
952 return parse_error::kParseOutOfBounds; | 958 return parse_error::kParseOutOfBounds; |
953 } | 959 } |
954 return parse_error::kParseNoError; | 960 return parse_error::kParseNoError; |
955 } | 961 } |
956 parse_error::ParseError ValidateUniform2ivImmediate( | 962 parse_error::ParseError ValidateUniform2ivImmediate( |
957 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 963 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
958 GLsizei count, const GLint* v) { | 964 GLsizei count, const GLint* v) { |
959 if (v == NULL) { | 965 if (v == NULL) { |
960 return parse_error::kParseOutOfBounds; | 966 return parse_error::kParseOutOfBounds; |
961 } | 967 } |
962 if (!CheckImmediateDataSize<Uniform2ivImmediate>( | 968 if (!CheckImmediateDataSize<Uniform2ivImmediate>( |
963 arg_count, count, sizeof(GLint), 2)) { | 969 immediate_data_size, count, sizeof(GLint), 2)) { |
964 return parse_error::kParseOutOfBounds; | 970 return parse_error::kParseOutOfBounds; |
965 } | 971 } |
966 return parse_error::kParseNoError; | 972 return parse_error::kParseNoError; |
967 } | 973 } |
968 parse_error::ParseError ValidateUniform3f( | 974 parse_error::ParseError ValidateUniform3f( |
969 GLES2Decoder* decoder, unsigned int arg_count, GLint location, GLfloat x, | 975 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
970 GLfloat y, GLfloat z) { | 976 GLfloat x, GLfloat y, GLfloat z) { |
971 return parse_error::kParseNoError; | 977 return parse_error::kParseNoError; |
972 } | 978 } |
973 parse_error::ParseError ValidateUniform3fv( | 979 parse_error::ParseError ValidateUniform3fv( |
974 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 980 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
975 GLsizei count, const GLfloat* v) { | 981 GLsizei count, const GLfloat* v) { |
976 if (v == NULL) { | 982 if (v == NULL) { |
977 return parse_error::kParseOutOfBounds; | 983 return parse_error::kParseOutOfBounds; |
978 } | 984 } |
979 return parse_error::kParseNoError; | 985 return parse_error::kParseNoError; |
980 } | 986 } |
981 parse_error::ParseError ValidateUniform3fvImmediate( | 987 parse_error::ParseError ValidateUniform3fvImmediate( |
982 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 988 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
983 GLsizei count, const GLfloat* v) { | 989 GLsizei count, const GLfloat* v) { |
984 if (v == NULL) { | 990 if (v == NULL) { |
985 return parse_error::kParseOutOfBounds; | 991 return parse_error::kParseOutOfBounds; |
986 } | 992 } |
987 if (!CheckImmediateDataSize<Uniform3fvImmediate>( | 993 if (!CheckImmediateDataSize<Uniform3fvImmediate>( |
988 arg_count, count, sizeof(GLfloat), 3)) { | 994 immediate_data_size, count, sizeof(GLfloat), 3)) { |
989 return parse_error::kParseOutOfBounds; | 995 return parse_error::kParseOutOfBounds; |
990 } | 996 } |
991 return parse_error::kParseNoError; | 997 return parse_error::kParseNoError; |
992 } | 998 } |
993 parse_error::ParseError ValidateUniform3i( | 999 parse_error::ParseError ValidateUniform3i( |
994 GLES2Decoder* decoder, unsigned int arg_count, GLint location, GLint x, | 1000 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, GLint x, |
995 GLint y, GLint z) { | 1001 GLint y, GLint z) { |
996 return parse_error::kParseNoError; | 1002 return parse_error::kParseNoError; |
997 } | 1003 } |
998 parse_error::ParseError ValidateUniform3iv( | 1004 parse_error::ParseError ValidateUniform3iv( |
999 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1005 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1000 GLsizei count, const GLint* v) { | 1006 GLsizei count, const GLint* v) { |
1001 if (v == NULL) { | 1007 if (v == NULL) { |
1002 return parse_error::kParseOutOfBounds; | 1008 return parse_error::kParseOutOfBounds; |
1003 } | 1009 } |
1004 return parse_error::kParseNoError; | 1010 return parse_error::kParseNoError; |
1005 } | 1011 } |
1006 parse_error::ParseError ValidateUniform3ivImmediate( | 1012 parse_error::ParseError ValidateUniform3ivImmediate( |
1007 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1013 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1008 GLsizei count, const GLint* v) { | 1014 GLsizei count, const GLint* v) { |
1009 if (v == NULL) { | 1015 if (v == NULL) { |
1010 return parse_error::kParseOutOfBounds; | 1016 return parse_error::kParseOutOfBounds; |
1011 } | 1017 } |
1012 if (!CheckImmediateDataSize<Uniform3ivImmediate>( | 1018 if (!CheckImmediateDataSize<Uniform3ivImmediate>( |
1013 arg_count, count, sizeof(GLint), 3)) { | 1019 immediate_data_size, count, sizeof(GLint), 3)) { |
1014 return parse_error::kParseOutOfBounds; | 1020 return parse_error::kParseOutOfBounds; |
1015 } | 1021 } |
1016 return parse_error::kParseNoError; | 1022 return parse_error::kParseNoError; |
1017 } | 1023 } |
1018 parse_error::ParseError ValidateUniform4f( | 1024 parse_error::ParseError ValidateUniform4f( |
1019 GLES2Decoder* decoder, unsigned int arg_count, GLint location, GLfloat x, | 1025 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1020 GLfloat y, GLfloat z, GLfloat w) { | 1026 GLfloat x, GLfloat y, GLfloat z, GLfloat w) { |
1021 return parse_error::kParseNoError; | 1027 return parse_error::kParseNoError; |
1022 } | 1028 } |
1023 parse_error::ParseError ValidateUniform4fv( | 1029 parse_error::ParseError ValidateUniform4fv( |
1024 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1030 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1025 GLsizei count, const GLfloat* v) { | 1031 GLsizei count, const GLfloat* v) { |
1026 if (v == NULL) { | 1032 if (v == NULL) { |
1027 return parse_error::kParseOutOfBounds; | 1033 return parse_error::kParseOutOfBounds; |
1028 } | 1034 } |
1029 return parse_error::kParseNoError; | 1035 return parse_error::kParseNoError; |
1030 } | 1036 } |
1031 parse_error::ParseError ValidateUniform4fvImmediate( | 1037 parse_error::ParseError ValidateUniform4fvImmediate( |
1032 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1038 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1033 GLsizei count, const GLfloat* v) { | 1039 GLsizei count, const GLfloat* v) { |
1034 if (v == NULL) { | 1040 if (v == NULL) { |
1035 return parse_error::kParseOutOfBounds; | 1041 return parse_error::kParseOutOfBounds; |
1036 } | 1042 } |
1037 if (!CheckImmediateDataSize<Uniform4fvImmediate>( | 1043 if (!CheckImmediateDataSize<Uniform4fvImmediate>( |
1038 arg_count, count, sizeof(GLfloat), 4)) { | 1044 immediate_data_size, count, sizeof(GLfloat), 4)) { |
1039 return parse_error::kParseOutOfBounds; | 1045 return parse_error::kParseOutOfBounds; |
1040 } | 1046 } |
1041 return parse_error::kParseNoError; | 1047 return parse_error::kParseNoError; |
1042 } | 1048 } |
1043 parse_error::ParseError ValidateUniform4i( | 1049 parse_error::ParseError ValidateUniform4i( |
1044 GLES2Decoder* decoder, unsigned int arg_count, GLint location, GLint x, | 1050 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, GLint x, |
1045 GLint y, GLint z, GLint w) { | 1051 GLint y, GLint z, GLint w) { |
1046 return parse_error::kParseNoError; | 1052 return parse_error::kParseNoError; |
1047 } | 1053 } |
1048 parse_error::ParseError ValidateUniform4iv( | 1054 parse_error::ParseError ValidateUniform4iv( |
1049 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1055 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1050 GLsizei count, const GLint* v) { | 1056 GLsizei count, const GLint* v) { |
1051 if (v == NULL) { | 1057 if (v == NULL) { |
1052 return parse_error::kParseOutOfBounds; | 1058 return parse_error::kParseOutOfBounds; |
1053 } | 1059 } |
1054 return parse_error::kParseNoError; | 1060 return parse_error::kParseNoError; |
1055 } | 1061 } |
1056 parse_error::ParseError ValidateUniform4ivImmediate( | 1062 parse_error::ParseError ValidateUniform4ivImmediate( |
1057 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1063 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1058 GLsizei count, const GLint* v) { | 1064 GLsizei count, const GLint* v) { |
1059 if (v == NULL) { | 1065 if (v == NULL) { |
1060 return parse_error::kParseOutOfBounds; | 1066 return parse_error::kParseOutOfBounds; |
1061 } | 1067 } |
1062 if (!CheckImmediateDataSize<Uniform4ivImmediate>( | 1068 if (!CheckImmediateDataSize<Uniform4ivImmediate>( |
1063 arg_count, count, sizeof(GLint), 4)) { | 1069 immediate_data_size, count, sizeof(GLint), 4)) { |
1064 return parse_error::kParseOutOfBounds; | 1070 return parse_error::kParseOutOfBounds; |
1065 } | 1071 } |
1066 return parse_error::kParseNoError; | 1072 return parse_error::kParseNoError; |
1067 } | 1073 } |
1068 parse_error::ParseError ValidateUniformMatrix2fv( | 1074 parse_error::ParseError ValidateUniformMatrix2fv( |
1069 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1075 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1070 GLsizei count, GLboolean transpose, const GLfloat* value) { | 1076 GLsizei count, GLboolean transpose, const GLfloat* value) { |
1071 if (value == NULL) { | 1077 if (value == NULL) { |
1072 return parse_error::kParseOutOfBounds; | 1078 return parse_error::kParseOutOfBounds; |
1073 } | 1079 } |
1074 return parse_error::kParseNoError; | 1080 return parse_error::kParseNoError; |
1075 } | 1081 } |
1076 parse_error::ParseError ValidateUniformMatrix2fvImmediate( | 1082 parse_error::ParseError ValidateUniformMatrix2fvImmediate( |
1077 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1083 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1078 GLsizei count, GLboolean transpose, const GLfloat* value) { | 1084 GLsizei count, GLboolean transpose, const GLfloat* value) { |
1079 if (value == NULL) { | 1085 if (value == NULL) { |
1080 return parse_error::kParseOutOfBounds; | 1086 return parse_error::kParseOutOfBounds; |
1081 } | 1087 } |
1082 if (!CheckImmediateDataSize<UniformMatrix2fvImmediate>( | 1088 if (!CheckImmediateDataSize<UniformMatrix2fvImmediate>( |
1083 arg_count, count, sizeof(GLfloat), 4)) { | 1089 immediate_data_size, count, sizeof(GLfloat), 4)) { |
1084 return parse_error::kParseOutOfBounds; | 1090 return parse_error::kParseOutOfBounds; |
1085 } | 1091 } |
1086 return parse_error::kParseNoError; | 1092 return parse_error::kParseNoError; |
1087 } | 1093 } |
1088 parse_error::ParseError ValidateUniformMatrix3fv( | 1094 parse_error::ParseError ValidateUniformMatrix3fv( |
1089 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1095 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1090 GLsizei count, GLboolean transpose, const GLfloat* value) { | 1096 GLsizei count, GLboolean transpose, const GLfloat* value) { |
1091 if (value == NULL) { | 1097 if (value == NULL) { |
1092 return parse_error::kParseOutOfBounds; | 1098 return parse_error::kParseOutOfBounds; |
1093 } | 1099 } |
1094 return parse_error::kParseNoError; | 1100 return parse_error::kParseNoError; |
1095 } | 1101 } |
1096 parse_error::ParseError ValidateUniformMatrix3fvImmediate( | 1102 parse_error::ParseError ValidateUniformMatrix3fvImmediate( |
1097 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1103 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1098 GLsizei count, GLboolean transpose, const GLfloat* value) { | 1104 GLsizei count, GLboolean transpose, const GLfloat* value) { |
1099 if (value == NULL) { | 1105 if (value == NULL) { |
1100 return parse_error::kParseOutOfBounds; | 1106 return parse_error::kParseOutOfBounds; |
1101 } | 1107 } |
1102 if (!CheckImmediateDataSize<UniformMatrix3fvImmediate>( | 1108 if (!CheckImmediateDataSize<UniformMatrix3fvImmediate>( |
1103 arg_count, count, sizeof(GLfloat), 9)) { | 1109 immediate_data_size, count, sizeof(GLfloat), 9)) { |
1104 return parse_error::kParseOutOfBounds; | 1110 return parse_error::kParseOutOfBounds; |
1105 } | 1111 } |
1106 return parse_error::kParseNoError; | 1112 return parse_error::kParseNoError; |
1107 } | 1113 } |
1108 parse_error::ParseError ValidateUniformMatrix4fv( | 1114 parse_error::ParseError ValidateUniformMatrix4fv( |
1109 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1115 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1110 GLsizei count, GLboolean transpose, const GLfloat* value) { | 1116 GLsizei count, GLboolean transpose, const GLfloat* value) { |
1111 if (value == NULL) { | 1117 if (value == NULL) { |
1112 return parse_error::kParseOutOfBounds; | 1118 return parse_error::kParseOutOfBounds; |
1113 } | 1119 } |
1114 return parse_error::kParseNoError; | 1120 return parse_error::kParseNoError; |
1115 } | 1121 } |
1116 parse_error::ParseError ValidateUniformMatrix4fvImmediate( | 1122 parse_error::ParseError ValidateUniformMatrix4fvImmediate( |
1117 GLES2Decoder* decoder, unsigned int arg_count, GLint location, | 1123 GLES2Decoder* decoder, uint32 immediate_data_size, GLint location, |
1118 GLsizei count, GLboolean transpose, const GLfloat* value) { | 1124 GLsizei count, GLboolean transpose, const GLfloat* value) { |
1119 if (value == NULL) { | 1125 if (value == NULL) { |
1120 return parse_error::kParseOutOfBounds; | 1126 return parse_error::kParseOutOfBounds; |
1121 } | 1127 } |
1122 if (!CheckImmediateDataSize<UniformMatrix4fvImmediate>( | 1128 if (!CheckImmediateDataSize<UniformMatrix4fvImmediate>( |
1123 arg_count, count, sizeof(GLfloat), 16)) { | 1129 immediate_data_size, count, sizeof(GLfloat), 16)) { |
1124 return parse_error::kParseOutOfBounds; | 1130 return parse_error::kParseOutOfBounds; |
1125 } | 1131 } |
1126 return parse_error::kParseNoError; | 1132 return parse_error::kParseNoError; |
1127 } | 1133 } |
1128 parse_error::ParseError ValidateUseProgram( | 1134 parse_error::ParseError ValidateUseProgram( |
1129 GLES2Decoder* decoder, unsigned int arg_count, GLuint program) { | 1135 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program) { |
1130 return parse_error::kParseNoError; | 1136 return parse_error::kParseNoError; |
1131 } | 1137 } |
1132 parse_error::ParseError ValidateValidateProgram( | 1138 parse_error::ParseError ValidateValidateProgram( |
1133 GLES2Decoder* decoder, unsigned int arg_count, GLuint program) { | 1139 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint program) { |
1134 return parse_error::kParseNoError; | 1140 return parse_error::kParseNoError; |
1135 } | 1141 } |
1136 parse_error::ParseError ValidateVertexAttrib1f( | 1142 parse_error::ParseError ValidateVertexAttrib1f( |
1137 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, GLfloat x) { | 1143 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, |
| 1144 GLfloat x) { |
1138 return parse_error::kParseNoError; | 1145 return parse_error::kParseNoError; |
1139 } | 1146 } |
1140 parse_error::ParseError ValidateVertexAttrib1fv( | 1147 parse_error::ParseError ValidateVertexAttrib1fv( |
1141 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, | 1148 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, |
1142 const GLfloat* values) { | 1149 const GLfloat* values) { |
1143 if (values == NULL) { | 1150 if (values == NULL) { |
1144 return parse_error::kParseOutOfBounds; | 1151 return parse_error::kParseOutOfBounds; |
1145 } | 1152 } |
1146 return parse_error::kParseNoError; | 1153 return parse_error::kParseNoError; |
1147 } | 1154 } |
1148 parse_error::ParseError ValidateVertexAttrib1fvImmediate( | 1155 parse_error::ParseError ValidateVertexAttrib1fvImmediate( |
1149 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, | 1156 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, |
1150 const GLfloat* values) { | 1157 const GLfloat* values) { |
1151 if (values == NULL) { | 1158 if (values == NULL) { |
1152 return parse_error::kParseOutOfBounds; | 1159 return parse_error::kParseOutOfBounds; |
1153 } | 1160 } |
1154 if (!CheckImmediateDataSize<VertexAttrib1fvImmediate>( | 1161 if (!CheckImmediateDataSize<VertexAttrib1fvImmediate>( |
1155 arg_count, 1, sizeof(GLfloat), 1)) { | 1162 immediate_data_size, 1, sizeof(GLfloat), 1)) { |
1156 return parse_error::kParseOutOfBounds; | 1163 return parse_error::kParseOutOfBounds; |
1157 } | 1164 } |
1158 return parse_error::kParseNoError; | 1165 return parse_error::kParseNoError; |
1159 } | 1166 } |
1160 parse_error::ParseError ValidateVertexAttrib2f( | 1167 parse_error::ParseError ValidateVertexAttrib2f( |
1161 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, GLfloat x, | 1168 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, GLfloat x, |
1162 GLfloat y) { | 1169 GLfloat y) { |
1163 return parse_error::kParseNoError; | 1170 return parse_error::kParseNoError; |
1164 } | 1171 } |
1165 parse_error::ParseError ValidateVertexAttrib2fv( | 1172 parse_error::ParseError ValidateVertexAttrib2fv( |
1166 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, | 1173 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, |
1167 const GLfloat* values) { | 1174 const GLfloat* values) { |
1168 if (values == NULL) { | 1175 if (values == NULL) { |
1169 return parse_error::kParseOutOfBounds; | 1176 return parse_error::kParseOutOfBounds; |
1170 } | 1177 } |
1171 return parse_error::kParseNoError; | 1178 return parse_error::kParseNoError; |
1172 } | 1179 } |
1173 parse_error::ParseError ValidateVertexAttrib2fvImmediate( | 1180 parse_error::ParseError ValidateVertexAttrib2fvImmediate( |
1174 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, | 1181 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, |
1175 const GLfloat* values) { | 1182 const GLfloat* values) { |
1176 if (values == NULL) { | 1183 if (values == NULL) { |
1177 return parse_error::kParseOutOfBounds; | 1184 return parse_error::kParseOutOfBounds; |
1178 } | 1185 } |
1179 if (!CheckImmediateDataSize<VertexAttrib2fvImmediate>( | 1186 if (!CheckImmediateDataSize<VertexAttrib2fvImmediate>( |
1180 arg_count, 1, sizeof(GLfloat), 2)) { | 1187 immediate_data_size, 1, sizeof(GLfloat), 2)) { |
1181 return parse_error::kParseOutOfBounds; | 1188 return parse_error::kParseOutOfBounds; |
1182 } | 1189 } |
1183 return parse_error::kParseNoError; | 1190 return parse_error::kParseNoError; |
1184 } | 1191 } |
1185 parse_error::ParseError ValidateVertexAttrib3f( | 1192 parse_error::ParseError ValidateVertexAttrib3f( |
1186 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, GLfloat x, | 1193 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, GLfloat x, |
1187 GLfloat y, GLfloat z) { | 1194 GLfloat y, GLfloat z) { |
1188 return parse_error::kParseNoError; | 1195 return parse_error::kParseNoError; |
1189 } | 1196 } |
1190 parse_error::ParseError ValidateVertexAttrib3fv( | 1197 parse_error::ParseError ValidateVertexAttrib3fv( |
1191 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, | 1198 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, |
1192 const GLfloat* values) { | 1199 const GLfloat* values) { |
1193 if (values == NULL) { | 1200 if (values == NULL) { |
1194 return parse_error::kParseOutOfBounds; | 1201 return parse_error::kParseOutOfBounds; |
1195 } | 1202 } |
1196 return parse_error::kParseNoError; | 1203 return parse_error::kParseNoError; |
1197 } | 1204 } |
1198 parse_error::ParseError ValidateVertexAttrib3fvImmediate( | 1205 parse_error::ParseError ValidateVertexAttrib3fvImmediate( |
1199 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, | 1206 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, |
1200 const GLfloat* values) { | 1207 const GLfloat* values) { |
1201 if (values == NULL) { | 1208 if (values == NULL) { |
1202 return parse_error::kParseOutOfBounds; | 1209 return parse_error::kParseOutOfBounds; |
1203 } | 1210 } |
1204 if (!CheckImmediateDataSize<VertexAttrib3fvImmediate>( | 1211 if (!CheckImmediateDataSize<VertexAttrib3fvImmediate>( |
1205 arg_count, 1, sizeof(GLfloat), 3)) { | 1212 immediate_data_size, 1, sizeof(GLfloat), 3)) { |
1206 return parse_error::kParseOutOfBounds; | 1213 return parse_error::kParseOutOfBounds; |
1207 } | 1214 } |
1208 return parse_error::kParseNoError; | 1215 return parse_error::kParseNoError; |
1209 } | 1216 } |
1210 parse_error::ParseError ValidateVertexAttrib4f( | 1217 parse_error::ParseError ValidateVertexAttrib4f( |
1211 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, GLfloat x, | 1218 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, GLfloat x, |
1212 GLfloat y, GLfloat z, GLfloat w) { | 1219 GLfloat y, GLfloat z, GLfloat w) { |
1213 return parse_error::kParseNoError; | 1220 return parse_error::kParseNoError; |
1214 } | 1221 } |
1215 parse_error::ParseError ValidateVertexAttrib4fv( | 1222 parse_error::ParseError ValidateVertexAttrib4fv( |
1216 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, | 1223 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, |
1217 const GLfloat* values) { | 1224 const GLfloat* values) { |
1218 if (values == NULL) { | 1225 if (values == NULL) { |
1219 return parse_error::kParseOutOfBounds; | 1226 return parse_error::kParseOutOfBounds; |
1220 } | 1227 } |
1221 return parse_error::kParseNoError; | 1228 return parse_error::kParseNoError; |
1222 } | 1229 } |
1223 parse_error::ParseError ValidateVertexAttrib4fvImmediate( | 1230 parse_error::ParseError ValidateVertexAttrib4fvImmediate( |
1224 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, | 1231 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, |
1225 const GLfloat* values) { | 1232 const GLfloat* values) { |
1226 if (values == NULL) { | 1233 if (values == NULL) { |
1227 return parse_error::kParseOutOfBounds; | 1234 return parse_error::kParseOutOfBounds; |
1228 } | 1235 } |
1229 if (!CheckImmediateDataSize<VertexAttrib4fvImmediate>( | 1236 if (!CheckImmediateDataSize<VertexAttrib4fvImmediate>( |
1230 arg_count, 1, sizeof(GLfloat), 4)) { | 1237 immediate_data_size, 1, sizeof(GLfloat), 4)) { |
1231 return parse_error::kParseOutOfBounds; | 1238 return parse_error::kParseOutOfBounds; |
1232 } | 1239 } |
1233 return parse_error::kParseNoError; | 1240 return parse_error::kParseNoError; |
1234 } | 1241 } |
1235 parse_error::ParseError ValidateVertexAttribPointer( | 1242 parse_error::ParseError ValidateVertexAttribPointer( |
1236 GLES2Decoder* decoder, unsigned int arg_count, GLuint indx, GLint size, | 1243 GLES2Decoder* decoder, uint32 immediate_data_size, GLuint indx, GLint size, |
1237 GLenum type, GLboolean normalized, GLsizei stride, const void* ptr) { | 1244 GLenum type, GLboolean normalized, GLsizei stride, const void* ptr) { |
1238 if (ptr == NULL) { | 1245 if (ptr == NULL) { |
1239 return parse_error::kParseOutOfBounds; | 1246 return parse_error::kParseOutOfBounds; |
1240 } | 1247 } |
1241 return parse_error::kParseNoError; | 1248 return parse_error::kParseNoError; |
1242 } | 1249 } |
1243 parse_error::ParseError ValidateViewport( | 1250 parse_error::ParseError ValidateViewport( |
1244 GLES2Decoder* decoder, unsigned int arg_count, GLint x, GLint y, | 1251 GLES2Decoder* decoder, uint32 immediate_data_size, GLint x, GLint y, |
1245 GLsizei width, GLsizei height) { | 1252 GLsizei width, GLsizei height) { |
1246 return parse_error::kParseNoError; | 1253 return parse_error::kParseNoError; |
1247 } | 1254 } |
1248 parse_error::ParseError ValidateSwapBuffers( | 1255 parse_error::ParseError ValidateSwapBuffers( |
1249 GLES2Decoder* decoder, unsigned int arg_count) { | 1256 GLES2Decoder* decoder, uint32 immediate_data_size) { |
1250 return parse_error::kParseNoError; | 1257 return parse_error::kParseNoError; |
1251 } | 1258 } |
1252 } // anonymous namespace | 1259 } // anonymous namespace |
1253 } // namespace gles2 | 1260 } // namespace gles2 |
1254 } // namespace command_buffer | 1261 } // namespace command_buffer |
1255 | 1262 |
OLD | NEW |