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

Side by Side Diff: mojo/gpu/mojo_gles2_impl_autogen.cc

Issue 993253003: Modify build_gles2_cmd_buffer.py to generate a class that implements gpu::GLES2Interace and for eac… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/gpu/mojo_gles2_impl_autogen.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
10
11 #include "mojo/gpu/mojo_gles2_impl_autogen.h"
12
13 #include "base/logging.h"
14 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h"
15 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h"
16 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h"
17
18 namespace mojo {
19
20 void MojoGLES2Impl::ActiveTexture(GLenum texture) {
21 MojoGLES2MakeCurrent(context_);
22 glActiveTexture(texture);
23 }
24 void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) {
25 MojoGLES2MakeCurrent(context_);
26 glAttachShader(program, shader);
27 }
28 void MojoGLES2Impl::BindAttribLocation(GLuint program,
29 GLuint index,
30 const char* name) {
31 MojoGLES2MakeCurrent(context_);
32 glBindAttribLocation(program, index, name);
33 }
34 void MojoGLES2Impl::BindBuffer(GLenum target, GLuint buffer) {
35 MojoGLES2MakeCurrent(context_);
36 glBindBuffer(target, buffer);
37 }
38 void MojoGLES2Impl::BindBufferBase(GLenum target, GLuint index, GLuint buffer) {
39 NOTREACHED() << "Unimplemented BindBufferBase.";
40 }
41 void MojoGLES2Impl::BindBufferRange(GLenum target,
42 GLuint index,
43 GLuint buffer,
44 GLintptr offset,
45 GLsizeiptr size) {
46 NOTREACHED() << "Unimplemented BindBufferRange.";
47 }
48 void MojoGLES2Impl::BindFramebuffer(GLenum target, GLuint framebuffer) {
49 MojoGLES2MakeCurrent(context_);
50 glBindFramebuffer(target, framebuffer);
51 }
52 void MojoGLES2Impl::BindRenderbuffer(GLenum target, GLuint renderbuffer) {
53 MojoGLES2MakeCurrent(context_);
54 glBindRenderbuffer(target, renderbuffer);
55 }
56 void MojoGLES2Impl::BindSampler(GLuint unit, GLuint sampler) {
57 NOTREACHED() << "Unimplemented BindSampler.";
58 }
59 void MojoGLES2Impl::BindTexture(GLenum target, GLuint texture) {
60 MojoGLES2MakeCurrent(context_);
61 glBindTexture(target, texture);
62 }
63 void MojoGLES2Impl::BindTransformFeedback(GLenum target,
64 GLuint transformfeedback) {
65 NOTREACHED() << "Unimplemented BindTransformFeedback.";
66 }
67 void MojoGLES2Impl::BlendColor(GLclampf red,
68 GLclampf green,
69 GLclampf blue,
70 GLclampf alpha) {
71 MojoGLES2MakeCurrent(context_);
72 glBlendColor(red, green, blue, alpha);
73 }
74 void MojoGLES2Impl::BlendEquation(GLenum mode) {
75 MojoGLES2MakeCurrent(context_);
76 glBlendEquation(mode);
77 }
78 void MojoGLES2Impl::BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
79 MojoGLES2MakeCurrent(context_);
80 glBlendEquationSeparate(modeRGB, modeAlpha);
81 }
82 void MojoGLES2Impl::BlendFunc(GLenum sfactor, GLenum dfactor) {
83 MojoGLES2MakeCurrent(context_);
84 glBlendFunc(sfactor, dfactor);
85 }
86 void MojoGLES2Impl::BlendFuncSeparate(GLenum srcRGB,
87 GLenum dstRGB,
88 GLenum srcAlpha,
89 GLenum dstAlpha) {
90 MojoGLES2MakeCurrent(context_);
91 glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
92 }
93 void MojoGLES2Impl::BufferData(GLenum target,
94 GLsizeiptr size,
95 const void* data,
96 GLenum usage) {
97 MojoGLES2MakeCurrent(context_);
98 glBufferData(target, size, data, usage);
99 }
100 void MojoGLES2Impl::BufferSubData(GLenum target,
101 GLintptr offset,
102 GLsizeiptr size,
103 const void* data) {
104 MojoGLES2MakeCurrent(context_);
105 glBufferSubData(target, offset, size, data);
106 }
107 GLenum MojoGLES2Impl::CheckFramebufferStatus(GLenum target) {
108 MojoGLES2MakeCurrent(context_);
109 return glCheckFramebufferStatus(target);
110 }
111 void MojoGLES2Impl::Clear(GLbitfield mask) {
112 MojoGLES2MakeCurrent(context_);
113 glClear(mask);
114 }
115 void MojoGLES2Impl::ClearBufferfi(GLenum buffer,
116 GLint drawbuffers,
117 GLfloat depth,
118 GLint stencil) {
119 NOTREACHED() << "Unimplemented ClearBufferfi.";
120 }
121 void MojoGLES2Impl::ClearBufferfv(GLenum buffer,
122 GLint drawbuffers,
123 const GLfloat* value) {
124 NOTREACHED() << "Unimplemented ClearBufferfv.";
125 }
126 void MojoGLES2Impl::ClearBufferiv(GLenum buffer,
127 GLint drawbuffers,
128 const GLint* value) {
129 NOTREACHED() << "Unimplemented ClearBufferiv.";
130 }
131 void MojoGLES2Impl::ClearBufferuiv(GLenum buffer,
132 GLint drawbuffers,
133 const GLuint* value) {
134 NOTREACHED() << "Unimplemented ClearBufferuiv.";
135 }
136 void MojoGLES2Impl::ClearColor(GLclampf red,
137 GLclampf green,
138 GLclampf blue,
139 GLclampf alpha) {
140 MojoGLES2MakeCurrent(context_);
141 glClearColor(red, green, blue, alpha);
142 }
143 void MojoGLES2Impl::ClearDepthf(GLclampf depth) {
144 MojoGLES2MakeCurrent(context_);
145 glClearDepthf(depth);
146 }
147 void MojoGLES2Impl::ClearStencil(GLint s) {
148 MojoGLES2MakeCurrent(context_);
149 glClearStencil(s);
150 }
151 GLenum MojoGLES2Impl::ClientWaitSync(GLsync sync,
152 GLbitfield flags,
153 GLuint64 timeout) {
154 NOTREACHED() << "Unimplemented ClientWaitSync.";
155 return 0;
156 }
157 void MojoGLES2Impl::ColorMask(GLboolean red,
158 GLboolean green,
159 GLboolean blue,
160 GLboolean alpha) {
161 MojoGLES2MakeCurrent(context_);
162 glColorMask(red, green, blue, alpha);
163 }
164 void MojoGLES2Impl::CompileShader(GLuint shader) {
165 MojoGLES2MakeCurrent(context_);
166 glCompileShader(shader);
167 }
168 void MojoGLES2Impl::CompressedTexImage2D(GLenum target,
169 GLint level,
170 GLenum internalformat,
171 GLsizei width,
172 GLsizei height,
173 GLint border,
174 GLsizei imageSize,
175 const void* data) {
176 MojoGLES2MakeCurrent(context_);
177 glCompressedTexImage2D(target, level, internalformat, width, height, border,
178 imageSize, data);
179 }
180 void MojoGLES2Impl::CompressedTexSubImage2D(GLenum target,
181 GLint level,
182 GLint xoffset,
183 GLint yoffset,
184 GLsizei width,
185 GLsizei height,
186 GLenum format,
187 GLsizei imageSize,
188 const void* data) {
189 MojoGLES2MakeCurrent(context_);
190 glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height,
191 format, imageSize, data);
192 }
193 void MojoGLES2Impl::CopyBufferSubData(GLenum readtarget,
194 GLenum writetarget,
195 GLintptr readoffset,
196 GLintptr writeoffset,
197 GLsizeiptr size) {
198 NOTREACHED() << "Unimplemented CopyBufferSubData.";
199 }
200 void MojoGLES2Impl::CopyTexImage2D(GLenum target,
201 GLint level,
202 GLenum internalformat,
203 GLint x,
204 GLint y,
205 GLsizei width,
206 GLsizei height,
207 GLint border) {
208 MojoGLES2MakeCurrent(context_);
209 glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
210 }
211 void MojoGLES2Impl::CopyTexSubImage2D(GLenum target,
212 GLint level,
213 GLint xoffset,
214 GLint yoffset,
215 GLint x,
216 GLint y,
217 GLsizei width,
218 GLsizei height) {
219 MojoGLES2MakeCurrent(context_);
220 glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
221 }
222 void MojoGLES2Impl::CopyTexSubImage3D(GLenum target,
223 GLint level,
224 GLint xoffset,
225 GLint yoffset,
226 GLint zoffset,
227 GLint x,
228 GLint y,
229 GLsizei width,
230 GLsizei height) {
231 NOTREACHED() << "Unimplemented CopyTexSubImage3D.";
232 }
233 GLuint MojoGLES2Impl::CreateProgram() {
234 MojoGLES2MakeCurrent(context_);
235 return glCreateProgram();
236 }
237 GLuint MojoGLES2Impl::CreateShader(GLenum type) {
238 MojoGLES2MakeCurrent(context_);
239 return glCreateShader(type);
240 }
241 void MojoGLES2Impl::CullFace(GLenum mode) {
242 MojoGLES2MakeCurrent(context_);
243 glCullFace(mode);
244 }
245 void MojoGLES2Impl::DeleteBuffers(GLsizei n, const GLuint* buffers) {
246 MojoGLES2MakeCurrent(context_);
247 glDeleteBuffers(n, buffers);
248 }
249 void MojoGLES2Impl::DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) {
250 MojoGLES2MakeCurrent(context_);
251 glDeleteFramebuffers(n, framebuffers);
252 }
253 void MojoGLES2Impl::DeleteProgram(GLuint program) {
254 MojoGLES2MakeCurrent(context_);
255 glDeleteProgram(program);
256 }
257 void MojoGLES2Impl::DeleteRenderbuffers(GLsizei n,
258 const GLuint* renderbuffers) {
259 MojoGLES2MakeCurrent(context_);
260 glDeleteRenderbuffers(n, renderbuffers);
261 }
262 void MojoGLES2Impl::DeleteSamplers(GLsizei n, const GLuint* samplers) {
263 NOTREACHED() << "Unimplemented DeleteSamplers.";
264 }
265 void MojoGLES2Impl::DeleteSync(GLsync sync) {
266 NOTREACHED() << "Unimplemented DeleteSync.";
267 }
268 void MojoGLES2Impl::DeleteShader(GLuint shader) {
269 MojoGLES2MakeCurrent(context_);
270 glDeleteShader(shader);
271 }
272 void MojoGLES2Impl::DeleteTextures(GLsizei n, const GLuint* textures) {
273 MojoGLES2MakeCurrent(context_);
274 glDeleteTextures(n, textures);
275 }
276 void MojoGLES2Impl::DeleteTransformFeedbacks(GLsizei n, const GLuint* ids) {
277 NOTREACHED() << "Unimplemented DeleteTransformFeedbacks.";
278 }
279 void MojoGLES2Impl::DepthFunc(GLenum func) {
280 MojoGLES2MakeCurrent(context_);
281 glDepthFunc(func);
282 }
283 void MojoGLES2Impl::DepthMask(GLboolean flag) {
284 MojoGLES2MakeCurrent(context_);
285 glDepthMask(flag);
286 }
287 void MojoGLES2Impl::DepthRangef(GLclampf zNear, GLclampf zFar) {
288 MojoGLES2MakeCurrent(context_);
289 glDepthRangef(zNear, zFar);
290 }
291 void MojoGLES2Impl::DetachShader(GLuint program, GLuint shader) {
292 MojoGLES2MakeCurrent(context_);
293 glDetachShader(program, shader);
294 }
295 void MojoGLES2Impl::Disable(GLenum cap) {
296 MojoGLES2MakeCurrent(context_);
297 glDisable(cap);
298 }
299 void MojoGLES2Impl::DisableVertexAttribArray(GLuint index) {
300 MojoGLES2MakeCurrent(context_);
301 glDisableVertexAttribArray(index);
302 }
303 void MojoGLES2Impl::DrawArrays(GLenum mode, GLint first, GLsizei count) {
304 MojoGLES2MakeCurrent(context_);
305 glDrawArrays(mode, first, count);
306 }
307 void MojoGLES2Impl::DrawElements(GLenum mode,
308 GLsizei count,
309 GLenum type,
310 const void* indices) {
311 MojoGLES2MakeCurrent(context_);
312 glDrawElements(mode, count, type, indices);
313 }
314 void MojoGLES2Impl::DrawRangeElements(GLenum mode,
315 GLuint start,
316 GLuint end,
317 GLsizei count,
318 GLenum type,
319 const void* indices) {
320 NOTREACHED() << "Unimplemented DrawRangeElements.";
321 }
322 void MojoGLES2Impl::Enable(GLenum cap) {
323 MojoGLES2MakeCurrent(context_);
324 glEnable(cap);
325 }
326 void MojoGLES2Impl::EnableVertexAttribArray(GLuint index) {
327 MojoGLES2MakeCurrent(context_);
328 glEnableVertexAttribArray(index);
329 }
330 GLsync MojoGLES2Impl::FenceSync(GLenum condition, GLbitfield flags) {
331 NOTREACHED() << "Unimplemented FenceSync.";
332 return 0;
333 }
334 void MojoGLES2Impl::Finish() {
335 MojoGLES2MakeCurrent(context_);
336 glFinish();
337 }
338 void MojoGLES2Impl::Flush() {
339 MojoGLES2MakeCurrent(context_);
340 glFlush();
341 }
342 void MojoGLES2Impl::FramebufferRenderbuffer(GLenum target,
343 GLenum attachment,
344 GLenum renderbuffertarget,
345 GLuint renderbuffer) {
346 MojoGLES2MakeCurrent(context_);
347 glFramebufferRenderbuffer(target, attachment, renderbuffertarget,
348 renderbuffer);
349 }
350 void MojoGLES2Impl::FramebufferTexture2D(GLenum target,
351 GLenum attachment,
352 GLenum textarget,
353 GLuint texture,
354 GLint level) {
355 MojoGLES2MakeCurrent(context_);
356 glFramebufferTexture2D(target, attachment, textarget, texture, level);
357 }
358 void MojoGLES2Impl::FramebufferTextureLayer(GLenum target,
359 GLenum attachment,
360 GLuint texture,
361 GLint level,
362 GLint layer) {
363 NOTREACHED() << "Unimplemented FramebufferTextureLayer.";
364 }
365 void MojoGLES2Impl::FrontFace(GLenum mode) {
366 MojoGLES2MakeCurrent(context_);
367 glFrontFace(mode);
368 }
369 void MojoGLES2Impl::GenBuffers(GLsizei n, GLuint* buffers) {
370 MojoGLES2MakeCurrent(context_);
371 glGenBuffers(n, buffers);
372 }
373 void MojoGLES2Impl::GenerateMipmap(GLenum target) {
374 MojoGLES2MakeCurrent(context_);
375 glGenerateMipmap(target);
376 }
377 void MojoGLES2Impl::GenFramebuffers(GLsizei n, GLuint* framebuffers) {
378 MojoGLES2MakeCurrent(context_);
379 glGenFramebuffers(n, framebuffers);
380 }
381 void MojoGLES2Impl::GenRenderbuffers(GLsizei n, GLuint* renderbuffers) {
382 MojoGLES2MakeCurrent(context_);
383 glGenRenderbuffers(n, renderbuffers);
384 }
385 void MojoGLES2Impl::GenSamplers(GLsizei n, GLuint* samplers) {
386 NOTREACHED() << "Unimplemented GenSamplers.";
387 }
388 void MojoGLES2Impl::GenTextures(GLsizei n, GLuint* textures) {
389 MojoGLES2MakeCurrent(context_);
390 glGenTextures(n, textures);
391 }
392 void MojoGLES2Impl::GenTransformFeedbacks(GLsizei n, GLuint* ids) {
393 NOTREACHED() << "Unimplemented GenTransformFeedbacks.";
394 }
395 void MojoGLES2Impl::GetActiveAttrib(GLuint program,
396 GLuint index,
397 GLsizei bufsize,
398 GLsizei* length,
399 GLint* size,
400 GLenum* type,
401 char* name) {
402 MojoGLES2MakeCurrent(context_);
403 glGetActiveAttrib(program, index, bufsize, length, size, type, name);
404 }
405 void MojoGLES2Impl::GetActiveUniform(GLuint program,
406 GLuint index,
407 GLsizei bufsize,
408 GLsizei* length,
409 GLint* size,
410 GLenum* type,
411 char* name) {
412 MojoGLES2MakeCurrent(context_);
413 glGetActiveUniform(program, index, bufsize, length, size, type, name);
414 }
415 void MojoGLES2Impl::GetActiveUniformBlockiv(GLuint program,
416 GLuint index,
417 GLenum pname,
418 GLint* params) {
419 NOTREACHED() << "Unimplemented GetActiveUniformBlockiv.";
420 }
421 void MojoGLES2Impl::GetActiveUniformBlockName(GLuint program,
422 GLuint index,
423 GLsizei bufsize,
424 GLsizei* length,
425 char* name) {
426 NOTREACHED() << "Unimplemented GetActiveUniformBlockName.";
427 }
428 void MojoGLES2Impl::GetActiveUniformsiv(GLuint program,
429 GLsizei count,
430 const GLuint* indices,
431 GLenum pname,
432 GLint* params) {
433 NOTREACHED() << "Unimplemented GetActiveUniformsiv.";
434 }
435 void MojoGLES2Impl::GetAttachedShaders(GLuint program,
436 GLsizei maxcount,
437 GLsizei* count,
438 GLuint* shaders) {
439 MojoGLES2MakeCurrent(context_);
440 glGetAttachedShaders(program, maxcount, count, shaders);
441 }
442 GLint MojoGLES2Impl::GetAttribLocation(GLuint program, const char* name) {
443 MojoGLES2MakeCurrent(context_);
444 return glGetAttribLocation(program, name);
445 }
446 void MojoGLES2Impl::GetBooleanv(GLenum pname, GLboolean* params) {
447 MojoGLES2MakeCurrent(context_);
448 glGetBooleanv(pname, params);
449 }
450 void MojoGLES2Impl::GetBufferParameteriv(GLenum target,
451 GLenum pname,
452 GLint* params) {
453 MojoGLES2MakeCurrent(context_);
454 glGetBufferParameteriv(target, pname, params);
455 }
456 GLenum MojoGLES2Impl::GetError() {
457 MojoGLES2MakeCurrent(context_);
458 return glGetError();
459 }
460 void MojoGLES2Impl::GetFloatv(GLenum pname, GLfloat* params) {
461 MojoGLES2MakeCurrent(context_);
462 glGetFloatv(pname, params);
463 }
464 GLint MojoGLES2Impl::GetFragDataLocation(GLuint program, const char* name) {
465 NOTREACHED() << "Unimplemented GetFragDataLocation.";
466 return 0;
467 }
468 void MojoGLES2Impl::GetFramebufferAttachmentParameteriv(GLenum target,
469 GLenum attachment,
470 GLenum pname,
471 GLint* params) {
472 MojoGLES2MakeCurrent(context_);
473 glGetFramebufferAttachmentParameteriv(target, attachment, pname, params);
474 }
475 void MojoGLES2Impl::GetIntegerv(GLenum pname, GLint* params) {
476 MojoGLES2MakeCurrent(context_);
477 glGetIntegerv(pname, params);
478 }
479 void MojoGLES2Impl::GetInternalformativ(GLenum target,
480 GLenum format,
481 GLenum pname,
482 GLsizei bufSize,
483 GLint* params) {
484 NOTREACHED() << "Unimplemented GetInternalformativ.";
485 }
486 void MojoGLES2Impl::GetProgramiv(GLuint program, GLenum pname, GLint* params) {
487 MojoGLES2MakeCurrent(context_);
488 glGetProgramiv(program, pname, params);
489 }
490 void MojoGLES2Impl::GetProgramInfoLog(GLuint program,
491 GLsizei bufsize,
492 GLsizei* length,
493 char* infolog) {
494 MojoGLES2MakeCurrent(context_);
495 glGetProgramInfoLog(program, bufsize, length, infolog);
496 }
497 void MojoGLES2Impl::GetRenderbufferParameteriv(GLenum target,
498 GLenum pname,
499 GLint* params) {
500 MojoGLES2MakeCurrent(context_);
501 glGetRenderbufferParameteriv(target, pname, params);
502 }
503 void MojoGLES2Impl::GetSamplerParameterfv(GLuint sampler,
504 GLenum pname,
505 GLfloat* params) {
506 NOTREACHED() << "Unimplemented GetSamplerParameterfv.";
507 }
508 void MojoGLES2Impl::GetSamplerParameteriv(GLuint sampler,
509 GLenum pname,
510 GLint* params) {
511 NOTREACHED() << "Unimplemented GetSamplerParameteriv.";
512 }
513 void MojoGLES2Impl::GetShaderiv(GLuint shader, GLenum pname, GLint* params) {
514 MojoGLES2MakeCurrent(context_);
515 glGetShaderiv(shader, pname, params);
516 }
517 void MojoGLES2Impl::GetShaderInfoLog(GLuint shader,
518 GLsizei bufsize,
519 GLsizei* length,
520 char* infolog) {
521 MojoGLES2MakeCurrent(context_);
522 glGetShaderInfoLog(shader, bufsize, length, infolog);
523 }
524 void MojoGLES2Impl::GetShaderPrecisionFormat(GLenum shadertype,
525 GLenum precisiontype,
526 GLint* range,
527 GLint* precision) {
528 MojoGLES2MakeCurrent(context_);
529 glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
530 }
531 void MojoGLES2Impl::GetShaderSource(GLuint shader,
532 GLsizei bufsize,
533 GLsizei* length,
534 char* source) {
535 MojoGLES2MakeCurrent(context_);
536 glGetShaderSource(shader, bufsize, length, source);
537 }
538 const GLubyte* MojoGLES2Impl::GetString(GLenum name) {
539 MojoGLES2MakeCurrent(context_);
540 return glGetString(name);
541 }
542 void MojoGLES2Impl::GetSynciv(GLsync sync,
543 GLenum pname,
544 GLsizei bufsize,
545 GLsizei* length,
546 GLint* values) {
547 NOTREACHED() << "Unimplemented GetSynciv.";
548 }
549 void MojoGLES2Impl::GetTexParameterfv(GLenum target,
550 GLenum pname,
551 GLfloat* params) {
552 MojoGLES2MakeCurrent(context_);
553 glGetTexParameterfv(target, pname, params);
554 }
555 void MojoGLES2Impl::GetTexParameteriv(GLenum target,
556 GLenum pname,
557 GLint* params) {
558 MojoGLES2MakeCurrent(context_);
559 glGetTexParameteriv(target, pname, params);
560 }
561 void MojoGLES2Impl::GetTransformFeedbackVarying(GLuint program,
562 GLuint index,
563 GLsizei bufsize,
564 GLsizei* length,
565 GLsizei* size,
566 GLenum* type,
567 char* name) {
568 NOTREACHED() << "Unimplemented GetTransformFeedbackVarying.";
569 }
570 GLuint MojoGLES2Impl::GetUniformBlockIndex(GLuint program, const char* name) {
571 NOTREACHED() << "Unimplemented GetUniformBlockIndex.";
572 return 0;
573 }
574 void MojoGLES2Impl::GetUniformfv(GLuint program,
575 GLint location,
576 GLfloat* params) {
577 MojoGLES2MakeCurrent(context_);
578 glGetUniformfv(program, location, params);
579 }
580 void MojoGLES2Impl::GetUniformiv(GLuint program,
581 GLint location,
582 GLint* params) {
583 MojoGLES2MakeCurrent(context_);
584 glGetUniformiv(program, location, params);
585 }
586 void MojoGLES2Impl::GetUniformIndices(GLuint program,
587 GLsizei count,
588 const char* const* names,
589 GLuint* indices) {
590 NOTREACHED() << "Unimplemented GetUniformIndices.";
591 }
592 GLint MojoGLES2Impl::GetUniformLocation(GLuint program, const char* name) {
593 MojoGLES2MakeCurrent(context_);
594 return glGetUniformLocation(program, name);
595 }
596 void MojoGLES2Impl::GetVertexAttribfv(GLuint index,
597 GLenum pname,
598 GLfloat* params) {
599 MojoGLES2MakeCurrent(context_);
600 glGetVertexAttribfv(index, pname, params);
601 }
602 void MojoGLES2Impl::GetVertexAttribiv(GLuint index,
603 GLenum pname,
604 GLint* params) {
605 MojoGLES2MakeCurrent(context_);
606 glGetVertexAttribiv(index, pname, params);
607 }
608 void MojoGLES2Impl::GetVertexAttribPointerv(GLuint index,
609 GLenum pname,
610 void** pointer) {
611 MojoGLES2MakeCurrent(context_);
612 glGetVertexAttribPointerv(index, pname, pointer);
613 }
614 void MojoGLES2Impl::Hint(GLenum target, GLenum mode) {
615 MojoGLES2MakeCurrent(context_);
616 glHint(target, mode);
617 }
618 void MojoGLES2Impl::InvalidateFramebuffer(GLenum target,
619 GLsizei count,
620 const GLenum* attachments) {
621 NOTREACHED() << "Unimplemented InvalidateFramebuffer.";
622 }
623 void MojoGLES2Impl::InvalidateSubFramebuffer(GLenum target,
624 GLsizei count,
625 const GLenum* attachments,
626 GLint x,
627 GLint y,
628 GLsizei width,
629 GLsizei height) {
630 NOTREACHED() << "Unimplemented InvalidateSubFramebuffer.";
631 }
632 GLboolean MojoGLES2Impl::IsBuffer(GLuint buffer) {
633 MojoGLES2MakeCurrent(context_);
634 return glIsBuffer(buffer);
635 }
636 GLboolean MojoGLES2Impl::IsEnabled(GLenum cap) {
637 MojoGLES2MakeCurrent(context_);
638 return glIsEnabled(cap);
639 }
640 GLboolean MojoGLES2Impl::IsFramebuffer(GLuint framebuffer) {
641 MojoGLES2MakeCurrent(context_);
642 return glIsFramebuffer(framebuffer);
643 }
644 GLboolean MojoGLES2Impl::IsProgram(GLuint program) {
645 MojoGLES2MakeCurrent(context_);
646 return glIsProgram(program);
647 }
648 GLboolean MojoGLES2Impl::IsRenderbuffer(GLuint renderbuffer) {
649 MojoGLES2MakeCurrent(context_);
650 return glIsRenderbuffer(renderbuffer);
651 }
652 GLboolean MojoGLES2Impl::IsSampler(GLuint sampler) {
653 NOTREACHED() << "Unimplemented IsSampler.";
654 return 0;
655 }
656 GLboolean MojoGLES2Impl::IsShader(GLuint shader) {
657 MojoGLES2MakeCurrent(context_);
658 return glIsShader(shader);
659 }
660 GLboolean MojoGLES2Impl::IsSync(GLsync sync) {
661 NOTREACHED() << "Unimplemented IsSync.";
662 return 0;
663 }
664 GLboolean MojoGLES2Impl::IsTexture(GLuint texture) {
665 MojoGLES2MakeCurrent(context_);
666 return glIsTexture(texture);
667 }
668 GLboolean MojoGLES2Impl::IsTransformFeedback(GLuint transformfeedback) {
669 NOTREACHED() << "Unimplemented IsTransformFeedback.";
670 return 0;
671 }
672 void MojoGLES2Impl::LineWidth(GLfloat width) {
673 MojoGLES2MakeCurrent(context_);
674 glLineWidth(width);
675 }
676 void MojoGLES2Impl::LinkProgram(GLuint program) {
677 MojoGLES2MakeCurrent(context_);
678 glLinkProgram(program);
679 }
680 void MojoGLES2Impl::PauseTransformFeedback() {
681 NOTREACHED() << "Unimplemented PauseTransformFeedback.";
682 }
683 void MojoGLES2Impl::PixelStorei(GLenum pname, GLint param) {
684 MojoGLES2MakeCurrent(context_);
685 glPixelStorei(pname, param);
686 }
687 void MojoGLES2Impl::PolygonOffset(GLfloat factor, GLfloat units) {
688 MojoGLES2MakeCurrent(context_);
689 glPolygonOffset(factor, units);
690 }
691 void MojoGLES2Impl::ReadBuffer(GLenum src) {
692 NOTREACHED() << "Unimplemented ReadBuffer.";
693 }
694 void MojoGLES2Impl::ReadPixels(GLint x,
695 GLint y,
696 GLsizei width,
697 GLsizei height,
698 GLenum format,
699 GLenum type,
700 void* pixels) {
701 MojoGLES2MakeCurrent(context_);
702 glReadPixels(x, y, width, height, format, type, pixels);
703 }
704 void MojoGLES2Impl::ReleaseShaderCompiler() {
705 MojoGLES2MakeCurrent(context_);
706 glReleaseShaderCompiler();
707 }
708 void MojoGLES2Impl::RenderbufferStorage(GLenum target,
709 GLenum internalformat,
710 GLsizei width,
711 GLsizei height) {
712 MojoGLES2MakeCurrent(context_);
713 glRenderbufferStorage(target, internalformat, width, height);
714 }
715 void MojoGLES2Impl::ResumeTransformFeedback() {
716 NOTREACHED() << "Unimplemented ResumeTransformFeedback.";
717 }
718 void MojoGLES2Impl::SampleCoverage(GLclampf value, GLboolean invert) {
719 MojoGLES2MakeCurrent(context_);
720 glSampleCoverage(value, invert);
721 }
722 void MojoGLES2Impl::SamplerParameterf(GLuint sampler,
723 GLenum pname,
724 GLfloat param) {
725 NOTREACHED() << "Unimplemented SamplerParameterf.";
726 }
727 void MojoGLES2Impl::SamplerParameterfv(GLuint sampler,
728 GLenum pname,
729 const GLfloat* params) {
730 NOTREACHED() << "Unimplemented SamplerParameterfv.";
731 }
732 void MojoGLES2Impl::SamplerParameteri(GLuint sampler,
733 GLenum pname,
734 GLint param) {
735 NOTREACHED() << "Unimplemented SamplerParameteri.";
736 }
737 void MojoGLES2Impl::SamplerParameteriv(GLuint sampler,
738 GLenum pname,
739 const GLint* params) {
740 NOTREACHED() << "Unimplemented SamplerParameteriv.";
741 }
742 void MojoGLES2Impl::Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
743 MojoGLES2MakeCurrent(context_);
744 glScissor(x, y, width, height);
745 }
746 void MojoGLES2Impl::ShaderBinary(GLsizei n,
747 const GLuint* shaders,
748 GLenum binaryformat,
749 const void* binary,
750 GLsizei length) {
751 MojoGLES2MakeCurrent(context_);
752 glShaderBinary(n, shaders, binaryformat, binary, length);
753 }
754 void MojoGLES2Impl::ShaderSource(GLuint shader,
755 GLsizei count,
756 const GLchar* const* str,
757 const GLint* length) {
758 MojoGLES2MakeCurrent(context_);
759 glShaderSource(shader, count, str, length);
760 }
761 void MojoGLES2Impl::ShallowFinishCHROMIUM() {
762 NOTREACHED() << "Unimplemented ShallowFinishCHROMIUM.";
763 }
764 void MojoGLES2Impl::ShallowFlushCHROMIUM() {
765 return static_cast<gpu::gles2::GLES2Interface*>(
766 MojoGLES2GetGLES2Interface(context_))->ShallowFlushCHROMIUM();
767 }
768 void MojoGLES2Impl::OrderingBarrierCHROMIUM() {
769 NOTREACHED() << "Unimplemented OrderingBarrierCHROMIUM.";
770 }
771 void MojoGLES2Impl::StencilFunc(GLenum func, GLint ref, GLuint mask) {
772 MojoGLES2MakeCurrent(context_);
773 glStencilFunc(func, ref, mask);
774 }
775 void MojoGLES2Impl::StencilFuncSeparate(GLenum face,
776 GLenum func,
777 GLint ref,
778 GLuint mask) {
779 MojoGLES2MakeCurrent(context_);
780 glStencilFuncSeparate(face, func, ref, mask);
781 }
782 void MojoGLES2Impl::StencilMask(GLuint mask) {
783 MojoGLES2MakeCurrent(context_);
784 glStencilMask(mask);
785 }
786 void MojoGLES2Impl::StencilMaskSeparate(GLenum face, GLuint mask) {
787 MojoGLES2MakeCurrent(context_);
788 glStencilMaskSeparate(face, mask);
789 }
790 void MojoGLES2Impl::StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
791 MojoGLES2MakeCurrent(context_);
792 glStencilOp(fail, zfail, zpass);
793 }
794 void MojoGLES2Impl::StencilOpSeparate(GLenum face,
795 GLenum fail,
796 GLenum zfail,
797 GLenum zpass) {
798 MojoGLES2MakeCurrent(context_);
799 glStencilOpSeparate(face, fail, zfail, zpass);
800 }
801 void MojoGLES2Impl::TexImage2D(GLenum target,
802 GLint level,
803 GLint internalformat,
804 GLsizei width,
805 GLsizei height,
806 GLint border,
807 GLenum format,
808 GLenum type,
809 const void* pixels) {
810 MojoGLES2MakeCurrent(context_);
811 glTexImage2D(target, level, internalformat, width, height, border, format,
812 type, pixels);
813 }
814 void MojoGLES2Impl::TexImage3D(GLenum target,
815 GLint level,
816 GLint internalformat,
817 GLsizei width,
818 GLsizei height,
819 GLsizei depth,
820 GLint border,
821 GLenum format,
822 GLenum type,
823 const void* pixels) {
824 NOTREACHED() << "Unimplemented TexImage3D.";
825 }
826 void MojoGLES2Impl::TexParameterf(GLenum target, GLenum pname, GLfloat param) {
827 MojoGLES2MakeCurrent(context_);
828 glTexParameterf(target, pname, param);
829 }
830 void MojoGLES2Impl::TexParameterfv(GLenum target,
831 GLenum pname,
832 const GLfloat* params) {
833 MojoGLES2MakeCurrent(context_);
834 glTexParameterfv(target, pname, params);
835 }
836 void MojoGLES2Impl::TexParameteri(GLenum target, GLenum pname, GLint param) {
837 MojoGLES2MakeCurrent(context_);
838 glTexParameteri(target, pname, param);
839 }
840 void MojoGLES2Impl::TexParameteriv(GLenum target,
841 GLenum pname,
842 const GLint* params) {
843 MojoGLES2MakeCurrent(context_);
844 glTexParameteriv(target, pname, params);
845 }
846 void MojoGLES2Impl::TexStorage3D(GLenum target,
847 GLsizei levels,
848 GLenum internalFormat,
849 GLsizei width,
850 GLsizei height,
851 GLsizei depth) {
852 NOTREACHED() << "Unimplemented TexStorage3D.";
853 }
854 void MojoGLES2Impl::TexSubImage2D(GLenum target,
855 GLint level,
856 GLint xoffset,
857 GLint yoffset,
858 GLsizei width,
859 GLsizei height,
860 GLenum format,
861 GLenum type,
862 const void* pixels) {
863 MojoGLES2MakeCurrent(context_);
864 glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type,
865 pixels);
866 }
867 void MojoGLES2Impl::TexSubImage3D(GLenum target,
868 GLint level,
869 GLint xoffset,
870 GLint yoffset,
871 GLint zoffset,
872 GLsizei width,
873 GLsizei height,
874 GLsizei depth,
875 GLenum format,
876 GLenum type,
877 const void* pixels) {
878 NOTREACHED() << "Unimplemented TexSubImage3D.";
879 }
880 void MojoGLES2Impl::TransformFeedbackVaryings(GLuint program,
881 GLsizei count,
882 const char* const* varyings,
883 GLenum buffermode) {
884 NOTREACHED() << "Unimplemented TransformFeedbackVaryings.";
885 }
886 void MojoGLES2Impl::Uniform1f(GLint location, GLfloat x) {
887 MojoGLES2MakeCurrent(context_);
888 glUniform1f(location, x);
889 }
890 void MojoGLES2Impl::Uniform1fv(GLint location,
891 GLsizei count,
892 const GLfloat* v) {
893 MojoGLES2MakeCurrent(context_);
894 glUniform1fv(location, count, v);
895 }
896 void MojoGLES2Impl::Uniform1i(GLint location, GLint x) {
897 MojoGLES2MakeCurrent(context_);
898 glUniform1i(location, x);
899 }
900 void MojoGLES2Impl::Uniform1iv(GLint location, GLsizei count, const GLint* v) {
901 MojoGLES2MakeCurrent(context_);
902 glUniform1iv(location, count, v);
903 }
904 void MojoGLES2Impl::Uniform1ui(GLint location, GLuint x) {
905 NOTREACHED() << "Unimplemented Uniform1ui.";
906 }
907 void MojoGLES2Impl::Uniform1uiv(GLint location,
908 GLsizei count,
909 const GLuint* v) {
910 NOTREACHED() << "Unimplemented Uniform1uiv.";
911 }
912 void MojoGLES2Impl::Uniform2f(GLint location, GLfloat x, GLfloat y) {
913 MojoGLES2MakeCurrent(context_);
914 glUniform2f(location, x, y);
915 }
916 void MojoGLES2Impl::Uniform2fv(GLint location,
917 GLsizei count,
918 const GLfloat* v) {
919 MojoGLES2MakeCurrent(context_);
920 glUniform2fv(location, count, v);
921 }
922 void MojoGLES2Impl::Uniform2i(GLint location, GLint x, GLint y) {
923 MojoGLES2MakeCurrent(context_);
924 glUniform2i(location, x, y);
925 }
926 void MojoGLES2Impl::Uniform2iv(GLint location, GLsizei count, const GLint* v) {
927 MojoGLES2MakeCurrent(context_);
928 glUniform2iv(location, count, v);
929 }
930 void MojoGLES2Impl::Uniform2ui(GLint location, GLuint x, GLuint y) {
931 NOTREACHED() << "Unimplemented Uniform2ui.";
932 }
933 void MojoGLES2Impl::Uniform2uiv(GLint location,
934 GLsizei count,
935 const GLuint* v) {
936 NOTREACHED() << "Unimplemented Uniform2uiv.";
937 }
938 void MojoGLES2Impl::Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
939 MojoGLES2MakeCurrent(context_);
940 glUniform3f(location, x, y, z);
941 }
942 void MojoGLES2Impl::Uniform3fv(GLint location,
943 GLsizei count,
944 const GLfloat* v) {
945 MojoGLES2MakeCurrent(context_);
946 glUniform3fv(location, count, v);
947 }
948 void MojoGLES2Impl::Uniform3i(GLint location, GLint x, GLint y, GLint z) {
949 MojoGLES2MakeCurrent(context_);
950 glUniform3i(location, x, y, z);
951 }
952 void MojoGLES2Impl::Uniform3iv(GLint location, GLsizei count, const GLint* v) {
953 MojoGLES2MakeCurrent(context_);
954 glUniform3iv(location, count, v);
955 }
956 void MojoGLES2Impl::Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) {
957 NOTREACHED() << "Unimplemented Uniform3ui.";
958 }
959 void MojoGLES2Impl::Uniform3uiv(GLint location,
960 GLsizei count,
961 const GLuint* v) {
962 NOTREACHED() << "Unimplemented Uniform3uiv.";
963 }
964 void MojoGLES2Impl::Uniform4f(GLint location,
965 GLfloat x,
966 GLfloat y,
967 GLfloat z,
968 GLfloat w) {
969 MojoGLES2MakeCurrent(context_);
970 glUniform4f(location, x, y, z, w);
971 }
972 void MojoGLES2Impl::Uniform4fv(GLint location,
973 GLsizei count,
974 const GLfloat* v) {
975 MojoGLES2MakeCurrent(context_);
976 glUniform4fv(location, count, v);
977 }
978 void MojoGLES2Impl::Uniform4i(GLint location,
979 GLint x,
980 GLint y,
981 GLint z,
982 GLint w) {
983 MojoGLES2MakeCurrent(context_);
984 glUniform4i(location, x, y, z, w);
985 }
986 void MojoGLES2Impl::Uniform4iv(GLint location, GLsizei count, const GLint* v) {
987 MojoGLES2MakeCurrent(context_);
988 glUniform4iv(location, count, v);
989 }
990 void MojoGLES2Impl::Uniform4ui(GLint location,
991 GLuint x,
992 GLuint y,
993 GLuint z,
994 GLuint w) {
995 NOTREACHED() << "Unimplemented Uniform4ui.";
996 }
997 void MojoGLES2Impl::Uniform4uiv(GLint location,
998 GLsizei count,
999 const GLuint* v) {
1000 NOTREACHED() << "Unimplemented Uniform4uiv.";
1001 }
1002 void MojoGLES2Impl::UniformBlockBinding(GLuint program,
1003 GLuint index,
1004 GLuint binding) {
1005 NOTREACHED() << "Unimplemented UniformBlockBinding.";
1006 }
1007 void MojoGLES2Impl::UniformMatrix2fv(GLint location,
1008 GLsizei count,
1009 GLboolean transpose,
1010 const GLfloat* value) {
1011 MojoGLES2MakeCurrent(context_);
1012 glUniformMatrix2fv(location, count, transpose, value);
1013 }
1014 void MojoGLES2Impl::UniformMatrix2x3fv(GLint location,
1015 GLsizei count,
1016 GLboolean transpose,
1017 const GLfloat* value) {
1018 NOTREACHED() << "Unimplemented UniformMatrix2x3fv.";
1019 }
1020 void MojoGLES2Impl::UniformMatrix2x4fv(GLint location,
1021 GLsizei count,
1022 GLboolean transpose,
1023 const GLfloat* value) {
1024 NOTREACHED() << "Unimplemented UniformMatrix2x4fv.";
1025 }
1026 void MojoGLES2Impl::UniformMatrix3fv(GLint location,
1027 GLsizei count,
1028 GLboolean transpose,
1029 const GLfloat* value) {
1030 MojoGLES2MakeCurrent(context_);
1031 glUniformMatrix3fv(location, count, transpose, value);
1032 }
1033 void MojoGLES2Impl::UniformMatrix3x2fv(GLint location,
1034 GLsizei count,
1035 GLboolean transpose,
1036 const GLfloat* value) {
1037 NOTREACHED() << "Unimplemented UniformMatrix3x2fv.";
1038 }
1039 void MojoGLES2Impl::UniformMatrix3x4fv(GLint location,
1040 GLsizei count,
1041 GLboolean transpose,
1042 const GLfloat* value) {
1043 NOTREACHED() << "Unimplemented UniformMatrix3x4fv.";
1044 }
1045 void MojoGLES2Impl::UniformMatrix4fv(GLint location,
1046 GLsizei count,
1047 GLboolean transpose,
1048 const GLfloat* value) {
1049 MojoGLES2MakeCurrent(context_);
1050 glUniformMatrix4fv(location, count, transpose, value);
1051 }
1052 void MojoGLES2Impl::UniformMatrix4x2fv(GLint location,
1053 GLsizei count,
1054 GLboolean transpose,
1055 const GLfloat* value) {
1056 NOTREACHED() << "Unimplemented UniformMatrix4x2fv.";
1057 }
1058 void MojoGLES2Impl::UniformMatrix4x3fv(GLint location,
1059 GLsizei count,
1060 GLboolean transpose,
1061 const GLfloat* value) {
1062 NOTREACHED() << "Unimplemented UniformMatrix4x3fv.";
1063 }
1064 void MojoGLES2Impl::UseProgram(GLuint program) {
1065 MojoGLES2MakeCurrent(context_);
1066 glUseProgram(program);
1067 }
1068 void MojoGLES2Impl::ValidateProgram(GLuint program) {
1069 MojoGLES2MakeCurrent(context_);
1070 glValidateProgram(program);
1071 }
1072 void MojoGLES2Impl::VertexAttrib1f(GLuint indx, GLfloat x) {
1073 MojoGLES2MakeCurrent(context_);
1074 glVertexAttrib1f(indx, x);
1075 }
1076 void MojoGLES2Impl::VertexAttrib1fv(GLuint indx, const GLfloat* values) {
1077 MojoGLES2MakeCurrent(context_);
1078 glVertexAttrib1fv(indx, values);
1079 }
1080 void MojoGLES2Impl::VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
1081 MojoGLES2MakeCurrent(context_);
1082 glVertexAttrib2f(indx, x, y);
1083 }
1084 void MojoGLES2Impl::VertexAttrib2fv(GLuint indx, const GLfloat* values) {
1085 MojoGLES2MakeCurrent(context_);
1086 glVertexAttrib2fv(indx, values);
1087 }
1088 void MojoGLES2Impl::VertexAttrib3f(GLuint indx,
1089 GLfloat x,
1090 GLfloat y,
1091 GLfloat z) {
1092 MojoGLES2MakeCurrent(context_);
1093 glVertexAttrib3f(indx, x, y, z);
1094 }
1095 void MojoGLES2Impl::VertexAttrib3fv(GLuint indx, const GLfloat* values) {
1096 MojoGLES2MakeCurrent(context_);
1097 glVertexAttrib3fv(indx, values);
1098 }
1099 void MojoGLES2Impl::VertexAttrib4f(GLuint indx,
1100 GLfloat x,
1101 GLfloat y,
1102 GLfloat z,
1103 GLfloat w) {
1104 MojoGLES2MakeCurrent(context_);
1105 glVertexAttrib4f(indx, x, y, z, w);
1106 }
1107 void MojoGLES2Impl::VertexAttrib4fv(GLuint indx, const GLfloat* values) {
1108 MojoGLES2MakeCurrent(context_);
1109 glVertexAttrib4fv(indx, values);
1110 }
1111 void MojoGLES2Impl::VertexAttribI4i(GLuint indx,
1112 GLint x,
1113 GLint y,
1114 GLint z,
1115 GLint w) {
1116 NOTREACHED() << "Unimplemented VertexAttribI4i.";
1117 }
1118 void MojoGLES2Impl::VertexAttribI4iv(GLuint indx, const GLint* values) {
1119 NOTREACHED() << "Unimplemented VertexAttribI4iv.";
1120 }
1121 void MojoGLES2Impl::VertexAttribI4ui(GLuint indx,
1122 GLuint x,
1123 GLuint y,
1124 GLuint z,
1125 GLuint w) {
1126 NOTREACHED() << "Unimplemented VertexAttribI4ui.";
1127 }
1128 void MojoGLES2Impl::VertexAttribI4uiv(GLuint indx, const GLuint* values) {
1129 NOTREACHED() << "Unimplemented VertexAttribI4uiv.";
1130 }
1131 void MojoGLES2Impl::VertexAttribIPointer(GLuint indx,
1132 GLint size,
1133 GLenum type,
1134 GLsizei stride,
1135 const void* ptr) {
1136 NOTREACHED() << "Unimplemented VertexAttribIPointer.";
1137 }
1138 void MojoGLES2Impl::VertexAttribPointer(GLuint indx,
1139 GLint size,
1140 GLenum type,
1141 GLboolean normalized,
1142 GLsizei stride,
1143 const void* ptr) {
1144 MojoGLES2MakeCurrent(context_);
1145 glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
1146 }
1147 void MojoGLES2Impl::Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
1148 MojoGLES2MakeCurrent(context_);
1149 glViewport(x, y, width, height);
1150 }
1151 void MojoGLES2Impl::WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
1152 NOTREACHED() << "Unimplemented WaitSync.";
1153 }
1154 void MojoGLES2Impl::BlitFramebufferCHROMIUM(GLint srcX0,
1155 GLint srcY0,
1156 GLint srcX1,
1157 GLint srcY1,
1158 GLint dstX0,
1159 GLint dstY0,
1160 GLint dstX1,
1161 GLint dstY1,
1162 GLbitfield mask,
1163 GLenum filter) {
1164 NOTREACHED() << "Unimplemented BlitFramebufferCHROMIUM.";
1165 }
1166 void MojoGLES2Impl::RenderbufferStorageMultisampleCHROMIUM(
1167 GLenum target,
1168 GLsizei samples,
1169 GLenum internalformat,
1170 GLsizei width,
1171 GLsizei height) {
1172 NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleCHROMIUM.";
1173 }
1174 void MojoGLES2Impl::RenderbufferStorageMultisampleEXT(GLenum target,
1175 GLsizei samples,
1176 GLenum internalformat,
1177 GLsizei width,
1178 GLsizei height) {
1179 NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleEXT.";
1180 }
1181 void MojoGLES2Impl::FramebufferTexture2DMultisampleEXT(GLenum target,
1182 GLenum attachment,
1183 GLenum textarget,
1184 GLuint texture,
1185 GLint level,
1186 GLsizei samples) {
1187 NOTREACHED() << "Unimplemented FramebufferTexture2DMultisampleEXT.";
1188 }
1189 void MojoGLES2Impl::TexStorage2DEXT(GLenum target,
1190 GLsizei levels,
1191 GLenum internalFormat,
1192 GLsizei width,
1193 GLsizei height) {
1194 NOTREACHED() << "Unimplemented TexStorage2DEXT.";
1195 }
1196 void MojoGLES2Impl::GenQueriesEXT(GLsizei n, GLuint* queries) {
1197 return static_cast<gpu::gles2::GLES2Interface*>(
1198 MojoGLES2GetGLES2Interface(context_))->GenQueriesEXT(n, queries);
1199 }
1200 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n, const GLuint* queries) {
1201 return static_cast<gpu::gles2::GLES2Interface*>(
1202 MojoGLES2GetGLES2Interface(context_))
1203 ->DeleteQueriesEXT(n, queries);
1204 }
1205 GLboolean MojoGLES2Impl::IsQueryEXT(GLuint id) {
1206 NOTREACHED() << "Unimplemented IsQueryEXT.";
1207 return 0;
1208 }
1209 void MojoGLES2Impl::BeginQueryEXT(GLenum target, GLuint id) {
1210 return static_cast<gpu::gles2::GLES2Interface*>(
1211 MojoGLES2GetGLES2Interface(context_))->BeginQueryEXT(target, id);
1212 }
1213 void MojoGLES2Impl::BeginTransformFeedback(GLenum primitivemode) {
1214 NOTREACHED() << "Unimplemented BeginTransformFeedback.";
1215 }
1216 void MojoGLES2Impl::EndQueryEXT(GLenum target) {
1217 return static_cast<gpu::gles2::GLES2Interface*>(
1218 MojoGLES2GetGLES2Interface(context_))->EndQueryEXT(target);
1219 }
1220 void MojoGLES2Impl::EndTransformFeedback() {
1221 NOTREACHED() << "Unimplemented EndTransformFeedback.";
1222 }
1223 void MojoGLES2Impl::GetQueryivEXT(GLenum target, GLenum pname, GLint* params) {
1224 NOTREACHED() << "Unimplemented GetQueryivEXT.";
1225 }
1226 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id,
1227 GLenum pname,
1228 GLuint* params) {
1229 return static_cast<gpu::gles2::GLES2Interface*>(
1230 MojoGLES2GetGLES2Interface(context_))
1231 ->GetQueryObjectuivEXT(id, pname, params);
1232 }
1233 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) {
1234 NOTREACHED() << "Unimplemented InsertEventMarkerEXT.";
1235 }
1236 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) {
1237 NOTREACHED() << "Unimplemented PushGroupMarkerEXT.";
1238 }
1239 void MojoGLES2Impl::PopGroupMarkerEXT() {
1240 NOTREACHED() << "Unimplemented PopGroupMarkerEXT.";
1241 }
1242 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n, GLuint* arrays) {
1243 NOTREACHED() << "Unimplemented GenVertexArraysOES.";
1244 }
1245 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
1246 NOTREACHED() << "Unimplemented DeleteVertexArraysOES.";
1247 }
1248 GLboolean MojoGLES2Impl::IsVertexArrayOES(GLuint array) {
1249 NOTREACHED() << "Unimplemented IsVertexArrayOES.";
1250 return 0;
1251 }
1252 void MojoGLES2Impl::BindVertexArrayOES(GLuint array) {
1253 NOTREACHED() << "Unimplemented BindVertexArrayOES.";
1254 }
1255 void MojoGLES2Impl::SwapBuffers() {
1256 NOTREACHED() << "Unimplemented SwapBuffers.";
1257 }
1258 GLuint MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1259 GLsizei count,
1260 GLenum type,
1261 GLuint offset) {
1262 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM.";
1263 return 0;
1264 }
1265 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) {
1266 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM.";
1267 return 0;
1268 }
1269 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) {
1270 NOTREACHED() << "Unimplemented MapBufferCHROMIUM.";
1271 return 0;
1272 }
1273 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) {
1274 NOTREACHED() << "Unimplemented UnmapBufferCHROMIUM.";
1275 return 0;
1276 }
1277 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target,
1278 GLintptr offset,
1279 GLsizeiptr size,
1280 GLenum access) {
1281 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM.";
1282 return 0;
1283 }
1284 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) {
1285 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM.";
1286 }
1287 void* MojoGLES2Impl::MapBufferRange(GLenum target,
1288 GLintptr offset,
1289 GLsizeiptr size,
1290 GLbitfield access) {
1291 NOTREACHED() << "Unimplemented MapBufferRange.";
1292 return 0;
1293 }
1294 GLboolean MojoGLES2Impl::UnmapBuffer(GLenum target) {
1295 NOTREACHED() << "Unimplemented UnmapBuffer.";
1296 return 0;
1297 }
1298 void* MojoGLES2Impl::MapTexSubImage2DCHROMIUM(GLenum target,
1299 GLint level,
1300 GLint xoffset,
1301 GLint yoffset,
1302 GLsizei width,
1303 GLsizei height,
1304 GLenum format,
1305 GLenum type,
1306 GLenum access) {
1307 return static_cast<gpu::gles2::GLES2Interface*>(
1308 MojoGLES2GetGLES2Interface(context_))
1309 ->MapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, height,
1310 format, type, access);
1311 }
1312 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) {
1313 return static_cast<gpu::gles2::GLES2Interface*>(
1314 MojoGLES2GetGLES2Interface(context_))
1315 ->UnmapTexSubImage2DCHROMIUM(mem);
1316 }
1317 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width,
1318 GLuint height,
1319 GLfloat scale_factor) {
1320 NOTREACHED() << "Unimplemented ResizeCHROMIUM.";
1321 }
1322 const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() {
1323 NOTREACHED() << "Unimplemented GetRequestableExtensionsCHROMIUM.";
1324 return 0;
1325 }
1326 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension) {
1327 NOTREACHED() << "Unimplemented RequestExtensionCHROMIUM.";
1328 }
1329 void MojoGLES2Impl::RateLimitOffscreenContextCHROMIUM() {
1330 NOTREACHED() << "Unimplemented RateLimitOffscreenContextCHROMIUM.";
1331 }
1332 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program,
1333 GLsizei bufsize,
1334 GLsizei* size,
1335 void* info) {
1336 NOTREACHED() << "Unimplemented GetProgramInfoCHROMIUM.";
1337 }
1338 void MojoGLES2Impl::GetUniformBlocksCHROMIUM(GLuint program,
1339 GLsizei bufsize,
1340 GLsizei* size,
1341 void* info) {
1342 NOTREACHED() << "Unimplemented GetUniformBlocksCHROMIUM.";
1343 }
1344 void MojoGLES2Impl::GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
1345 GLsizei bufsize,
1346 GLsizei* size,
1347 void* info) {
1348 NOTREACHED() << "Unimplemented GetTransformFeedbackVaryingsCHROMIUM.";
1349 }
1350 void MojoGLES2Impl::GetUniformsES3CHROMIUM(GLuint program,
1351 GLsizei bufsize,
1352 GLsizei* size,
1353 void* info) {
1354 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM.";
1355 }
1356 GLuint MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture) {
1357 NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM.";
1358 return 0;
1359 }
1360 GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer,
1361 GLsizei width,
1362 GLsizei height,
1363 GLenum internalformat) {
1364 NOTREACHED() << "Unimplemented CreateImageCHROMIUM.";
1365 return 0;
1366 }
1367 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) {
1368 NOTREACHED() << "Unimplemented DestroyImageCHROMIUM.";
1369 }
1370 GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
1371 GLsizei height,
1372 GLenum internalformat,
1373 GLenum usage) {
1374 NOTREACHED() << "Unimplemented CreateGpuMemoryBufferImageCHROMIUM.";
1375 return 0;
1376 }
1377 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader,
1378 GLsizei bufsize,
1379 GLsizei* length,
1380 char* source) {
1381 NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE.";
1382 }
1383 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x,
1384 GLint y,
1385 GLint width,
1386 GLint height) {
1387 NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM.";
1388 }
1389 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target,
1390 GLsizei width,
1391 GLsizei height,
1392 GLuint ioSurfaceId,
1393 GLuint plane) {
1394 NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM.";
1395 }
1396 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target,
1397 GLenum source_id,
1398 GLenum dest_id,
1399 GLint internalformat,
1400 GLenum dest_type) {
1401 NOTREACHED() << "Unimplemented CopyTextureCHROMIUM.";
1402 }
1403 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target,
1404 GLenum source_id,
1405 GLenum dest_id,
1406 GLint xoffset,
1407 GLint yoffset) {
1408 NOTREACHED() << "Unimplemented CopySubTextureCHROMIUM.";
1409 }
1410 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode,
1411 GLint first,
1412 GLsizei count,
1413 GLsizei primcount) {
1414 NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE.";
1415 }
1416 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode,
1417 GLsizei count,
1418 GLenum type,
1419 const void* indices,
1420 GLsizei primcount) {
1421 NOTREACHED() << "Unimplemented DrawElementsInstancedANGLE.";
1422 }
1423 void MojoGLES2Impl::VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
1424 NOTREACHED() << "Unimplemented VertexAttribDivisorANGLE.";
1425 }
1426 void MojoGLES2Impl::GenMailboxCHROMIUM(GLbyte* mailbox) {
1427 MojoGLES2MakeCurrent(context_);
1428 glGenMailboxCHROMIUM(mailbox);
1429 }
1430 void MojoGLES2Impl::ProduceTextureCHROMIUM(GLenum target,
1431 const GLbyte* mailbox) {
1432 MojoGLES2MakeCurrent(context_);
1433 glProduceTextureCHROMIUM(target, mailbox);
1434 }
1435 void MojoGLES2Impl::ProduceTextureDirectCHROMIUM(GLuint texture,
1436 GLenum target,
1437 const GLbyte* mailbox) {
1438 MojoGLES2MakeCurrent(context_);
1439 glProduceTextureDirectCHROMIUM(texture, target, mailbox);
1440 }
1441 void MojoGLES2Impl::ConsumeTextureCHROMIUM(GLenum target,
1442 const GLbyte* mailbox) {
1443 MojoGLES2MakeCurrent(context_);
1444 glConsumeTextureCHROMIUM(target, mailbox);
1445 }
1446 GLuint MojoGLES2Impl::CreateAndConsumeTextureCHROMIUM(GLenum target,
1447 const GLbyte* mailbox) {
1448 MojoGLES2MakeCurrent(context_);
1449 return glCreateAndConsumeTextureCHROMIUM(target, mailbox);
1450 }
1451 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program,
1452 GLint location,
1453 const char* name) {
1454 NOTREACHED() << "Unimplemented BindUniformLocationCHROMIUM.";
1455 }
1456 void MojoGLES2Impl::GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) {
1457 NOTREACHED() << "Unimplemented GenValuebuffersCHROMIUM.";
1458 }
1459 void MojoGLES2Impl::DeleteValuebuffersCHROMIUM(GLsizei n,
1460 const GLuint* valuebuffers) {
1461 NOTREACHED() << "Unimplemented DeleteValuebuffersCHROMIUM.";
1462 }
1463 GLboolean MojoGLES2Impl::IsValuebufferCHROMIUM(GLuint valuebuffer) {
1464 NOTREACHED() << "Unimplemented IsValuebufferCHROMIUM.";
1465 return 0;
1466 }
1467 void MojoGLES2Impl::BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) {
1468 NOTREACHED() << "Unimplemented BindValuebufferCHROMIUM.";
1469 }
1470 void MojoGLES2Impl::SubscribeValueCHROMIUM(GLenum target, GLenum subscription) {
1471 NOTREACHED() << "Unimplemented SubscribeValueCHROMIUM.";
1472 }
1473 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) {
1474 NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM.";
1475 }
1476 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location,
1477 GLenum target,
1478 GLenum subscription) {
1479 NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM.";
1480 }
1481 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1482 NOTREACHED() << "Unimplemented BindTexImage2DCHROMIUM.";
1483 }
1484 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1485 NOTREACHED() << "Unimplemented ReleaseTexImage2DCHROMIUM.";
1486 }
1487 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name,
1488 const char* trace_name) {
1489 NOTREACHED() << "Unimplemented TraceBeginCHROMIUM.";
1490 }
1491 void MojoGLES2Impl::TraceEndCHROMIUM() {
1492 NOTREACHED() << "Unimplemented TraceEndCHROMIUM.";
1493 }
1494 void MojoGLES2Impl::AsyncTexSubImage2DCHROMIUM(GLenum target,
1495 GLint level,
1496 GLint xoffset,
1497 GLint yoffset,
1498 GLsizei width,
1499 GLsizei height,
1500 GLenum format,
1501 GLenum type,
1502 const void* data) {
1503 NOTREACHED() << "Unimplemented AsyncTexSubImage2DCHROMIUM.";
1504 }
1505 void MojoGLES2Impl::AsyncTexImage2DCHROMIUM(GLenum target,
1506 GLint level,
1507 GLenum internalformat,
1508 GLsizei width,
1509 GLsizei height,
1510 GLint border,
1511 GLenum format,
1512 GLenum type,
1513 const void* pixels) {
1514 NOTREACHED() << "Unimplemented AsyncTexImage2DCHROMIUM.";
1515 }
1516 void MojoGLES2Impl::WaitAsyncTexImage2DCHROMIUM(GLenum target) {
1517 NOTREACHED() << "Unimplemented WaitAsyncTexImage2DCHROMIUM.";
1518 }
1519 void MojoGLES2Impl::WaitAllAsyncTexImage2DCHROMIUM() {
1520 NOTREACHED() << "Unimplemented WaitAllAsyncTexImage2DCHROMIUM.";
1521 }
1522 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target,
1523 GLsizei count,
1524 const GLenum* attachments) {
1525 NOTREACHED() << "Unimplemented DiscardFramebufferEXT.";
1526 }
1527 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current, GLenum other) {
1528 NOTREACHED() << "Unimplemented LoseContextCHROMIUM.";
1529 }
1530 GLuint MojoGLES2Impl::InsertSyncPointCHROMIUM() {
1531 MojoGLES2MakeCurrent(context_);
1532 return glInsertSyncPointCHROMIUM();
1533 }
1534 void MojoGLES2Impl::WaitSyncPointCHROMIUM(GLuint sync_point) {
1535 MojoGLES2MakeCurrent(context_);
1536 glWaitSyncPointCHROMIUM(sync_point);
1537 }
1538 void MojoGLES2Impl::DrawBuffersEXT(GLsizei count, const GLenum* bufs) {
1539 NOTREACHED() << "Unimplemented DrawBuffersEXT.";
1540 }
1541 void MojoGLES2Impl::DiscardBackbufferCHROMIUM() {
1542 NOTREACHED() << "Unimplemented DiscardBackbufferCHROMIUM.";
1543 }
1544 void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
1545 GLenum plane_transform,
1546 GLuint overlay_texture_id,
1547 GLint bounds_x,
1548 GLint bounds_y,
1549 GLint bounds_width,
1550 GLint bounds_height,
1551 GLfloat uv_x,
1552 GLfloat uv_y,
1553 GLfloat uv_width,
1554 GLfloat uv_height) {
1555 NOTREACHED() << "Unimplemented ScheduleOverlayPlaneCHROMIUM.";
1556 }
1557 void MojoGLES2Impl::SwapInterval(GLint interval) {
1558 NOTREACHED() << "Unimplemented SwapInterval.";
1559 }
1560 void MojoGLES2Impl::MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) {
1561 NOTREACHED() << "Unimplemented MatrixLoadfCHROMIUM.";
1562 }
1563 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
1564 NOTREACHED() << "Unimplemented MatrixLoadIdentityCHROMIUM.";
1565 }
1566 void MojoGLES2Impl::BlendBarrierKHR() {
1567 NOTREACHED() << "Unimplemented BlendBarrierKHR.";
1568 }
1569
1570 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/gpu/mojo_gles2_impl_autogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698