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