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

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

Powered by Google App Engine
This is Rietveld 408576698