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

Side by Side Diff: ui/gl/gl_bindings_autogen_gl4.cc

Issue 2629633003: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gl/gl_bindings_autogen_gl3.cc ('k') | ui/gl/gl_bindings_autogen_glx.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 // ui/gl/generate_bindings.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 <string>
12
13 #include "base/trace_event/trace_event.h"
14 #include "ui/gl/gl_bindings.h"
15 #include "ui/gl/gl_context.h"
16 #include "ui/gl/gl_enums.h"
17 #include "ui/gl/gl_gl_api_implementation.h"
18 #include "ui/gl/gl_implementation.h"
19 #include "ui/gl/gl_version_info.h"
20
21 namespace gl {
22
23 void NoContextGLApi::glActiveTextureFn(GLenum texture) {
24 NOTREACHED() << "Trying to call glActiveTexture() without current GL context";
25 LOG(ERROR) << "Trying to call glActiveTexture() without current GL context";
26 }
27
28 void NoContextGLApi::glApplyFramebufferAttachmentCMAAINTELFn(void) {
29 NOTREACHED() << "Trying to call glApplyFramebufferAttachmentCMAAINTEL() "
30 "without current GL context";
31 LOG(ERROR) << "Trying to call glApplyFramebufferAttachmentCMAAINTEL() "
32 "without current GL context";
33 }
34
35 void NoContextGLApi::glAttachShaderFn(GLuint program, GLuint shader) {
36 NOTREACHED() << "Trying to call glAttachShader() without current GL context";
37 LOG(ERROR) << "Trying to call glAttachShader() without current GL context";
38 }
39
40 void NoContextGLApi::glBeginQueryFn(GLenum target, GLuint id) {
41 NOTREACHED() << "Trying to call glBeginQuery() without current GL context";
42 LOG(ERROR) << "Trying to call glBeginQuery() without current GL context";
43 }
44
45 void NoContextGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode) {
46 NOTREACHED()
47 << "Trying to call glBeginTransformFeedback() without current GL context";
48 LOG(ERROR)
49 << "Trying to call glBeginTransformFeedback() without current GL context";
50 }
51
52 void NoContextGLApi::glBindAttribLocationFn(GLuint program,
53 GLuint index,
54 const char* name) {
55 NOTREACHED()
56 << "Trying to call glBindAttribLocation() without current GL context";
57 LOG(ERROR)
58 << "Trying to call glBindAttribLocation() without current GL context";
59 }
60
61 void NoContextGLApi::glBindBufferFn(GLenum target, GLuint buffer) {
62 NOTREACHED() << "Trying to call glBindBuffer() without current GL context";
63 LOG(ERROR) << "Trying to call glBindBuffer() without current GL context";
64 }
65
66 void NoContextGLApi::glBindBufferBaseFn(GLenum target,
67 GLuint index,
68 GLuint buffer) {
69 NOTREACHED()
70 << "Trying to call glBindBufferBase() without current GL context";
71 LOG(ERROR) << "Trying to call glBindBufferBase() without current GL context";
72 }
73
74 void NoContextGLApi::glBindBufferRangeFn(GLenum target,
75 GLuint index,
76 GLuint buffer,
77 GLintptr offset,
78 GLsizeiptr size) {
79 NOTREACHED()
80 << "Trying to call glBindBufferRange() without current GL context";
81 LOG(ERROR) << "Trying to call glBindBufferRange() without current GL context";
82 }
83
84 void NoContextGLApi::glBindFragDataLocationFn(GLuint program,
85 GLuint colorNumber,
86 const char* name) {
87 NOTREACHED()
88 << "Trying to call glBindFragDataLocation() without current GL context";
89 LOG(ERROR)
90 << "Trying to call glBindFragDataLocation() without current GL context";
91 }
92
93 void NoContextGLApi::glBindFragDataLocationIndexedFn(GLuint program,
94 GLuint colorNumber,
95 GLuint index,
96 const char* name) {
97 NOTREACHED() << "Trying to call glBindFragDataLocationIndexed() without "
98 "current GL context";
99 LOG(ERROR) << "Trying to call glBindFragDataLocationIndexed() without "
100 "current GL context";
101 }
102
103 void NoContextGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
104 NOTREACHED()
105 << "Trying to call glBindFramebufferEXT() without current GL context";
106 LOG(ERROR)
107 << "Trying to call glBindFramebufferEXT() without current GL context";
108 }
109
110 void NoContextGLApi::glBindImageTextureEXTFn(GLuint index,
111 GLuint texture,
112 GLint level,
113 GLboolean layered,
114 GLint layer,
115 GLenum access,
116 GLint format) {
117 NOTREACHED()
118 << "Trying to call glBindImageTextureEXT() without current GL context";
119 LOG(ERROR)
120 << "Trying to call glBindImageTextureEXT() without current GL context";
121 }
122
123 void NoContextGLApi::glBindRenderbufferEXTFn(GLenum target,
124 GLuint renderbuffer) {
125 NOTREACHED()
126 << "Trying to call glBindRenderbufferEXT() without current GL context";
127 LOG(ERROR)
128 << "Trying to call glBindRenderbufferEXT() without current GL context";
129 }
130
131 void NoContextGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) {
132 NOTREACHED() << "Trying to call glBindSampler() without current GL context";
133 LOG(ERROR) << "Trying to call glBindSampler() without current GL context";
134 }
135
136 void NoContextGLApi::glBindTextureFn(GLenum target, GLuint texture) {
137 NOTREACHED() << "Trying to call glBindTexture() without current GL context";
138 LOG(ERROR) << "Trying to call glBindTexture() without current GL context";
139 }
140
141 void NoContextGLApi::glBindTransformFeedbackFn(GLenum target, GLuint id) {
142 NOTREACHED()
143 << "Trying to call glBindTransformFeedback() without current GL context";
144 LOG(ERROR)
145 << "Trying to call glBindTransformFeedback() without current GL context";
146 }
147
148 void NoContextGLApi::glBindUniformLocationCHROMIUMFn(GLuint program,
149 GLint location,
150 const char* name) {
151 NOTREACHED() << "Trying to call glBindUniformLocationCHROMIUM() without "
152 "current GL context";
153 LOG(ERROR) << "Trying to call glBindUniformLocationCHROMIUM() without "
154 "current GL context";
155 }
156
157 void NoContextGLApi::glBindVertexArrayOESFn(GLuint array) {
158 NOTREACHED()
159 << "Trying to call glBindVertexArrayOES() without current GL context";
160 LOG(ERROR)
161 << "Trying to call glBindVertexArrayOES() without current GL context";
162 }
163
164 void NoContextGLApi::glBlendBarrierKHRFn(void) {
165 NOTREACHED()
166 << "Trying to call glBlendBarrierKHR() without current GL context";
167 LOG(ERROR) << "Trying to call glBlendBarrierKHR() without current GL context";
168 }
169
170 void NoContextGLApi::glBlendColorFn(GLclampf red,
171 GLclampf green,
172 GLclampf blue,
173 GLclampf alpha) {
174 NOTREACHED() << "Trying to call glBlendColor() without current GL context";
175 LOG(ERROR) << "Trying to call glBlendColor() without current GL context";
176 }
177
178 void NoContextGLApi::glBlendEquationFn(GLenum mode) {
179 NOTREACHED() << "Trying to call glBlendEquation() without current GL context";
180 LOG(ERROR) << "Trying to call glBlendEquation() without current GL context";
181 }
182
183 void NoContextGLApi::glBlendEquationSeparateFn(GLenum modeRGB,
184 GLenum modeAlpha) {
185 NOTREACHED()
186 << "Trying to call glBlendEquationSeparate() without current GL context";
187 LOG(ERROR)
188 << "Trying to call glBlendEquationSeparate() without current GL context";
189 }
190
191 void NoContextGLApi::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
192 NOTREACHED() << "Trying to call glBlendFunc() without current GL context";
193 LOG(ERROR) << "Trying to call glBlendFunc() without current GL context";
194 }
195
196 void NoContextGLApi::glBlendFuncSeparateFn(GLenum srcRGB,
197 GLenum dstRGB,
198 GLenum srcAlpha,
199 GLenum dstAlpha) {
200 NOTREACHED()
201 << "Trying to call glBlendFuncSeparate() without current GL context";
202 LOG(ERROR)
203 << "Trying to call glBlendFuncSeparate() without current GL context";
204 }
205
206 void NoContextGLApi::glBlitFramebufferFn(GLint srcX0,
207 GLint srcY0,
208 GLint srcX1,
209 GLint srcY1,
210 GLint dstX0,
211 GLint dstY0,
212 GLint dstX1,
213 GLint dstY1,
214 GLbitfield mask,
215 GLenum filter) {
216 NOTREACHED()
217 << "Trying to call glBlitFramebuffer() without current GL context";
218 LOG(ERROR) << "Trying to call glBlitFramebuffer() without current GL context";
219 }
220
221 void NoContextGLApi::glBlitFramebufferANGLEFn(GLint srcX0,
222 GLint srcY0,
223 GLint srcX1,
224 GLint srcY1,
225 GLint dstX0,
226 GLint dstY0,
227 GLint dstX1,
228 GLint dstY1,
229 GLbitfield mask,
230 GLenum filter) {
231 NOTREACHED()
232 << "Trying to call glBlitFramebufferANGLE() without current GL context";
233 LOG(ERROR)
234 << "Trying to call glBlitFramebufferANGLE() without current GL context";
235 }
236
237 void NoContextGLApi::glBlitFramebufferEXTFn(GLint srcX0,
238 GLint srcY0,
239 GLint srcX1,
240 GLint srcY1,
241 GLint dstX0,
242 GLint dstY0,
243 GLint dstX1,
244 GLint dstY1,
245 GLbitfield mask,
246 GLenum filter) {
247 NOTREACHED()
248 << "Trying to call glBlitFramebufferEXT() without current GL context";
249 LOG(ERROR)
250 << "Trying to call glBlitFramebufferEXT() without current GL context";
251 }
252
253 void NoContextGLApi::glBufferDataFn(GLenum target,
254 GLsizeiptr size,
255 const void* data,
256 GLenum usage) {
257 NOTREACHED() << "Trying to call glBufferData() without current GL context";
258 LOG(ERROR) << "Trying to call glBufferData() without current GL context";
259 }
260
261 void NoContextGLApi::glBufferSubDataFn(GLenum target,
262 GLintptr offset,
263 GLsizeiptr size,
264 const void* data) {
265 NOTREACHED() << "Trying to call glBufferSubData() without current GL context";
266 LOG(ERROR) << "Trying to call glBufferSubData() without current GL context";
267 }
268
269 GLenum NoContextGLApi::glCheckFramebufferStatusEXTFn(GLenum target) {
270 NOTREACHED() << "Trying to call glCheckFramebufferStatusEXT() without "
271 "current GL context";
272 LOG(ERROR) << "Trying to call glCheckFramebufferStatusEXT() without current "
273 "GL context";
274 return static_cast<GLenum>(0);
275 }
276
277 void NoContextGLApi::glClearFn(GLbitfield mask) {
278 NOTREACHED() << "Trying to call glClear() without current GL context";
279 LOG(ERROR) << "Trying to call glClear() without current GL context";
280 }
281
282 void NoContextGLApi::glClearBufferfiFn(GLenum buffer,
283 GLint drawbuffer,
284 const GLfloat depth,
285 GLint stencil) {
286 NOTREACHED() << "Trying to call glClearBufferfi() without current GL context";
287 LOG(ERROR) << "Trying to call glClearBufferfi() without current GL context";
288 }
289
290 void NoContextGLApi::glClearBufferfvFn(GLenum buffer,
291 GLint drawbuffer,
292 const GLfloat* value) {
293 NOTREACHED() << "Trying to call glClearBufferfv() without current GL context";
294 LOG(ERROR) << "Trying to call glClearBufferfv() without current GL context";
295 }
296
297 void NoContextGLApi::glClearBufferivFn(GLenum buffer,
298 GLint drawbuffer,
299 const GLint* value) {
300 NOTREACHED() << "Trying to call glClearBufferiv() without current GL context";
301 LOG(ERROR) << "Trying to call glClearBufferiv() without current GL context";
302 }
303
304 void NoContextGLApi::glClearBufferuivFn(GLenum buffer,
305 GLint drawbuffer,
306 const GLuint* value) {
307 NOTREACHED()
308 << "Trying to call glClearBufferuiv() without current GL context";
309 LOG(ERROR) << "Trying to call glClearBufferuiv() without current GL context";
310 }
311
312 void NoContextGLApi::glClearColorFn(GLclampf red,
313 GLclampf green,
314 GLclampf blue,
315 GLclampf alpha) {
316 NOTREACHED() << "Trying to call glClearColor() without current GL context";
317 LOG(ERROR) << "Trying to call glClearColor() without current GL context";
318 }
319
320 void NoContextGLApi::glClearDepthFn(GLclampd depth) {
321 NOTREACHED() << "Trying to call glClearDepth() without current GL context";
322 LOG(ERROR) << "Trying to call glClearDepth() without current GL context";
323 }
324
325 void NoContextGLApi::glClearDepthfFn(GLclampf depth) {
326 NOTREACHED() << "Trying to call glClearDepthf() without current GL context";
327 LOG(ERROR) << "Trying to call glClearDepthf() without current GL context";
328 }
329
330 void NoContextGLApi::glClearStencilFn(GLint s) {
331 NOTREACHED() << "Trying to call glClearStencil() without current GL context";
332 LOG(ERROR) << "Trying to call glClearStencil() without current GL context";
333 }
334
335 GLenum NoContextGLApi::glClientWaitSyncFn(GLsync sync,
336 GLbitfield flags,
337 GLuint64 timeout) {
338 NOTREACHED()
339 << "Trying to call glClientWaitSync() without current GL context";
340 LOG(ERROR) << "Trying to call glClientWaitSync() without current GL context";
341 return static_cast<GLenum>(0);
342 }
343
344 void NoContextGLApi::glColorMaskFn(GLboolean red,
345 GLboolean green,
346 GLboolean blue,
347 GLboolean alpha) {
348 NOTREACHED() << "Trying to call glColorMask() without current GL context";
349 LOG(ERROR) << "Trying to call glColorMask() without current GL context";
350 }
351
352 void NoContextGLApi::glCompileShaderFn(GLuint shader) {
353 NOTREACHED() << "Trying to call glCompileShader() without current GL context";
354 LOG(ERROR) << "Trying to call glCompileShader() without current GL context";
355 }
356
357 void NoContextGLApi::glCompressedCopyTextureCHROMIUMFn(GLuint sourceId,
358 GLuint destId) {
359 NOTREACHED() << "Trying to call glCompressedCopyTextureCHROMIUM() without "
360 "current GL context";
361 LOG(ERROR) << "Trying to call glCompressedCopyTextureCHROMIUM() without "
362 "current GL context";
363 }
364
365 void NoContextGLApi::glCompressedTexImage2DFn(GLenum target,
366 GLint level,
367 GLenum internalformat,
368 GLsizei width,
369 GLsizei height,
370 GLint border,
371 GLsizei imageSize,
372 const void* data) {
373 NOTREACHED()
374 << "Trying to call glCompressedTexImage2D() without current GL context";
375 LOG(ERROR)
376 << "Trying to call glCompressedTexImage2D() without current GL context";
377 }
378
379 void NoContextGLApi::glCompressedTexImage3DFn(GLenum target,
380 GLint level,
381 GLenum internalformat,
382 GLsizei width,
383 GLsizei height,
384 GLsizei depth,
385 GLint border,
386 GLsizei imageSize,
387 const void* data) {
388 NOTREACHED()
389 << "Trying to call glCompressedTexImage3D() without current GL context";
390 LOG(ERROR)
391 << "Trying to call glCompressedTexImage3D() without current GL context";
392 }
393
394 void NoContextGLApi::glCompressedTexSubImage2DFn(GLenum target,
395 GLint level,
396 GLint xoffset,
397 GLint yoffset,
398 GLsizei width,
399 GLsizei height,
400 GLenum format,
401 GLsizei imageSize,
402 const void* data) {
403 NOTREACHED() << "Trying to call glCompressedTexSubImage2D() without current "
404 "GL context";
405 LOG(ERROR) << "Trying to call glCompressedTexSubImage2D() without current GL "
406 "context";
407 }
408
409 void NoContextGLApi::glCompressedTexSubImage3DFn(GLenum target,
410 GLint level,
411 GLint xoffset,
412 GLint yoffset,
413 GLint zoffset,
414 GLsizei width,
415 GLsizei height,
416 GLsizei depth,
417 GLenum format,
418 GLsizei imageSize,
419 const void* data) {
420 NOTREACHED() << "Trying to call glCompressedTexSubImage3D() without current "
421 "GL context";
422 LOG(ERROR) << "Trying to call glCompressedTexSubImage3D() without current GL "
423 "context";
424 }
425
426 void NoContextGLApi::glCopyBufferSubDataFn(GLenum readTarget,
427 GLenum writeTarget,
428 GLintptr readOffset,
429 GLintptr writeOffset,
430 GLsizeiptr size) {
431 NOTREACHED()
432 << "Trying to call glCopyBufferSubData() without current GL context";
433 LOG(ERROR)
434 << "Trying to call glCopyBufferSubData() without current GL context";
435 }
436
437 void NoContextGLApi::glCopySubTextureCHROMIUMFn(
438 GLuint sourceId,
439 GLuint destId,
440 GLint xoffset,
441 GLint yoffset,
442 GLint x,
443 GLint y,
444 GLsizei width,
445 GLsizei height,
446 GLboolean unpackFlipY,
447 GLboolean unpackPremultiplyAlpha,
448 GLboolean unpackUnmultiplyAlpha) {
449 NOTREACHED()
450 << "Trying to call glCopySubTextureCHROMIUM() without current GL context";
451 LOG(ERROR)
452 << "Trying to call glCopySubTextureCHROMIUM() without current GL context";
453 }
454
455 void NoContextGLApi::glCopyTexImage2DFn(GLenum target,
456 GLint level,
457 GLenum internalformat,
458 GLint x,
459 GLint y,
460 GLsizei width,
461 GLsizei height,
462 GLint border) {
463 NOTREACHED()
464 << "Trying to call glCopyTexImage2D() without current GL context";
465 LOG(ERROR) << "Trying to call glCopyTexImage2D() without current GL context";
466 }
467
468 void NoContextGLApi::glCopyTexSubImage2DFn(GLenum target,
469 GLint level,
470 GLint xoffset,
471 GLint yoffset,
472 GLint x,
473 GLint y,
474 GLsizei width,
475 GLsizei height) {
476 NOTREACHED()
477 << "Trying to call glCopyTexSubImage2D() without current GL context";
478 LOG(ERROR)
479 << "Trying to call glCopyTexSubImage2D() without current GL context";
480 }
481
482 void NoContextGLApi::glCopyTexSubImage3DFn(GLenum target,
483 GLint level,
484 GLint xoffset,
485 GLint yoffset,
486 GLint zoffset,
487 GLint x,
488 GLint y,
489 GLsizei width,
490 GLsizei height) {
491 NOTREACHED()
492 << "Trying to call glCopyTexSubImage3D() without current GL context";
493 LOG(ERROR)
494 << "Trying to call glCopyTexSubImage3D() without current GL context";
495 }
496
497 void NoContextGLApi::glCopyTextureCHROMIUMFn(GLuint sourceId,
498 GLuint destId,
499 GLint internalFormat,
500 GLenum destType,
501 GLboolean unpackFlipY,
502 GLboolean unpackPremultiplyAlpha,
503 GLboolean unpackUnmultiplyAlpha) {
504 NOTREACHED()
505 << "Trying to call glCopyTextureCHROMIUM() without current GL context";
506 LOG(ERROR)
507 << "Trying to call glCopyTextureCHROMIUM() without current GL context";
508 }
509
510 void NoContextGLApi::glCoverageModulationNVFn(GLenum components) {
511 NOTREACHED()
512 << "Trying to call glCoverageModulationNV() without current GL context";
513 LOG(ERROR)
514 << "Trying to call glCoverageModulationNV() without current GL context";
515 }
516
517 void NoContextGLApi::glCoverFillPathInstancedNVFn(
518 GLsizei numPaths,
519 GLenum pathNameType,
520 const void* paths,
521 GLuint pathBase,
522 GLenum coverMode,
523 GLenum transformType,
524 const GLfloat* transformValues) {
525 NOTREACHED() << "Trying to call glCoverFillPathInstancedNV() without current "
526 "GL context";
527 LOG(ERROR) << "Trying to call glCoverFillPathInstancedNV() without current "
528 "GL context";
529 }
530
531 void NoContextGLApi::glCoverFillPathNVFn(GLuint path, GLenum coverMode) {
532 NOTREACHED()
533 << "Trying to call glCoverFillPathNV() without current GL context";
534 LOG(ERROR) << "Trying to call glCoverFillPathNV() without current GL context";
535 }
536
537 void NoContextGLApi::glCoverStrokePathInstancedNVFn(
538 GLsizei numPaths,
539 GLenum pathNameType,
540 const void* paths,
541 GLuint pathBase,
542 GLenum coverMode,
543 GLenum transformType,
544 const GLfloat* transformValues) {
545 NOTREACHED() << "Trying to call glCoverStrokePathInstancedNV() without "
546 "current GL context";
547 LOG(ERROR) << "Trying to call glCoverStrokePathInstancedNV() without current "
548 "GL context";
549 }
550
551 void NoContextGLApi::glCoverStrokePathNVFn(GLuint name, GLenum coverMode) {
552 NOTREACHED()
553 << "Trying to call glCoverStrokePathNV() without current GL context";
554 LOG(ERROR)
555 << "Trying to call glCoverStrokePathNV() without current GL context";
556 }
557
558 GLuint NoContextGLApi::glCreateProgramFn(void) {
559 NOTREACHED() << "Trying to call glCreateProgram() without current GL context";
560 LOG(ERROR) << "Trying to call glCreateProgram() without current GL context";
561 return 0U;
562 }
563
564 GLuint NoContextGLApi::glCreateShaderFn(GLenum type) {
565 NOTREACHED() << "Trying to call glCreateShader() without current GL context";
566 LOG(ERROR) << "Trying to call glCreateShader() without current GL context";
567 return 0U;
568 }
569
570 void NoContextGLApi::glCullFaceFn(GLenum mode) {
571 NOTREACHED() << "Trying to call glCullFace() without current GL context";
572 LOG(ERROR) << "Trying to call glCullFace() without current GL context";
573 }
574
575 void NoContextGLApi::glDebugMessageCallbackFn(GLDEBUGPROC callback,
576 const void* userParam) {
577 NOTREACHED()
578 << "Trying to call glDebugMessageCallback() without current GL context";
579 LOG(ERROR)
580 << "Trying to call glDebugMessageCallback() without current GL context";
581 }
582
583 void NoContextGLApi::glDebugMessageControlFn(GLenum source,
584 GLenum type,
585 GLenum severity,
586 GLsizei count,
587 const GLuint* ids,
588 GLboolean enabled) {
589 NOTREACHED()
590 << "Trying to call glDebugMessageControl() without current GL context";
591 LOG(ERROR)
592 << "Trying to call glDebugMessageControl() without current GL context";
593 }
594
595 void NoContextGLApi::glDebugMessageInsertFn(GLenum source,
596 GLenum type,
597 GLuint id,
598 GLenum severity,
599 GLsizei length,
600 const char* buf) {
601 NOTREACHED()
602 << "Trying to call glDebugMessageInsert() without current GL context";
603 LOG(ERROR)
604 << "Trying to call glDebugMessageInsert() without current GL context";
605 }
606
607 void NoContextGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
608 NOTREACHED()
609 << "Trying to call glDeleteBuffersARB() without current GL context";
610 LOG(ERROR)
611 << "Trying to call glDeleteBuffersARB() without current GL context";
612 }
613
614 void NoContextGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) {
615 NOTREACHED()
616 << "Trying to call glDeleteFencesAPPLE() without current GL context";
617 LOG(ERROR)
618 << "Trying to call glDeleteFencesAPPLE() without current GL context";
619 }
620
621 void NoContextGLApi::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
622 NOTREACHED()
623 << "Trying to call glDeleteFencesNV() without current GL context";
624 LOG(ERROR) << "Trying to call glDeleteFencesNV() without current GL context";
625 }
626
627 void NoContextGLApi::glDeleteFramebuffersEXTFn(GLsizei n,
628 const GLuint* framebuffers) {
629 NOTREACHED()
630 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
631 LOG(ERROR)
632 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
633 }
634
635 void NoContextGLApi::glDeletePathsNVFn(GLuint path, GLsizei range) {
636 NOTREACHED() << "Trying to call glDeletePathsNV() without current GL context";
637 LOG(ERROR) << "Trying to call glDeletePathsNV() without current GL context";
638 }
639
640 void NoContextGLApi::glDeleteProgramFn(GLuint program) {
641 NOTREACHED() << "Trying to call glDeleteProgram() without current GL context";
642 LOG(ERROR) << "Trying to call glDeleteProgram() without current GL context";
643 }
644
645 void NoContextGLApi::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
646 NOTREACHED() << "Trying to call glDeleteQueries() without current GL context";
647 LOG(ERROR) << "Trying to call glDeleteQueries() without current GL context";
648 }
649
650 void NoContextGLApi::glDeleteRenderbuffersEXTFn(GLsizei n,
651 const GLuint* renderbuffers) {
652 NOTREACHED()
653 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
654 LOG(ERROR)
655 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
656 }
657
658 void NoContextGLApi::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
659 NOTREACHED()
660 << "Trying to call glDeleteSamplers() without current GL context";
661 LOG(ERROR) << "Trying to call glDeleteSamplers() without current GL context";
662 }
663
664 void NoContextGLApi::glDeleteShaderFn(GLuint shader) {
665 NOTREACHED() << "Trying to call glDeleteShader() without current GL context";
666 LOG(ERROR) << "Trying to call glDeleteShader() without current GL context";
667 }
668
669 void NoContextGLApi::glDeleteSyncFn(GLsync sync) {
670 NOTREACHED() << "Trying to call glDeleteSync() without current GL context";
671 LOG(ERROR) << "Trying to call glDeleteSync() without current GL context";
672 }
673
674 void NoContextGLApi::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
675 NOTREACHED()
676 << "Trying to call glDeleteTextures() without current GL context";
677 LOG(ERROR) << "Trying to call glDeleteTextures() without current GL context";
678 }
679
680 void NoContextGLApi::glDeleteTransformFeedbacksFn(GLsizei n,
681 const GLuint* ids) {
682 NOTREACHED() << "Trying to call glDeleteTransformFeedbacks() without current "
683 "GL context";
684 LOG(ERROR) << "Trying to call glDeleteTransformFeedbacks() without current "
685 "GL context";
686 }
687
688 void NoContextGLApi::glDeleteVertexArraysOESFn(GLsizei n,
689 const GLuint* arrays) {
690 NOTREACHED()
691 << "Trying to call glDeleteVertexArraysOES() without current GL context";
692 LOG(ERROR)
693 << "Trying to call glDeleteVertexArraysOES() without current GL context";
694 }
695
696 void NoContextGLApi::glDepthFuncFn(GLenum func) {
697 NOTREACHED() << "Trying to call glDepthFunc() without current GL context";
698 LOG(ERROR) << "Trying to call glDepthFunc() without current GL context";
699 }
700
701 void NoContextGLApi::glDepthMaskFn(GLboolean flag) {
702 NOTREACHED() << "Trying to call glDepthMask() without current GL context";
703 LOG(ERROR) << "Trying to call glDepthMask() without current GL context";
704 }
705
706 void NoContextGLApi::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
707 NOTREACHED() << "Trying to call glDepthRange() without current GL context";
708 LOG(ERROR) << "Trying to call glDepthRange() without current GL context";
709 }
710
711 void NoContextGLApi::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
712 NOTREACHED() << "Trying to call glDepthRangef() without current GL context";
713 LOG(ERROR) << "Trying to call glDepthRangef() without current GL context";
714 }
715
716 void NoContextGLApi::glDetachShaderFn(GLuint program, GLuint shader) {
717 NOTREACHED() << "Trying to call glDetachShader() without current GL context";
718 LOG(ERROR) << "Trying to call glDetachShader() without current GL context";
719 }
720
721 void NoContextGLApi::glDisableFn(GLenum cap) {
722 NOTREACHED() << "Trying to call glDisable() without current GL context";
723 LOG(ERROR) << "Trying to call glDisable() without current GL context";
724 }
725
726 void NoContextGLApi::glDisableVertexAttribArrayFn(GLuint index) {
727 NOTREACHED() << "Trying to call glDisableVertexAttribArray() without current "
728 "GL context";
729 LOG(ERROR) << "Trying to call glDisableVertexAttribArray() without current "
730 "GL context";
731 }
732
733 void NoContextGLApi::glDiscardFramebufferEXTFn(GLenum target,
734 GLsizei numAttachments,
735 const GLenum* attachments) {
736 NOTREACHED()
737 << "Trying to call glDiscardFramebufferEXT() without current GL context";
738 LOG(ERROR)
739 << "Trying to call glDiscardFramebufferEXT() without current GL context";
740 }
741
742 void NoContextGLApi::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
743 NOTREACHED() << "Trying to call glDrawArrays() without current GL context";
744 LOG(ERROR) << "Trying to call glDrawArrays() without current GL context";
745 }
746
747 void NoContextGLApi::glDrawArraysInstancedANGLEFn(GLenum mode,
748 GLint first,
749 GLsizei count,
750 GLsizei primcount) {
751 NOTREACHED() << "Trying to call glDrawArraysInstancedANGLE() without current "
752 "GL context";
753 LOG(ERROR) << "Trying to call glDrawArraysInstancedANGLE() without current "
754 "GL context";
755 }
756
757 void NoContextGLApi::glDrawBufferFn(GLenum mode) {
758 NOTREACHED() << "Trying to call glDrawBuffer() without current GL context";
759 LOG(ERROR) << "Trying to call glDrawBuffer() without current GL context";
760 }
761
762 void NoContextGLApi::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
763 NOTREACHED()
764 << "Trying to call glDrawBuffersARB() without current GL context";
765 LOG(ERROR) << "Trying to call glDrawBuffersARB() without current GL context";
766 }
767
768 void NoContextGLApi::glDrawElementsFn(GLenum mode,
769 GLsizei count,
770 GLenum type,
771 const void* indices) {
772 NOTREACHED() << "Trying to call glDrawElements() without current GL context";
773 LOG(ERROR) << "Trying to call glDrawElements() without current GL context";
774 }
775
776 void NoContextGLApi::glDrawElementsInstancedANGLEFn(GLenum mode,
777 GLsizei count,
778 GLenum type,
779 const void* indices,
780 GLsizei primcount) {
781 NOTREACHED() << "Trying to call glDrawElementsInstancedANGLE() without "
782 "current GL context";
783 LOG(ERROR) << "Trying to call glDrawElementsInstancedANGLE() without current "
784 "GL context";
785 }
786
787 void NoContextGLApi::glDrawRangeElementsFn(GLenum mode,
788 GLuint start,
789 GLuint end,
790 GLsizei count,
791 GLenum type,
792 const void* indices) {
793 NOTREACHED()
794 << "Trying to call glDrawRangeElements() without current GL context";
795 LOG(ERROR)
796 << "Trying to call glDrawRangeElements() without current GL context";
797 }
798
799 void NoContextGLApi::glEGLImageTargetRenderbufferStorageOESFn(
800 GLenum target,
801 GLeglImageOES image) {
802 NOTREACHED() << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
803 "without current GL context";
804 LOG(ERROR) << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
805 "without current GL context";
806 }
807
808 void NoContextGLApi::glEGLImageTargetTexture2DOESFn(GLenum target,
809 GLeglImageOES image) {
810 NOTREACHED() << "Trying to call glEGLImageTargetTexture2DOES() without "
811 "current GL context";
812 LOG(ERROR) << "Trying to call glEGLImageTargetTexture2DOES() without current "
813 "GL context";
814 }
815
816 void NoContextGLApi::glEnableFn(GLenum cap) {
817 NOTREACHED() << "Trying to call glEnable() without current GL context";
818 LOG(ERROR) << "Trying to call glEnable() without current GL context";
819 }
820
821 void NoContextGLApi::glEnableVertexAttribArrayFn(GLuint index) {
822 NOTREACHED() << "Trying to call glEnableVertexAttribArray() without current "
823 "GL context";
824 LOG(ERROR) << "Trying to call glEnableVertexAttribArray() without current GL "
825 "context";
826 }
827
828 void NoContextGLApi::glEndQueryFn(GLenum target) {
829 NOTREACHED() << "Trying to call glEndQuery() without current GL context";
830 LOG(ERROR) << "Trying to call glEndQuery() without current GL context";
831 }
832
833 void NoContextGLApi::glEndTransformFeedbackFn(void) {
834 NOTREACHED()
835 << "Trying to call glEndTransformFeedback() without current GL context";
836 LOG(ERROR)
837 << "Trying to call glEndTransformFeedback() without current GL context";
838 }
839
840 GLsync NoContextGLApi::glFenceSyncFn(GLenum condition, GLbitfield flags) {
841 NOTREACHED() << "Trying to call glFenceSync() without current GL context";
842 LOG(ERROR) << "Trying to call glFenceSync() without current GL context";
843 return NULL;
844 }
845
846 void NoContextGLApi::glFinishFn(void) {
847 NOTREACHED() << "Trying to call glFinish() without current GL context";
848 LOG(ERROR) << "Trying to call glFinish() without current GL context";
849 }
850
851 void NoContextGLApi::glFinishFenceAPPLEFn(GLuint fence) {
852 NOTREACHED()
853 << "Trying to call glFinishFenceAPPLE() without current GL context";
854 LOG(ERROR)
855 << "Trying to call glFinishFenceAPPLE() without current GL context";
856 }
857
858 void NoContextGLApi::glFinishFenceNVFn(GLuint fence) {
859 NOTREACHED() << "Trying to call glFinishFenceNV() without current GL context";
860 LOG(ERROR) << "Trying to call glFinishFenceNV() without current GL context";
861 }
862
863 void NoContextGLApi::glFlushFn(void) {
864 NOTREACHED() << "Trying to call glFlush() without current GL context";
865 LOG(ERROR) << "Trying to call glFlush() without current GL context";
866 }
867
868 void NoContextGLApi::glFlushMappedBufferRangeFn(GLenum target,
869 GLintptr offset,
870 GLsizeiptr length) {
871 NOTREACHED()
872 << "Trying to call glFlushMappedBufferRange() without current GL context";
873 LOG(ERROR)
874 << "Trying to call glFlushMappedBufferRange() without current GL context";
875 }
876
877 void NoContextGLApi::glFramebufferRenderbufferEXTFn(GLenum target,
878 GLenum attachment,
879 GLenum renderbuffertarget,
880 GLuint renderbuffer) {
881 NOTREACHED() << "Trying to call glFramebufferRenderbufferEXT() without "
882 "current GL context";
883 LOG(ERROR) << "Trying to call glFramebufferRenderbufferEXT() without current "
884 "GL context";
885 }
886
887 void NoContextGLApi::glFramebufferTexture2DEXTFn(GLenum target,
888 GLenum attachment,
889 GLenum textarget,
890 GLuint texture,
891 GLint level) {
892 NOTREACHED() << "Trying to call glFramebufferTexture2DEXT() without current "
893 "GL context";
894 LOG(ERROR) << "Trying to call glFramebufferTexture2DEXT() without current GL "
895 "context";
896 }
897
898 void NoContextGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
899 GLenum attachment,
900 GLenum textarget,
901 GLuint texture,
902 GLint level,
903 GLsizei samples) {
904 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleEXT() "
905 "without current GL context";
906 LOG(ERROR) << "Trying to call glFramebufferTexture2DMultisampleEXT() without "
907 "current GL context";
908 }
909
910 void NoContextGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target,
911 GLenum attachment,
912 GLenum textarget,
913 GLuint texture,
914 GLint level,
915 GLsizei samples) {
916 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleIMG() "
917 "without current GL context";
918 LOG(ERROR) << "Trying to call glFramebufferTexture2DMultisampleIMG() without "
919 "current GL context";
920 }
921
922 void NoContextGLApi::glFramebufferTextureLayerFn(GLenum target,
923 GLenum attachment,
924 GLuint texture,
925 GLint level,
926 GLint layer) {
927 NOTREACHED() << "Trying to call glFramebufferTextureLayer() without current "
928 "GL context";
929 LOG(ERROR) << "Trying to call glFramebufferTextureLayer() without current GL "
930 "context";
931 }
932
933 void NoContextGLApi::glFrontFaceFn(GLenum mode) {
934 NOTREACHED() << "Trying to call glFrontFace() without current GL context";
935 LOG(ERROR) << "Trying to call glFrontFace() without current GL context";
936 }
937
938 void NoContextGLApi::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
939 NOTREACHED() << "Trying to call glGenBuffersARB() without current GL context";
940 LOG(ERROR) << "Trying to call glGenBuffersARB() without current GL context";
941 }
942
943 void NoContextGLApi::glGenerateMipmapEXTFn(GLenum target) {
944 NOTREACHED()
945 << "Trying to call glGenerateMipmapEXT() without current GL context";
946 LOG(ERROR)
947 << "Trying to call glGenerateMipmapEXT() without current GL context";
948 }
949
950 void NoContextGLApi::glGenFencesAPPLEFn(GLsizei n, GLuint* fences) {
951 NOTREACHED()
952 << "Trying to call glGenFencesAPPLE() without current GL context";
953 LOG(ERROR) << "Trying to call glGenFencesAPPLE() without current GL context";
954 }
955
956 void NoContextGLApi::glGenFencesNVFn(GLsizei n, GLuint* fences) {
957 NOTREACHED() << "Trying to call glGenFencesNV() without current GL context";
958 LOG(ERROR) << "Trying to call glGenFencesNV() without current GL context";
959 }
960
961 void NoContextGLApi::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
962 NOTREACHED()
963 << "Trying to call glGenFramebuffersEXT() without current GL context";
964 LOG(ERROR)
965 << "Trying to call glGenFramebuffersEXT() without current GL context";
966 }
967
968 GLuint NoContextGLApi::glGenPathsNVFn(GLsizei range) {
969 NOTREACHED() << "Trying to call glGenPathsNV() without current GL context";
970 LOG(ERROR) << "Trying to call glGenPathsNV() without current GL context";
971 return 0U;
972 }
973
974 void NoContextGLApi::glGenQueriesFn(GLsizei n, GLuint* ids) {
975 NOTREACHED() << "Trying to call glGenQueries() without current GL context";
976 LOG(ERROR) << "Trying to call glGenQueries() without current GL context";
977 }
978
979 void NoContextGLApi::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
980 NOTREACHED()
981 << "Trying to call glGenRenderbuffersEXT() without current GL context";
982 LOG(ERROR)
983 << "Trying to call glGenRenderbuffersEXT() without current GL context";
984 }
985
986 void NoContextGLApi::glGenSamplersFn(GLsizei n, GLuint* samplers) {
987 NOTREACHED() << "Trying to call glGenSamplers() without current GL context";
988 LOG(ERROR) << "Trying to call glGenSamplers() without current GL context";
989 }
990
991 void NoContextGLApi::glGenTexturesFn(GLsizei n, GLuint* textures) {
992 NOTREACHED() << "Trying to call glGenTextures() without current GL context";
993 LOG(ERROR) << "Trying to call glGenTextures() without current GL context";
994 }
995
996 void NoContextGLApi::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
997 NOTREACHED()
998 << "Trying to call glGenTransformFeedbacks() without current GL context";
999 LOG(ERROR)
1000 << "Trying to call glGenTransformFeedbacks() without current GL context";
1001 }
1002
1003 void NoContextGLApi::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
1004 NOTREACHED()
1005 << "Trying to call glGenVertexArraysOES() without current GL context";
1006 LOG(ERROR)
1007 << "Trying to call glGenVertexArraysOES() without current GL context";
1008 }
1009
1010 void NoContextGLApi::glGetActiveAttribFn(GLuint program,
1011 GLuint index,
1012 GLsizei bufsize,
1013 GLsizei* length,
1014 GLint* size,
1015 GLenum* type,
1016 char* name) {
1017 NOTREACHED()
1018 << "Trying to call glGetActiveAttrib() without current GL context";
1019 LOG(ERROR) << "Trying to call glGetActiveAttrib() without current GL context";
1020 }
1021
1022 void NoContextGLApi::glGetActiveUniformFn(GLuint program,
1023 GLuint index,
1024 GLsizei bufsize,
1025 GLsizei* length,
1026 GLint* size,
1027 GLenum* type,
1028 char* name) {
1029 NOTREACHED()
1030 << "Trying to call glGetActiveUniform() without current GL context";
1031 LOG(ERROR)
1032 << "Trying to call glGetActiveUniform() without current GL context";
1033 }
1034
1035 void NoContextGLApi::glGetActiveUniformBlockivFn(GLuint program,
1036 GLuint uniformBlockIndex,
1037 GLenum pname,
1038 GLint* params) {
1039 NOTREACHED() << "Trying to call glGetActiveUniformBlockiv() without current "
1040 "GL context";
1041 LOG(ERROR) << "Trying to call glGetActiveUniformBlockiv() without current GL "
1042 "context";
1043 }
1044
1045 void NoContextGLApi::glGetActiveUniformBlockivRobustANGLEFn(
1046 GLuint program,
1047 GLuint uniformBlockIndex,
1048 GLenum pname,
1049 GLsizei bufSize,
1050 GLsizei* length,
1051 GLint* params) {
1052 NOTREACHED() << "Trying to call glGetActiveUniformBlockivRobustANGLE() "
1053 "without current GL context";
1054 LOG(ERROR) << "Trying to call glGetActiveUniformBlockivRobustANGLE() without "
1055 "current GL context";
1056 }
1057
1058 void NoContextGLApi::glGetActiveUniformBlockNameFn(GLuint program,
1059 GLuint uniformBlockIndex,
1060 GLsizei bufSize,
1061 GLsizei* length,
1062 char* uniformBlockName) {
1063 NOTREACHED() << "Trying to call glGetActiveUniformBlockName() without "
1064 "current GL context";
1065 LOG(ERROR) << "Trying to call glGetActiveUniformBlockName() without current "
1066 "GL context";
1067 }
1068
1069 void NoContextGLApi::glGetActiveUniformsivFn(GLuint program,
1070 GLsizei uniformCount,
1071 const GLuint* uniformIndices,
1072 GLenum pname,
1073 GLint* params) {
1074 NOTREACHED()
1075 << "Trying to call glGetActiveUniformsiv() without current GL context";
1076 LOG(ERROR)
1077 << "Trying to call glGetActiveUniformsiv() without current GL context";
1078 }
1079
1080 void NoContextGLApi::glGetAttachedShadersFn(GLuint program,
1081 GLsizei maxcount,
1082 GLsizei* count,
1083 GLuint* shaders) {
1084 NOTREACHED()
1085 << "Trying to call glGetAttachedShaders() without current GL context";
1086 LOG(ERROR)
1087 << "Trying to call glGetAttachedShaders() without current GL context";
1088 }
1089
1090 GLint NoContextGLApi::glGetAttribLocationFn(GLuint program, const char* name) {
1091 NOTREACHED()
1092 << "Trying to call glGetAttribLocation() without current GL context";
1093 LOG(ERROR)
1094 << "Trying to call glGetAttribLocation() without current GL context";
1095 return 0;
1096 }
1097
1098 void NoContextGLApi::glGetBooleani_vRobustANGLEFn(GLenum target,
1099 GLuint index,
1100 GLsizei bufSize,
1101 GLsizei* length,
1102 GLboolean* data) {
1103 NOTREACHED() << "Trying to call glGetBooleani_vRobustANGLE() without current "
1104 "GL context";
1105 LOG(ERROR) << "Trying to call glGetBooleani_vRobustANGLE() without current "
1106 "GL context";
1107 }
1108
1109 void NoContextGLApi::glGetBooleanvFn(GLenum pname, GLboolean* params) {
1110 NOTREACHED() << "Trying to call glGetBooleanv() without current GL context";
1111 LOG(ERROR) << "Trying to call glGetBooleanv() without current GL context";
1112 }
1113
1114 void NoContextGLApi::glGetBooleanvRobustANGLEFn(GLenum pname,
1115 GLsizei bufSize,
1116 GLsizei* length,
1117 GLboolean* data) {
1118 NOTREACHED()
1119 << "Trying to call glGetBooleanvRobustANGLE() without current GL context";
1120 LOG(ERROR)
1121 << "Trying to call glGetBooleanvRobustANGLE() without current GL context";
1122 }
1123
1124 void NoContextGLApi::glGetBufferParameteri64vRobustANGLEFn(GLenum target,
1125 GLenum pname,
1126 GLsizei bufSize,
1127 GLsizei* length,
1128 GLint64* params) {
1129 NOTREACHED() << "Trying to call glGetBufferParameteri64vRobustANGLE() "
1130 "without current GL context";
1131 LOG(ERROR) << "Trying to call glGetBufferParameteri64vRobustANGLE() without "
1132 "current GL context";
1133 }
1134
1135 void NoContextGLApi::glGetBufferParameterivFn(GLenum target,
1136 GLenum pname,
1137 GLint* params) {
1138 NOTREACHED()
1139 << "Trying to call glGetBufferParameteriv() without current GL context";
1140 LOG(ERROR)
1141 << "Trying to call glGetBufferParameteriv() without current GL context";
1142 }
1143
1144 void NoContextGLApi::glGetBufferParameterivRobustANGLEFn(GLenum target,
1145 GLenum pname,
1146 GLsizei bufSize,
1147 GLsizei* length,
1148 GLint* params) {
1149 NOTREACHED() << "Trying to call glGetBufferParameterivRobustANGLE() without "
1150 "current GL context";
1151 LOG(ERROR) << "Trying to call glGetBufferParameterivRobustANGLE() without "
1152 "current GL context";
1153 }
1154
1155 void NoContextGLApi::glGetBufferPointervRobustANGLEFn(GLenum target,
1156 GLenum pname,
1157 GLsizei bufSize,
1158 GLsizei* length,
1159 void** params) {
1160 NOTREACHED() << "Trying to call glGetBufferPointervRobustANGLE() without "
1161 "current GL context";
1162 LOG(ERROR) << "Trying to call glGetBufferPointervRobustANGLE() without "
1163 "current GL context";
1164 }
1165
1166 void NoContextGLApi::glGetDebugMessageLogFn(GLuint count,
1167 GLsizei bufSize,
1168 GLenum* sources,
1169 GLenum* types,
1170 GLuint* ids,
1171 GLenum* severities,
1172 GLsizei* lengths,
1173 char* messageLog) {
1174 NOTREACHED()
1175 << "Trying to call glGetDebugMessageLog() without current GL context";
1176 LOG(ERROR)
1177 << "Trying to call glGetDebugMessageLog() without current GL context";
1178 }
1179
1180 GLenum NoContextGLApi::glGetErrorFn(void) {
1181 NOTREACHED() << "Trying to call glGetError() without current GL context";
1182 LOG(ERROR) << "Trying to call glGetError() without current GL context";
1183 return static_cast<GLenum>(0);
1184 }
1185
1186 void NoContextGLApi::glGetFenceivNVFn(GLuint fence,
1187 GLenum pname,
1188 GLint* params) {
1189 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context";
1190 LOG(ERROR) << "Trying to call glGetFenceivNV() without current GL context";
1191 }
1192
1193 void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
1194 NOTREACHED() << "Trying to call glGetFloatv() without current GL context";
1195 LOG(ERROR) << "Trying to call glGetFloatv() without current GL context";
1196 }
1197
1198 void NoContextGLApi::glGetFloatvRobustANGLEFn(GLenum pname,
1199 GLsizei bufSize,
1200 GLsizei* length,
1201 GLfloat* data) {
1202 NOTREACHED()
1203 << "Trying to call glGetFloatvRobustANGLE() without current GL context";
1204 LOG(ERROR)
1205 << "Trying to call glGetFloatvRobustANGLE() without current GL context";
1206 }
1207
1208 GLint NoContextGLApi::glGetFragDataIndexFn(GLuint program, const char* name) {
1209 NOTREACHED()
1210 << "Trying to call glGetFragDataIndex() without current GL context";
1211 LOG(ERROR)
1212 << "Trying to call glGetFragDataIndex() without current GL context";
1213 return 0;
1214 }
1215
1216 GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program,
1217 const char* name) {
1218 NOTREACHED()
1219 << "Trying to call glGetFragDataLocation() without current GL context";
1220 LOG(ERROR)
1221 << "Trying to call glGetFragDataLocation() without current GL context";
1222 return 0;
1223 }
1224
1225 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn(
1226 GLenum target,
1227 GLenum attachment,
1228 GLenum pname,
1229 GLint* params) {
1230 NOTREACHED() << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
1231 "without current GL context";
1232 LOG(ERROR) << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
1233 "without current GL context";
1234 }
1235
1236 void NoContextGLApi::glGetFramebufferAttachmentParameterivRobustANGLEFn(
1237 GLenum target,
1238 GLenum attachment,
1239 GLenum pname,
1240 GLsizei bufSize,
1241 GLsizei* length,
1242 GLint* params) {
1243 NOTREACHED() << "Trying to call "
1244 "glGetFramebufferAttachmentParameterivRobustANGLE() without "
1245 "current GL context";
1246 LOG(ERROR) << "Trying to call "
1247 "glGetFramebufferAttachmentParameterivRobustANGLE() without "
1248 "current GL context";
1249 }
1250
1251 void NoContextGLApi::glGetFramebufferParameterivRobustANGLEFn(GLenum target,
1252 GLenum pname,
1253 GLsizei bufSize,
1254 GLsizei* length,
1255 GLint* params) {
1256 NOTREACHED() << "Trying to call glGetFramebufferParameterivRobustANGLE() "
1257 "without current GL context";
1258 LOG(ERROR) << "Trying to call glGetFramebufferParameterivRobustANGLE() "
1259 "without current GL context";
1260 }
1261
1262 GLenum NoContextGLApi::glGetGraphicsResetStatusARBFn(void) {
1263 NOTREACHED() << "Trying to call glGetGraphicsResetStatusARB() without "
1264 "current GL context";
1265 LOG(ERROR) << "Trying to call glGetGraphicsResetStatusARB() without current "
1266 "GL context";
1267 return static_cast<GLenum>(0);
1268 }
1269
1270 void NoContextGLApi::glGetInteger64i_vFn(GLenum target,
1271 GLuint index,
1272 GLint64* data) {
1273 NOTREACHED()
1274 << "Trying to call glGetInteger64i_v() without current GL context";
1275 LOG(ERROR) << "Trying to call glGetInteger64i_v() without current GL context";
1276 }
1277
1278 void NoContextGLApi::glGetInteger64i_vRobustANGLEFn(GLenum target,
1279 GLuint index,
1280 GLsizei bufSize,
1281 GLsizei* length,
1282 GLint64* data) {
1283 NOTREACHED() << "Trying to call glGetInteger64i_vRobustANGLE() without "
1284 "current GL context";
1285 LOG(ERROR) << "Trying to call glGetInteger64i_vRobustANGLE() without current "
1286 "GL context";
1287 }
1288
1289 void NoContextGLApi::glGetInteger64vFn(GLenum pname, GLint64* params) {
1290 NOTREACHED() << "Trying to call glGetInteger64v() without current GL context";
1291 LOG(ERROR) << "Trying to call glGetInteger64v() without current GL context";
1292 }
1293
1294 void NoContextGLApi::glGetInteger64vRobustANGLEFn(GLenum pname,
1295 GLsizei bufSize,
1296 GLsizei* length,
1297 GLint64* data) {
1298 NOTREACHED() << "Trying to call glGetInteger64vRobustANGLE() without current "
1299 "GL context";
1300 LOG(ERROR) << "Trying to call glGetInteger64vRobustANGLE() without current "
1301 "GL context";
1302 }
1303
1304 void NoContextGLApi::glGetIntegeri_vFn(GLenum target,
1305 GLuint index,
1306 GLint* data) {
1307 NOTREACHED() << "Trying to call glGetIntegeri_v() without current GL context";
1308 LOG(ERROR) << "Trying to call glGetIntegeri_v() without current GL context";
1309 }
1310
1311 void NoContextGLApi::glGetIntegeri_vRobustANGLEFn(GLenum target,
1312 GLuint index,
1313 GLsizei bufSize,
1314 GLsizei* length,
1315 GLint* data) {
1316 NOTREACHED() << "Trying to call glGetIntegeri_vRobustANGLE() without current "
1317 "GL context";
1318 LOG(ERROR) << "Trying to call glGetIntegeri_vRobustANGLE() without current "
1319 "GL context";
1320 }
1321
1322 void NoContextGLApi::glGetIntegervFn(GLenum pname, GLint* params) {
1323 NOTREACHED() << "Trying to call glGetIntegerv() without current GL context";
1324 LOG(ERROR) << "Trying to call glGetIntegerv() without current GL context";
1325 }
1326
1327 void NoContextGLApi::glGetIntegervRobustANGLEFn(GLenum pname,
1328 GLsizei bufSize,
1329 GLsizei* length,
1330 GLint* data) {
1331 NOTREACHED()
1332 << "Trying to call glGetIntegervRobustANGLE() without current GL context";
1333 LOG(ERROR)
1334 << "Trying to call glGetIntegervRobustANGLE() without current GL context";
1335 }
1336
1337 void NoContextGLApi::glGetInternalformativFn(GLenum target,
1338 GLenum internalformat,
1339 GLenum pname,
1340 GLsizei bufSize,
1341 GLint* params) {
1342 NOTREACHED()
1343 << "Trying to call glGetInternalformativ() without current GL context";
1344 LOG(ERROR)
1345 << "Trying to call glGetInternalformativ() without current GL context";
1346 }
1347
1348 void NoContextGLApi::glGetInternalformativRobustANGLEFn(GLenum target,
1349 GLenum internalformat,
1350 GLenum pname,
1351 GLsizei bufSize,
1352 GLsizei* length,
1353 GLint* params) {
1354 NOTREACHED() << "Trying to call glGetInternalformativRobustANGLE() without "
1355 "current GL context";
1356 LOG(ERROR) << "Trying to call glGetInternalformativRobustANGLE() without "
1357 "current GL context";
1358 }
1359
1360 void NoContextGLApi::glGetMultisamplefvRobustANGLEFn(GLenum pname,
1361 GLuint index,
1362 GLsizei bufSize,
1363 GLsizei* length,
1364 GLfloat* val) {
1365 NOTREACHED() << "Trying to call glGetMultisamplefvRobustANGLE() without "
1366 "current GL context";
1367 LOG(ERROR) << "Trying to call glGetMultisamplefvRobustANGLE() without "
1368 "current GL context";
1369 }
1370
1371 void NoContextGLApi::glGetnUniformfvRobustANGLEFn(GLuint program,
1372 GLint location,
1373 GLsizei bufSize,
1374 GLsizei* length,
1375 GLfloat* params) {
1376 NOTREACHED() << "Trying to call glGetnUniformfvRobustANGLE() without current "
1377 "GL context";
1378 LOG(ERROR) << "Trying to call glGetnUniformfvRobustANGLE() without current "
1379 "GL context";
1380 }
1381
1382 void NoContextGLApi::glGetnUniformivRobustANGLEFn(GLuint program,
1383 GLint location,
1384 GLsizei bufSize,
1385 GLsizei* length,
1386 GLint* params) {
1387 NOTREACHED() << "Trying to call glGetnUniformivRobustANGLE() without current "
1388 "GL context";
1389 LOG(ERROR) << "Trying to call glGetnUniformivRobustANGLE() without current "
1390 "GL context";
1391 }
1392
1393 void NoContextGLApi::glGetnUniformuivRobustANGLEFn(GLuint program,
1394 GLint location,
1395 GLsizei bufSize,
1396 GLsizei* length,
1397 GLuint* params) {
1398 NOTREACHED() << "Trying to call glGetnUniformuivRobustANGLE() without "
1399 "current GL context";
1400 LOG(ERROR) << "Trying to call glGetnUniformuivRobustANGLE() without current "
1401 "GL context";
1402 }
1403
1404 void NoContextGLApi::glGetObjectLabelFn(GLenum identifier,
1405 GLuint name,
1406 GLsizei bufSize,
1407 GLsizei* length,
1408 char* label) {
1409 NOTREACHED()
1410 << "Trying to call glGetObjectLabel() without current GL context";
1411 LOG(ERROR) << "Trying to call glGetObjectLabel() without current GL context";
1412 }
1413
1414 void NoContextGLApi::glGetObjectPtrLabelFn(void* ptr,
1415 GLsizei bufSize,
1416 GLsizei* length,
1417 char* label) {
1418 NOTREACHED()
1419 << "Trying to call glGetObjectPtrLabel() without current GL context";
1420 LOG(ERROR)
1421 << "Trying to call glGetObjectPtrLabel() without current GL context";
1422 }
1423
1424 void NoContextGLApi::glGetPointervFn(GLenum pname, void** params) {
1425 NOTREACHED() << "Trying to call glGetPointerv() without current GL context";
1426 LOG(ERROR) << "Trying to call glGetPointerv() without current GL context";
1427 }
1428
1429 void NoContextGLApi::glGetPointervRobustANGLERobustANGLEFn(GLenum pname,
1430 GLsizei bufSize,
1431 GLsizei* length,
1432 void** params) {
1433 NOTREACHED() << "Trying to call glGetPointervRobustANGLERobustANGLE() "
1434 "without current GL context";
1435 LOG(ERROR) << "Trying to call glGetPointervRobustANGLERobustANGLE() without "
1436 "current GL context";
1437 }
1438
1439 void NoContextGLApi::glGetProgramBinaryFn(GLuint program,
1440 GLsizei bufSize,
1441 GLsizei* length,
1442 GLenum* binaryFormat,
1443 GLvoid* binary) {
1444 NOTREACHED()
1445 << "Trying to call glGetProgramBinary() without current GL context";
1446 LOG(ERROR)
1447 << "Trying to call glGetProgramBinary() without current GL context";
1448 }
1449
1450 void NoContextGLApi::glGetProgramInfoLogFn(GLuint program,
1451 GLsizei bufsize,
1452 GLsizei* length,
1453 char* infolog) {
1454 NOTREACHED()
1455 << "Trying to call glGetProgramInfoLog() without current GL context";
1456 LOG(ERROR)
1457 << "Trying to call glGetProgramInfoLog() without current GL context";
1458 }
1459
1460 void NoContextGLApi::glGetProgramInterfaceivFn(GLuint program,
1461 GLenum programInterface,
1462 GLenum pname,
1463 GLint* params) {
1464 NOTREACHED()
1465 << "Trying to call glGetProgramInterfaceiv() without current GL context";
1466 LOG(ERROR)
1467 << "Trying to call glGetProgramInterfaceiv() without current GL context";
1468 }
1469
1470 void NoContextGLApi::glGetProgramInterfaceivRobustANGLEFn(
1471 GLuint program,
1472 GLenum programInterface,
1473 GLenum pname,
1474 GLsizei bufSize,
1475 GLsizei* length,
1476 GLint* params) {
1477 NOTREACHED() << "Trying to call glGetProgramInterfaceivRobustANGLE() without "
1478 "current GL context";
1479 LOG(ERROR) << "Trying to call glGetProgramInterfaceivRobustANGLE() without "
1480 "current GL context";
1481 }
1482
1483 void NoContextGLApi::glGetProgramivFn(GLuint program,
1484 GLenum pname,
1485 GLint* params) {
1486 NOTREACHED() << "Trying to call glGetProgramiv() without current GL context";
1487 LOG(ERROR) << "Trying to call glGetProgramiv() without current GL context";
1488 }
1489
1490 void NoContextGLApi::glGetProgramivRobustANGLEFn(GLuint program,
1491 GLenum pname,
1492 GLsizei bufSize,
1493 GLsizei* length,
1494 GLint* params) {
1495 NOTREACHED() << "Trying to call glGetProgramivRobustANGLE() without current "
1496 "GL context";
1497 LOG(ERROR) << "Trying to call glGetProgramivRobustANGLE() without current GL "
1498 "context";
1499 }
1500
1501 void NoContextGLApi::glGetProgramResourceivFn(GLuint program,
1502 GLenum programInterface,
1503 GLuint index,
1504 GLsizei propCount,
1505 const GLenum* props,
1506 GLsizei bufSize,
1507 GLsizei* length,
1508 GLint* params) {
1509 NOTREACHED()
1510 << "Trying to call glGetProgramResourceiv() without current GL context";
1511 LOG(ERROR)
1512 << "Trying to call glGetProgramResourceiv() without current GL context";
1513 }
1514
1515 GLint NoContextGLApi::glGetProgramResourceLocationFn(GLuint program,
1516 GLenum programInterface,
1517 const char* name) {
1518 NOTREACHED() << "Trying to call glGetProgramResourceLocation() without "
1519 "current GL context";
1520 LOG(ERROR) << "Trying to call glGetProgramResourceLocation() without current "
1521 "GL context";
1522 return 0;
1523 }
1524
1525 void NoContextGLApi::glGetProgramResourceNameFn(GLuint program,
1526 GLenum programInterface,
1527 GLuint index,
1528 GLsizei bufSize,
1529 GLsizei* length,
1530 GLchar* name) {
1531 NOTREACHED()
1532 << "Trying to call glGetProgramResourceName() without current GL context";
1533 LOG(ERROR)
1534 << "Trying to call glGetProgramResourceName() without current GL context";
1535 }
1536
1537 void NoContextGLApi::glGetQueryivFn(GLenum target,
1538 GLenum pname,
1539 GLint* params) {
1540 NOTREACHED() << "Trying to call glGetQueryiv() without current GL context";
1541 LOG(ERROR) << "Trying to call glGetQueryiv() without current GL context";
1542 }
1543
1544 void NoContextGLApi::glGetQueryivRobustANGLEFn(GLenum target,
1545 GLenum pname,
1546 GLsizei bufSize,
1547 GLsizei* length,
1548 GLint* params) {
1549 NOTREACHED()
1550 << "Trying to call glGetQueryivRobustANGLE() without current GL context";
1551 LOG(ERROR)
1552 << "Trying to call glGetQueryivRobustANGLE() without current GL context";
1553 }
1554
1555 void NoContextGLApi::glGetQueryObjecti64vFn(GLuint id,
1556 GLenum pname,
1557 GLint64* params) {
1558 NOTREACHED()
1559 << "Trying to call glGetQueryObjecti64v() without current GL context";
1560 LOG(ERROR)
1561 << "Trying to call glGetQueryObjecti64v() without current GL context";
1562 }
1563
1564 void NoContextGLApi::glGetQueryObjecti64vRobustANGLEFn(GLuint id,
1565 GLenum pname,
1566 GLsizei bufSize,
1567 GLsizei* length,
1568 GLint64* params) {
1569 NOTREACHED() << "Trying to call glGetQueryObjecti64vRobustANGLE() without "
1570 "current GL context";
1571 LOG(ERROR) << "Trying to call glGetQueryObjecti64vRobustANGLE() without "
1572 "current GL context";
1573 }
1574
1575 void NoContextGLApi::glGetQueryObjectivFn(GLuint id,
1576 GLenum pname,
1577 GLint* params) {
1578 NOTREACHED()
1579 << "Trying to call glGetQueryObjectiv() without current GL context";
1580 LOG(ERROR)
1581 << "Trying to call glGetQueryObjectiv() without current GL context";
1582 }
1583
1584 void NoContextGLApi::glGetQueryObjectivRobustANGLEFn(GLuint id,
1585 GLenum pname,
1586 GLsizei bufSize,
1587 GLsizei* length,
1588 GLint* params) {
1589 NOTREACHED() << "Trying to call glGetQueryObjectivRobustANGLE() without "
1590 "current GL context";
1591 LOG(ERROR) << "Trying to call glGetQueryObjectivRobustANGLE() without "
1592 "current GL context";
1593 }
1594
1595 void NoContextGLApi::glGetQueryObjectui64vFn(GLuint id,
1596 GLenum pname,
1597 GLuint64* params) {
1598 NOTREACHED()
1599 << "Trying to call glGetQueryObjectui64v() without current GL context";
1600 LOG(ERROR)
1601 << "Trying to call glGetQueryObjectui64v() without current GL context";
1602 }
1603
1604 void NoContextGLApi::glGetQueryObjectui64vRobustANGLEFn(GLuint id,
1605 GLenum pname,
1606 GLsizei bufSize,
1607 GLsizei* length,
1608 GLuint64* params) {
1609 NOTREACHED() << "Trying to call glGetQueryObjectui64vRobustANGLE() without "
1610 "current GL context";
1611 LOG(ERROR) << "Trying to call glGetQueryObjectui64vRobustANGLE() without "
1612 "current GL context";
1613 }
1614
1615 void NoContextGLApi::glGetQueryObjectuivFn(GLuint id,
1616 GLenum pname,
1617 GLuint* params) {
1618 NOTREACHED()
1619 << "Trying to call glGetQueryObjectuiv() without current GL context";
1620 LOG(ERROR)
1621 << "Trying to call glGetQueryObjectuiv() without current GL context";
1622 }
1623
1624 void NoContextGLApi::glGetQueryObjectuivRobustANGLEFn(GLuint id,
1625 GLenum pname,
1626 GLsizei bufSize,
1627 GLsizei* length,
1628 GLuint* params) {
1629 NOTREACHED() << "Trying to call glGetQueryObjectuivRobustANGLE() without "
1630 "current GL context";
1631 LOG(ERROR) << "Trying to call glGetQueryObjectuivRobustANGLE() without "
1632 "current GL context";
1633 }
1634
1635 void NoContextGLApi::glGetRenderbufferParameterivEXTFn(GLenum target,
1636 GLenum pname,
1637 GLint* params) {
1638 NOTREACHED() << "Trying to call glGetRenderbufferParameterivEXT() without "
1639 "current GL context";
1640 LOG(ERROR) << "Trying to call glGetRenderbufferParameterivEXT() without "
1641 "current GL context";
1642 }
1643
1644 void NoContextGLApi::glGetRenderbufferParameterivRobustANGLEFn(GLenum target,
1645 GLenum pname,
1646 GLsizei bufSize,
1647 GLsizei* length,
1648 GLint* params) {
1649 NOTREACHED() << "Trying to call glGetRenderbufferParameterivRobustANGLE() "
1650 "without current GL context";
1651 LOG(ERROR) << "Trying to call glGetRenderbufferParameterivRobustANGLE() "
1652 "without current GL context";
1653 }
1654
1655 void NoContextGLApi::glGetSamplerParameterfvFn(GLuint sampler,
1656 GLenum pname,
1657 GLfloat* params) {
1658 NOTREACHED()
1659 << "Trying to call glGetSamplerParameterfv() without current GL context";
1660 LOG(ERROR)
1661 << "Trying to call glGetSamplerParameterfv() without current GL context";
1662 }
1663
1664 void NoContextGLApi::glGetSamplerParameterfvRobustANGLEFn(GLuint sampler,
1665 GLenum pname,
1666 GLsizei bufSize,
1667 GLsizei* length,
1668 GLfloat* params) {
1669 NOTREACHED() << "Trying to call glGetSamplerParameterfvRobustANGLE() without "
1670 "current GL context";
1671 LOG(ERROR) << "Trying to call glGetSamplerParameterfvRobustANGLE() without "
1672 "current GL context";
1673 }
1674
1675 void NoContextGLApi::glGetSamplerParameterIivRobustANGLEFn(GLuint sampler,
1676 GLenum pname,
1677 GLsizei bufSize,
1678 GLsizei* length,
1679 GLint* params) {
1680 NOTREACHED() << "Trying to call glGetSamplerParameterIivRobustANGLE() "
1681 "without current GL context";
1682 LOG(ERROR) << "Trying to call glGetSamplerParameterIivRobustANGLE() without "
1683 "current GL context";
1684 }
1685
1686 void NoContextGLApi::glGetSamplerParameterIuivRobustANGLEFn(GLuint sampler,
1687 GLenum pname,
1688 GLsizei bufSize,
1689 GLsizei* length,
1690 GLuint* params) {
1691 NOTREACHED() << "Trying to call glGetSamplerParameterIuivRobustANGLE() "
1692 "without current GL context";
1693 LOG(ERROR) << "Trying to call glGetSamplerParameterIuivRobustANGLE() without "
1694 "current GL context";
1695 }
1696
1697 void NoContextGLApi::glGetSamplerParameterivFn(GLuint sampler,
1698 GLenum pname,
1699 GLint* params) {
1700 NOTREACHED()
1701 << "Trying to call glGetSamplerParameteriv() without current GL context";
1702 LOG(ERROR)
1703 << "Trying to call glGetSamplerParameteriv() without current GL context";
1704 }
1705
1706 void NoContextGLApi::glGetSamplerParameterivRobustANGLEFn(GLuint sampler,
1707 GLenum pname,
1708 GLsizei bufSize,
1709 GLsizei* length,
1710 GLint* params) {
1711 NOTREACHED() << "Trying to call glGetSamplerParameterivRobustANGLE() without "
1712 "current GL context";
1713 LOG(ERROR) << "Trying to call glGetSamplerParameterivRobustANGLE() without "
1714 "current GL context";
1715 }
1716
1717 void NoContextGLApi::glGetShaderInfoLogFn(GLuint shader,
1718 GLsizei bufsize,
1719 GLsizei* length,
1720 char* infolog) {
1721 NOTREACHED()
1722 << "Trying to call glGetShaderInfoLog() without current GL context";
1723 LOG(ERROR)
1724 << "Trying to call glGetShaderInfoLog() without current GL context";
1725 }
1726
1727 void NoContextGLApi::glGetShaderivFn(GLuint shader,
1728 GLenum pname,
1729 GLint* params) {
1730 NOTREACHED() << "Trying to call glGetShaderiv() without current GL context";
1731 LOG(ERROR) << "Trying to call glGetShaderiv() without current GL context";
1732 }
1733
1734 void NoContextGLApi::glGetShaderivRobustANGLEFn(GLuint shader,
1735 GLenum pname,
1736 GLsizei bufSize,
1737 GLsizei* length,
1738 GLint* params) {
1739 NOTREACHED()
1740 << "Trying to call glGetShaderivRobustANGLE() without current GL context";
1741 LOG(ERROR)
1742 << "Trying to call glGetShaderivRobustANGLE() without current GL context";
1743 }
1744
1745 void NoContextGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype,
1746 GLenum precisiontype,
1747 GLint* range,
1748 GLint* precision) {
1749 NOTREACHED() << "Trying to call glGetShaderPrecisionFormat() without current "
1750 "GL context";
1751 LOG(ERROR) << "Trying to call glGetShaderPrecisionFormat() without current "
1752 "GL context";
1753 }
1754
1755 void NoContextGLApi::glGetShaderSourceFn(GLuint shader,
1756 GLsizei bufsize,
1757 GLsizei* length,
1758 char* source) {
1759 NOTREACHED()
1760 << "Trying to call glGetShaderSource() without current GL context";
1761 LOG(ERROR) << "Trying to call glGetShaderSource() without current GL context";
1762 }
1763
1764 const GLubyte* NoContextGLApi::glGetStringFn(GLenum name) {
1765 NOTREACHED() << "Trying to call glGetString() without current GL context";
1766 LOG(ERROR) << "Trying to call glGetString() without current GL context";
1767 return NULL;
1768 }
1769
1770 const GLubyte* NoContextGLApi::glGetStringiFn(GLenum name, GLuint index) {
1771 NOTREACHED() << "Trying to call glGetStringi() without current GL context";
1772 LOG(ERROR) << "Trying to call glGetStringi() without current GL context";
1773 return NULL;
1774 }
1775
1776 void NoContextGLApi::glGetSyncivFn(GLsync sync,
1777 GLenum pname,
1778 GLsizei bufSize,
1779 GLsizei* length,
1780 GLint* values) {
1781 NOTREACHED() << "Trying to call glGetSynciv() without current GL context";
1782 LOG(ERROR) << "Trying to call glGetSynciv() without current GL context";
1783 }
1784
1785 void NoContextGLApi::glGetTexLevelParameterfvFn(GLenum target,
1786 GLint level,
1787 GLenum pname,
1788 GLfloat* params) {
1789 NOTREACHED()
1790 << "Trying to call glGetTexLevelParameterfv() without current GL context";
1791 LOG(ERROR)
1792 << "Trying to call glGetTexLevelParameterfv() without current GL context";
1793 }
1794
1795 void NoContextGLApi::glGetTexLevelParameterfvRobustANGLEFn(GLenum target,
1796 GLint level,
1797 GLenum pname,
1798 GLsizei bufSize,
1799 GLsizei* length,
1800 GLfloat* params) {
1801 NOTREACHED() << "Trying to call glGetTexLevelParameterfvRobustANGLE() "
1802 "without current GL context";
1803 LOG(ERROR) << "Trying to call glGetTexLevelParameterfvRobustANGLE() without "
1804 "current GL context";
1805 }
1806
1807 void NoContextGLApi::glGetTexLevelParameterivFn(GLenum target,
1808 GLint level,
1809 GLenum pname,
1810 GLint* params) {
1811 NOTREACHED()
1812 << "Trying to call glGetTexLevelParameteriv() without current GL context";
1813 LOG(ERROR)
1814 << "Trying to call glGetTexLevelParameteriv() without current GL context";
1815 }
1816
1817 void NoContextGLApi::glGetTexLevelParameterivRobustANGLEFn(GLenum target,
1818 GLint level,
1819 GLenum pname,
1820 GLsizei bufSize,
1821 GLsizei* length,
1822 GLint* params) {
1823 NOTREACHED() << "Trying to call glGetTexLevelParameterivRobustANGLE() "
1824 "without current GL context";
1825 LOG(ERROR) << "Trying to call glGetTexLevelParameterivRobustANGLE() without "
1826 "current GL context";
1827 }
1828
1829 void NoContextGLApi::glGetTexParameterfvFn(GLenum target,
1830 GLenum pname,
1831 GLfloat* params) {
1832 NOTREACHED()
1833 << "Trying to call glGetTexParameterfv() without current GL context";
1834 LOG(ERROR)
1835 << "Trying to call glGetTexParameterfv() without current GL context";
1836 }
1837
1838 void NoContextGLApi::glGetTexParameterfvRobustANGLEFn(GLenum target,
1839 GLenum pname,
1840 GLsizei bufSize,
1841 GLsizei* length,
1842 GLfloat* params) {
1843 NOTREACHED() << "Trying to call glGetTexParameterfvRobustANGLE() without "
1844 "current GL context";
1845 LOG(ERROR) << "Trying to call glGetTexParameterfvRobustANGLE() without "
1846 "current GL context";
1847 }
1848
1849 void NoContextGLApi::glGetTexParameterIivRobustANGLEFn(GLenum target,
1850 GLenum pname,
1851 GLsizei bufSize,
1852 GLsizei* length,
1853 GLint* params) {
1854 NOTREACHED() << "Trying to call glGetTexParameterIivRobustANGLE() without "
1855 "current GL context";
1856 LOG(ERROR) << "Trying to call glGetTexParameterIivRobustANGLE() without "
1857 "current GL context";
1858 }
1859
1860 void NoContextGLApi::glGetTexParameterIuivRobustANGLEFn(GLenum target,
1861 GLenum pname,
1862 GLsizei bufSize,
1863 GLsizei* length,
1864 GLuint* params) {
1865 NOTREACHED() << "Trying to call glGetTexParameterIuivRobustANGLE() without "
1866 "current GL context";
1867 LOG(ERROR) << "Trying to call glGetTexParameterIuivRobustANGLE() without "
1868 "current GL context";
1869 }
1870
1871 void NoContextGLApi::glGetTexParameterivFn(GLenum target,
1872 GLenum pname,
1873 GLint* params) {
1874 NOTREACHED()
1875 << "Trying to call glGetTexParameteriv() without current GL context";
1876 LOG(ERROR)
1877 << "Trying to call glGetTexParameteriv() without current GL context";
1878 }
1879
1880 void NoContextGLApi::glGetTexParameterivRobustANGLEFn(GLenum target,
1881 GLenum pname,
1882 GLsizei bufSize,
1883 GLsizei* length,
1884 GLint* params) {
1885 NOTREACHED() << "Trying to call glGetTexParameterivRobustANGLE() without "
1886 "current GL context";
1887 LOG(ERROR) << "Trying to call glGetTexParameterivRobustANGLE() without "
1888 "current GL context";
1889 }
1890
1891 void NoContextGLApi::glGetTransformFeedbackVaryingFn(GLuint program,
1892 GLuint index,
1893 GLsizei bufSize,
1894 GLsizei* length,
1895 GLsizei* size,
1896 GLenum* type,
1897 char* name) {
1898 NOTREACHED() << "Trying to call glGetTransformFeedbackVarying() without "
1899 "current GL context";
1900 LOG(ERROR) << "Trying to call glGetTransformFeedbackVarying() without "
1901 "current GL context";
1902 }
1903
1904 void NoContextGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
1905 GLsizei bufsize,
1906 GLsizei* length,
1907 char* source) {
1908 NOTREACHED() << "Trying to call glGetTranslatedShaderSourceANGLE() without "
1909 "current GL context";
1910 LOG(ERROR) << "Trying to call glGetTranslatedShaderSourceANGLE() without "
1911 "current GL context";
1912 }
1913
1914 GLuint NoContextGLApi::glGetUniformBlockIndexFn(GLuint program,
1915 const char* uniformBlockName) {
1916 NOTREACHED()
1917 << "Trying to call glGetUniformBlockIndex() without current GL context";
1918 LOG(ERROR)
1919 << "Trying to call glGetUniformBlockIndex() without current GL context";
1920 return 0U;
1921 }
1922
1923 void NoContextGLApi::glGetUniformfvFn(GLuint program,
1924 GLint location,
1925 GLfloat* params) {
1926 NOTREACHED() << "Trying to call glGetUniformfv() without current GL context";
1927 LOG(ERROR) << "Trying to call glGetUniformfv() without current GL context";
1928 }
1929
1930 void NoContextGLApi::glGetUniformfvRobustANGLEFn(GLuint program,
1931 GLint location,
1932 GLsizei bufSize,
1933 GLsizei* length,
1934 GLfloat* params) {
1935 NOTREACHED() << "Trying to call glGetUniformfvRobustANGLE() without current "
1936 "GL context";
1937 LOG(ERROR) << "Trying to call glGetUniformfvRobustANGLE() without current GL "
1938 "context";
1939 }
1940
1941 void NoContextGLApi::glGetUniformIndicesFn(GLuint program,
1942 GLsizei uniformCount,
1943 const char* const* uniformNames,
1944 GLuint* uniformIndices) {
1945 NOTREACHED()
1946 << "Trying to call glGetUniformIndices() without current GL context";
1947 LOG(ERROR)
1948 << "Trying to call glGetUniformIndices() without current GL context";
1949 }
1950
1951 void NoContextGLApi::glGetUniformivFn(GLuint program,
1952 GLint location,
1953 GLint* params) {
1954 NOTREACHED() << "Trying to call glGetUniformiv() without current GL context";
1955 LOG(ERROR) << "Trying to call glGetUniformiv() without current GL context";
1956 }
1957
1958 void NoContextGLApi::glGetUniformivRobustANGLEFn(GLuint program,
1959 GLint location,
1960 GLsizei bufSize,
1961 GLsizei* length,
1962 GLint* params) {
1963 NOTREACHED() << "Trying to call glGetUniformivRobustANGLE() without current "
1964 "GL context";
1965 LOG(ERROR) << "Trying to call glGetUniformivRobustANGLE() without current GL "
1966 "context";
1967 }
1968
1969 GLint NoContextGLApi::glGetUniformLocationFn(GLuint program, const char* name) {
1970 NOTREACHED()
1971 << "Trying to call glGetUniformLocation() without current GL context";
1972 LOG(ERROR)
1973 << "Trying to call glGetUniformLocation() without current GL context";
1974 return 0;
1975 }
1976
1977 void NoContextGLApi::glGetUniformuivFn(GLuint program,
1978 GLint location,
1979 GLuint* params) {
1980 NOTREACHED() << "Trying to call glGetUniformuiv() without current GL context";
1981 LOG(ERROR) << "Trying to call glGetUniformuiv() without current GL context";
1982 }
1983
1984 void NoContextGLApi::glGetUniformuivRobustANGLEFn(GLuint program,
1985 GLint location,
1986 GLsizei bufSize,
1987 GLsizei* length,
1988 GLuint* params) {
1989 NOTREACHED() << "Trying to call glGetUniformuivRobustANGLE() without current "
1990 "GL context";
1991 LOG(ERROR) << "Trying to call glGetUniformuivRobustANGLE() without current "
1992 "GL context";
1993 }
1994
1995 void NoContextGLApi::glGetVertexAttribfvFn(GLuint index,
1996 GLenum pname,
1997 GLfloat* params) {
1998 NOTREACHED()
1999 << "Trying to call glGetVertexAttribfv() without current GL context";
2000 LOG(ERROR)
2001 << "Trying to call glGetVertexAttribfv() without current GL context";
2002 }
2003
2004 void NoContextGLApi::glGetVertexAttribfvRobustANGLEFn(GLuint index,
2005 GLenum pname,
2006 GLsizei bufSize,
2007 GLsizei* length,
2008 GLfloat* params) {
2009 NOTREACHED() << "Trying to call glGetVertexAttribfvRobustANGLE() without "
2010 "current GL context";
2011 LOG(ERROR) << "Trying to call glGetVertexAttribfvRobustANGLE() without "
2012 "current GL context";
2013 }
2014
2015 void NoContextGLApi::glGetVertexAttribIivRobustANGLEFn(GLuint index,
2016 GLenum pname,
2017 GLsizei bufSize,
2018 GLsizei* length,
2019 GLint* params) {
2020 NOTREACHED() << "Trying to call glGetVertexAttribIivRobustANGLE() without "
2021 "current GL context";
2022 LOG(ERROR) << "Trying to call glGetVertexAttribIivRobustANGLE() without "
2023 "current GL context";
2024 }
2025
2026 void NoContextGLApi::glGetVertexAttribIuivRobustANGLEFn(GLuint index,
2027 GLenum pname,
2028 GLsizei bufSize,
2029 GLsizei* length,
2030 GLuint* params) {
2031 NOTREACHED() << "Trying to call glGetVertexAttribIuivRobustANGLE() without "
2032 "current GL context";
2033 LOG(ERROR) << "Trying to call glGetVertexAttribIuivRobustANGLE() without "
2034 "current GL context";
2035 }
2036
2037 void NoContextGLApi::glGetVertexAttribivFn(GLuint index,
2038 GLenum pname,
2039 GLint* params) {
2040 NOTREACHED()
2041 << "Trying to call glGetVertexAttribiv() without current GL context";
2042 LOG(ERROR)
2043 << "Trying to call glGetVertexAttribiv() without current GL context";
2044 }
2045
2046 void NoContextGLApi::glGetVertexAttribivRobustANGLEFn(GLuint index,
2047 GLenum pname,
2048 GLsizei bufSize,
2049 GLsizei* length,
2050 GLint* params) {
2051 NOTREACHED() << "Trying to call glGetVertexAttribivRobustANGLE() without "
2052 "current GL context";
2053 LOG(ERROR) << "Trying to call glGetVertexAttribivRobustANGLE() without "
2054 "current GL context";
2055 }
2056
2057 void NoContextGLApi::glGetVertexAttribPointervFn(GLuint index,
2058 GLenum pname,
2059 void** pointer) {
2060 NOTREACHED() << "Trying to call glGetVertexAttribPointerv() without current "
2061 "GL context";
2062 LOG(ERROR) << "Trying to call glGetVertexAttribPointerv() without current GL "
2063 "context";
2064 }
2065
2066 void NoContextGLApi::glGetVertexAttribPointervRobustANGLEFn(GLuint index,
2067 GLenum pname,
2068 GLsizei bufSize,
2069 GLsizei* length,
2070 void** pointer) {
2071 NOTREACHED() << "Trying to call glGetVertexAttribPointervRobustANGLE() "
2072 "without current GL context";
2073 LOG(ERROR) << "Trying to call glGetVertexAttribPointervRobustANGLE() without "
2074 "current GL context";
2075 }
2076
2077 void NoContextGLApi::glHintFn(GLenum target, GLenum mode) {
2078 NOTREACHED() << "Trying to call glHint() without current GL context";
2079 LOG(ERROR) << "Trying to call glHint() without current GL context";
2080 }
2081
2082 void NoContextGLApi::glInsertEventMarkerEXTFn(GLsizei length,
2083 const char* marker) {
2084 NOTREACHED()
2085 << "Trying to call glInsertEventMarkerEXT() without current GL context";
2086 LOG(ERROR)
2087 << "Trying to call glInsertEventMarkerEXT() without current GL context";
2088 }
2089
2090 void NoContextGLApi::glInvalidateFramebufferFn(GLenum target,
2091 GLsizei numAttachments,
2092 const GLenum* attachments) {
2093 NOTREACHED()
2094 << "Trying to call glInvalidateFramebuffer() without current GL context";
2095 LOG(ERROR)
2096 << "Trying to call glInvalidateFramebuffer() without current GL context";
2097 }
2098
2099 void NoContextGLApi::glInvalidateSubFramebufferFn(GLenum target,
2100 GLsizei numAttachments,
2101 const GLenum* attachments,
2102 GLint x,
2103 GLint y,
2104 GLint width,
2105 GLint height) {
2106 NOTREACHED() << "Trying to call glInvalidateSubFramebuffer() without current "
2107 "GL context";
2108 LOG(ERROR) << "Trying to call glInvalidateSubFramebuffer() without current "
2109 "GL context";
2110 }
2111
2112 GLboolean NoContextGLApi::glIsBufferFn(GLuint buffer) {
2113 NOTREACHED() << "Trying to call glIsBuffer() without current GL context";
2114 LOG(ERROR) << "Trying to call glIsBuffer() without current GL context";
2115 return GL_FALSE;
2116 }
2117
2118 GLboolean NoContextGLApi::glIsEnabledFn(GLenum cap) {
2119 NOTREACHED() << "Trying to call glIsEnabled() without current GL context";
2120 LOG(ERROR) << "Trying to call glIsEnabled() without current GL context";
2121 return GL_FALSE;
2122 }
2123
2124 GLboolean NoContextGLApi::glIsFenceAPPLEFn(GLuint fence) {
2125 NOTREACHED() << "Trying to call glIsFenceAPPLE() without current GL context";
2126 LOG(ERROR) << "Trying to call glIsFenceAPPLE() without current GL context";
2127 return GL_FALSE;
2128 }
2129
2130 GLboolean NoContextGLApi::glIsFenceNVFn(GLuint fence) {
2131 NOTREACHED() << "Trying to call glIsFenceNV() without current GL context";
2132 LOG(ERROR) << "Trying to call glIsFenceNV() without current GL context";
2133 return GL_FALSE;
2134 }
2135
2136 GLboolean NoContextGLApi::glIsFramebufferEXTFn(GLuint framebuffer) {
2137 NOTREACHED()
2138 << "Trying to call glIsFramebufferEXT() without current GL context";
2139 LOG(ERROR)
2140 << "Trying to call glIsFramebufferEXT() without current GL context";
2141 return GL_FALSE;
2142 }
2143
2144 GLboolean NoContextGLApi::glIsPathNVFn(GLuint path) {
2145 NOTREACHED() << "Trying to call glIsPathNV() without current GL context";
2146 LOG(ERROR) << "Trying to call glIsPathNV() without current GL context";
2147 return GL_FALSE;
2148 }
2149
2150 GLboolean NoContextGLApi::glIsProgramFn(GLuint program) {
2151 NOTREACHED() << "Trying to call glIsProgram() without current GL context";
2152 LOG(ERROR) << "Trying to call glIsProgram() without current GL context";
2153 return GL_FALSE;
2154 }
2155
2156 GLboolean NoContextGLApi::glIsQueryFn(GLuint query) {
2157 NOTREACHED() << "Trying to call glIsQuery() without current GL context";
2158 LOG(ERROR) << "Trying to call glIsQuery() without current GL context";
2159 return GL_FALSE;
2160 }
2161
2162 GLboolean NoContextGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer) {
2163 NOTREACHED()
2164 << "Trying to call glIsRenderbufferEXT() without current GL context";
2165 LOG(ERROR)
2166 << "Trying to call glIsRenderbufferEXT() without current GL context";
2167 return GL_FALSE;
2168 }
2169
2170 GLboolean NoContextGLApi::glIsSamplerFn(GLuint sampler) {
2171 NOTREACHED() << "Trying to call glIsSampler() without current GL context";
2172 LOG(ERROR) << "Trying to call glIsSampler() without current GL context";
2173 return GL_FALSE;
2174 }
2175
2176 GLboolean NoContextGLApi::glIsShaderFn(GLuint shader) {
2177 NOTREACHED() << "Trying to call glIsShader() without current GL context";
2178 LOG(ERROR) << "Trying to call glIsShader() without current GL context";
2179 return GL_FALSE;
2180 }
2181
2182 GLboolean NoContextGLApi::glIsSyncFn(GLsync sync) {
2183 NOTREACHED() << "Trying to call glIsSync() without current GL context";
2184 LOG(ERROR) << "Trying to call glIsSync() without current GL context";
2185 return GL_FALSE;
2186 }
2187
2188 GLboolean NoContextGLApi::glIsTextureFn(GLuint texture) {
2189 NOTREACHED() << "Trying to call glIsTexture() without current GL context";
2190 LOG(ERROR) << "Trying to call glIsTexture() without current GL context";
2191 return GL_FALSE;
2192 }
2193
2194 GLboolean NoContextGLApi::glIsTransformFeedbackFn(GLuint id) {
2195 NOTREACHED()
2196 << "Trying to call glIsTransformFeedback() without current GL context";
2197 LOG(ERROR)
2198 << "Trying to call glIsTransformFeedback() without current GL context";
2199 return GL_FALSE;
2200 }
2201
2202 GLboolean NoContextGLApi::glIsVertexArrayOESFn(GLuint array) {
2203 NOTREACHED()
2204 << "Trying to call glIsVertexArrayOES() without current GL context";
2205 LOG(ERROR)
2206 << "Trying to call glIsVertexArrayOES() without current GL context";
2207 return GL_FALSE;
2208 }
2209
2210 void NoContextGLApi::glLineWidthFn(GLfloat width) {
2211 NOTREACHED() << "Trying to call glLineWidth() without current GL context";
2212 LOG(ERROR) << "Trying to call glLineWidth() without current GL context";
2213 }
2214
2215 void NoContextGLApi::glLinkProgramFn(GLuint program) {
2216 NOTREACHED() << "Trying to call glLinkProgram() without current GL context";
2217 LOG(ERROR) << "Trying to call glLinkProgram() without current GL context";
2218 }
2219
2220 void* NoContextGLApi::glMapBufferFn(GLenum target, GLenum access) {
2221 NOTREACHED() << "Trying to call glMapBuffer() without current GL context";
2222 LOG(ERROR) << "Trying to call glMapBuffer() without current GL context";
2223 return NULL;
2224 }
2225
2226 void* NoContextGLApi::glMapBufferRangeFn(GLenum target,
2227 GLintptr offset,
2228 GLsizeiptr length,
2229 GLbitfield access) {
2230 NOTREACHED()
2231 << "Trying to call glMapBufferRange() without current GL context";
2232 LOG(ERROR) << "Trying to call glMapBufferRange() without current GL context";
2233 return NULL;
2234 }
2235
2236 void NoContextGLApi::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) {
2237 NOTREACHED()
2238 << "Trying to call glMatrixLoadfEXT() without current GL context";
2239 LOG(ERROR) << "Trying to call glMatrixLoadfEXT() without current GL context";
2240 }
2241
2242 void NoContextGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) {
2243 NOTREACHED()
2244 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
2245 LOG(ERROR)
2246 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
2247 }
2248
2249 void NoContextGLApi::glMemoryBarrierEXTFn(GLbitfield barriers) {
2250 NOTREACHED()
2251 << "Trying to call glMemoryBarrierEXT() without current GL context";
2252 LOG(ERROR)
2253 << "Trying to call glMemoryBarrierEXT() without current GL context";
2254 }
2255
2256 void NoContextGLApi::glObjectLabelFn(GLenum identifier,
2257 GLuint name,
2258 GLsizei length,
2259 const char* label) {
2260 NOTREACHED() << "Trying to call glObjectLabel() without current GL context";
2261 LOG(ERROR) << "Trying to call glObjectLabel() without current GL context";
2262 }
2263
2264 void NoContextGLApi::glObjectPtrLabelFn(void* ptr,
2265 GLsizei length,
2266 const char* label) {
2267 NOTREACHED()
2268 << "Trying to call glObjectPtrLabel() without current GL context";
2269 LOG(ERROR) << "Trying to call glObjectPtrLabel() without current GL context";
2270 }
2271
2272 void NoContextGLApi::glPathCommandsNVFn(GLuint path,
2273 GLsizei numCommands,
2274 const GLubyte* commands,
2275 GLsizei numCoords,
2276 GLenum coordType,
2277 const GLvoid* coords) {
2278 NOTREACHED()
2279 << "Trying to call glPathCommandsNV() without current GL context";
2280 LOG(ERROR) << "Trying to call glPathCommandsNV() without current GL context";
2281 }
2282
2283 void NoContextGLApi::glPathParameterfNVFn(GLuint path,
2284 GLenum pname,
2285 GLfloat value) {
2286 NOTREACHED()
2287 << "Trying to call glPathParameterfNV() without current GL context";
2288 LOG(ERROR)
2289 << "Trying to call glPathParameterfNV() without current GL context";
2290 }
2291
2292 void NoContextGLApi::glPathParameteriNVFn(GLuint path,
2293 GLenum pname,
2294 GLint value) {
2295 NOTREACHED()
2296 << "Trying to call glPathParameteriNV() without current GL context";
2297 LOG(ERROR)
2298 << "Trying to call glPathParameteriNV() without current GL context";
2299 }
2300
2301 void NoContextGLApi::glPathStencilFuncNVFn(GLenum func,
2302 GLint ref,
2303 GLuint mask) {
2304 NOTREACHED()
2305 << "Trying to call glPathStencilFuncNV() without current GL context";
2306 LOG(ERROR)
2307 << "Trying to call glPathStencilFuncNV() without current GL context";
2308 }
2309
2310 void NoContextGLApi::glPauseTransformFeedbackFn(void) {
2311 NOTREACHED()
2312 << "Trying to call glPauseTransformFeedback() without current GL context";
2313 LOG(ERROR)
2314 << "Trying to call glPauseTransformFeedback() without current GL context";
2315 }
2316
2317 void NoContextGLApi::glPixelStoreiFn(GLenum pname, GLint param) {
2318 NOTREACHED() << "Trying to call glPixelStorei() without current GL context";
2319 LOG(ERROR) << "Trying to call glPixelStorei() without current GL context";
2320 }
2321
2322 void NoContextGLApi::glPointParameteriFn(GLenum pname, GLint param) {
2323 NOTREACHED()
2324 << "Trying to call glPointParameteri() without current GL context";
2325 LOG(ERROR) << "Trying to call glPointParameteri() without current GL context";
2326 }
2327
2328 void NoContextGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
2329 NOTREACHED() << "Trying to call glPolygonOffset() without current GL context";
2330 LOG(ERROR) << "Trying to call glPolygonOffset() without current GL context";
2331 }
2332
2333 void NoContextGLApi::glPopDebugGroupFn() {
2334 NOTREACHED() << "Trying to call glPopDebugGroup() without current GL context";
2335 LOG(ERROR) << "Trying to call glPopDebugGroup() without current GL context";
2336 }
2337
2338 void NoContextGLApi::glPopGroupMarkerEXTFn(void) {
2339 NOTREACHED()
2340 << "Trying to call glPopGroupMarkerEXT() without current GL context";
2341 LOG(ERROR)
2342 << "Trying to call glPopGroupMarkerEXT() without current GL context";
2343 }
2344
2345 void NoContextGLApi::glPrimitiveRestartIndexFn(GLuint index) {
2346 NOTREACHED()
2347 << "Trying to call glPrimitiveRestartIndex() without current GL context";
2348 LOG(ERROR)
2349 << "Trying to call glPrimitiveRestartIndex() without current GL context";
2350 }
2351
2352 void NoContextGLApi::glProgramBinaryFn(GLuint program,
2353 GLenum binaryFormat,
2354 const GLvoid* binary,
2355 GLsizei length) {
2356 NOTREACHED() << "Trying to call glProgramBinary() without current GL context";
2357 LOG(ERROR) << "Trying to call glProgramBinary() without current GL context";
2358 }
2359
2360 void NoContextGLApi::glProgramParameteriFn(GLuint program,
2361 GLenum pname,
2362 GLint value) {
2363 NOTREACHED()
2364 << "Trying to call glProgramParameteri() without current GL context";
2365 LOG(ERROR)
2366 << "Trying to call glProgramParameteri() without current GL context";
2367 }
2368
2369 void NoContextGLApi::glProgramPathFragmentInputGenNVFn(GLuint program,
2370 GLint location,
2371 GLenum genMode,
2372 GLint components,
2373 const GLfloat* coeffs) {
2374 NOTREACHED() << "Trying to call glProgramPathFragmentInputGenNV() without "
2375 "current GL context";
2376 LOG(ERROR) << "Trying to call glProgramPathFragmentInputGenNV() without "
2377 "current GL context";
2378 }
2379
2380 void NoContextGLApi::glPushDebugGroupFn(GLenum source,
2381 GLuint id,
2382 GLsizei length,
2383 const char* message) {
2384 NOTREACHED()
2385 << "Trying to call glPushDebugGroup() without current GL context";
2386 LOG(ERROR) << "Trying to call glPushDebugGroup() without current GL context";
2387 }
2388
2389 void NoContextGLApi::glPushGroupMarkerEXTFn(GLsizei length,
2390 const char* marker) {
2391 NOTREACHED()
2392 << "Trying to call glPushGroupMarkerEXT() without current GL context";
2393 LOG(ERROR)
2394 << "Trying to call glPushGroupMarkerEXT() without current GL context";
2395 }
2396
2397 void NoContextGLApi::glQueryCounterFn(GLuint id, GLenum target) {
2398 NOTREACHED() << "Trying to call glQueryCounter() without current GL context";
2399 LOG(ERROR) << "Trying to call glQueryCounter() without current GL context";
2400 }
2401
2402 void NoContextGLApi::glReadBufferFn(GLenum src) {
2403 NOTREACHED() << "Trying to call glReadBuffer() without current GL context";
2404 LOG(ERROR) << "Trying to call glReadBuffer() without current GL context";
2405 }
2406
2407 void NoContextGLApi::glReadnPixelsRobustANGLEFn(GLint x,
2408 GLint y,
2409 GLsizei width,
2410 GLsizei height,
2411 GLenum format,
2412 GLenum type,
2413 GLsizei bufSize,
2414 GLsizei* length,
2415 void* data) {
2416 NOTREACHED()
2417 << "Trying to call glReadnPixelsRobustANGLE() without current GL context";
2418 LOG(ERROR)
2419 << "Trying to call glReadnPixelsRobustANGLE() without current GL context";
2420 }
2421
2422 void NoContextGLApi::glReadPixelsFn(GLint x,
2423 GLint y,
2424 GLsizei width,
2425 GLsizei height,
2426 GLenum format,
2427 GLenum type,
2428 void* pixels) {
2429 NOTREACHED() << "Trying to call glReadPixels() without current GL context";
2430 LOG(ERROR) << "Trying to call glReadPixels() without current GL context";
2431 }
2432
2433 void NoContextGLApi::glReadPixelsRobustANGLEFn(GLint x,
2434 GLint y,
2435 GLsizei width,
2436 GLsizei height,
2437 GLenum format,
2438 GLenum type,
2439 GLsizei bufSize,
2440 GLsizei* length,
2441 void* pixels) {
2442 NOTREACHED()
2443 << "Trying to call glReadPixelsRobustANGLE() without current GL context";
2444 LOG(ERROR)
2445 << "Trying to call glReadPixelsRobustANGLE() without current GL context";
2446 }
2447
2448 void NoContextGLApi::glReleaseShaderCompilerFn(void) {
2449 NOTREACHED()
2450 << "Trying to call glReleaseShaderCompiler() without current GL context";
2451 LOG(ERROR)
2452 << "Trying to call glReleaseShaderCompiler() without current GL context";
2453 }
2454
2455 void NoContextGLApi::glRenderbufferStorageEXTFn(GLenum target,
2456 GLenum internalformat,
2457 GLsizei width,
2458 GLsizei height) {
2459 NOTREACHED()
2460 << "Trying to call glRenderbufferStorageEXT() without current GL context";
2461 LOG(ERROR)
2462 << "Trying to call glRenderbufferStorageEXT() without current GL context";
2463 }
2464
2465 void NoContextGLApi::glRenderbufferStorageMultisampleFn(GLenum target,
2466 GLsizei samples,
2467 GLenum internalformat,
2468 GLsizei width,
2469 GLsizei height) {
2470 NOTREACHED() << "Trying to call glRenderbufferStorageMultisample() without "
2471 "current GL context";
2472 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisample() without "
2473 "current GL context";
2474 }
2475
2476 void NoContextGLApi::glRenderbufferStorageMultisampleANGLEFn(
2477 GLenum target,
2478 GLsizei samples,
2479 GLenum internalformat,
2480 GLsizei width,
2481 GLsizei height) {
2482 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleANGLE() "
2483 "without current GL context";
2484 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleANGLE() "
2485 "without current GL context";
2486 }
2487
2488 void NoContextGLApi::glRenderbufferStorageMultisampleEXTFn(
2489 GLenum target,
2490 GLsizei samples,
2491 GLenum internalformat,
2492 GLsizei width,
2493 GLsizei height) {
2494 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleEXT() "
2495 "without current GL context";
2496 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleEXT() without "
2497 "current GL context";
2498 }
2499
2500 void NoContextGLApi::glRenderbufferStorageMultisampleIMGFn(
2501 GLenum target,
2502 GLsizei samples,
2503 GLenum internalformat,
2504 GLsizei width,
2505 GLsizei height) {
2506 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleIMG() "
2507 "without current GL context";
2508 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleIMG() without "
2509 "current GL context";
2510 }
2511
2512 void NoContextGLApi::glResumeTransformFeedbackFn(void) {
2513 NOTREACHED() << "Trying to call glResumeTransformFeedback() without current "
2514 "GL context";
2515 LOG(ERROR) << "Trying to call glResumeTransformFeedback() without current GL "
2516 "context";
2517 }
2518
2519 void NoContextGLApi::glSampleCoverageFn(GLclampf value, GLboolean invert) {
2520 NOTREACHED()
2521 << "Trying to call glSampleCoverage() without current GL context";
2522 LOG(ERROR) << "Trying to call glSampleCoverage() without current GL context";
2523 }
2524
2525 void NoContextGLApi::glSamplerParameterfFn(GLuint sampler,
2526 GLenum pname,
2527 GLfloat param) {
2528 NOTREACHED()
2529 << "Trying to call glSamplerParameterf() without current GL context";
2530 LOG(ERROR)
2531 << "Trying to call glSamplerParameterf() without current GL context";
2532 }
2533
2534 void NoContextGLApi::glSamplerParameterfvFn(GLuint sampler,
2535 GLenum pname,
2536 const GLfloat* params) {
2537 NOTREACHED()
2538 << "Trying to call glSamplerParameterfv() without current GL context";
2539 LOG(ERROR)
2540 << "Trying to call glSamplerParameterfv() without current GL context";
2541 }
2542
2543 void NoContextGLApi::glSamplerParameterfvRobustANGLEFn(GLuint sampler,
2544 GLenum pname,
2545 GLsizei bufSize,
2546 const GLfloat* param) {
2547 NOTREACHED() << "Trying to call glSamplerParameterfvRobustANGLE() without "
2548 "current GL context";
2549 LOG(ERROR) << "Trying to call glSamplerParameterfvRobustANGLE() without "
2550 "current GL context";
2551 }
2552
2553 void NoContextGLApi::glSamplerParameteriFn(GLuint sampler,
2554 GLenum pname,
2555 GLint param) {
2556 NOTREACHED()
2557 << "Trying to call glSamplerParameteri() without current GL context";
2558 LOG(ERROR)
2559 << "Trying to call glSamplerParameteri() without current GL context";
2560 }
2561
2562 void NoContextGLApi::glSamplerParameterIivRobustANGLEFn(GLuint sampler,
2563 GLenum pname,
2564 GLsizei bufSize,
2565 const GLint* param) {
2566 NOTREACHED() << "Trying to call glSamplerParameterIivRobustANGLE() without "
2567 "current GL context";
2568 LOG(ERROR) << "Trying to call glSamplerParameterIivRobustANGLE() without "
2569 "current GL context";
2570 }
2571
2572 void NoContextGLApi::glSamplerParameterIuivRobustANGLEFn(GLuint sampler,
2573 GLenum pname,
2574 GLsizei bufSize,
2575 const GLuint* param) {
2576 NOTREACHED() << "Trying to call glSamplerParameterIuivRobustANGLE() without "
2577 "current GL context";
2578 LOG(ERROR) << "Trying to call glSamplerParameterIuivRobustANGLE() without "
2579 "current GL context";
2580 }
2581
2582 void NoContextGLApi::glSamplerParameterivFn(GLuint sampler,
2583 GLenum pname,
2584 const GLint* params) {
2585 NOTREACHED()
2586 << "Trying to call glSamplerParameteriv() without current GL context";
2587 LOG(ERROR)
2588 << "Trying to call glSamplerParameteriv() without current GL context";
2589 }
2590
2591 void NoContextGLApi::glSamplerParameterivRobustANGLEFn(GLuint sampler,
2592 GLenum pname,
2593 GLsizei bufSize,
2594 const GLint* param) {
2595 NOTREACHED() << "Trying to call glSamplerParameterivRobustANGLE() without "
2596 "current GL context";
2597 LOG(ERROR) << "Trying to call glSamplerParameterivRobustANGLE() without "
2598 "current GL context";
2599 }
2600
2601 void NoContextGLApi::glScissorFn(GLint x,
2602 GLint y,
2603 GLsizei width,
2604 GLsizei height) {
2605 NOTREACHED() << "Trying to call glScissor() without current GL context";
2606 LOG(ERROR) << "Trying to call glScissor() without current GL context";
2607 }
2608
2609 void NoContextGLApi::glSetFenceAPPLEFn(GLuint fence) {
2610 NOTREACHED() << "Trying to call glSetFenceAPPLE() without current GL context";
2611 LOG(ERROR) << "Trying to call glSetFenceAPPLE() without current GL context";
2612 }
2613
2614 void NoContextGLApi::glSetFenceNVFn(GLuint fence, GLenum condition) {
2615 NOTREACHED() << "Trying to call glSetFenceNV() without current GL context";
2616 LOG(ERROR) << "Trying to call glSetFenceNV() without current GL context";
2617 }
2618
2619 void NoContextGLApi::glShaderBinaryFn(GLsizei n,
2620 const GLuint* shaders,
2621 GLenum binaryformat,
2622 const void* binary,
2623 GLsizei length) {
2624 NOTREACHED() << "Trying to call glShaderBinary() without current GL context";
2625 LOG(ERROR) << "Trying to call glShaderBinary() without current GL context";
2626 }
2627
2628 void NoContextGLApi::glShaderSourceFn(GLuint shader,
2629 GLsizei count,
2630 const char* const* str,
2631 const GLint* length) {
2632 NOTREACHED() << "Trying to call glShaderSource() without current GL context";
2633 LOG(ERROR) << "Trying to call glShaderSource() without current GL context";
2634 }
2635
2636 void NoContextGLApi::glStencilFillPathInstancedNVFn(
2637 GLsizei numPaths,
2638 GLenum pathNameType,
2639 const void* paths,
2640 GLuint pathBase,
2641 GLenum fillMode,
2642 GLuint mask,
2643 GLenum transformType,
2644 const GLfloat* transformValues) {
2645 NOTREACHED() << "Trying to call glStencilFillPathInstancedNV() without "
2646 "current GL context";
2647 LOG(ERROR) << "Trying to call glStencilFillPathInstancedNV() without current "
2648 "GL context";
2649 }
2650
2651 void NoContextGLApi::glStencilFillPathNVFn(GLuint path,
2652 GLenum fillMode,
2653 GLuint mask) {
2654 NOTREACHED()
2655 << "Trying to call glStencilFillPathNV() without current GL context";
2656 LOG(ERROR)
2657 << "Trying to call glStencilFillPathNV() without current GL context";
2658 }
2659
2660 void NoContextGLApi::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
2661 NOTREACHED() << "Trying to call glStencilFunc() without current GL context";
2662 LOG(ERROR) << "Trying to call glStencilFunc() without current GL context";
2663 }
2664
2665 void NoContextGLApi::glStencilFuncSeparateFn(GLenum face,
2666 GLenum func,
2667 GLint ref,
2668 GLuint mask) {
2669 NOTREACHED()
2670 << "Trying to call glStencilFuncSeparate() without current GL context";
2671 LOG(ERROR)
2672 << "Trying to call glStencilFuncSeparate() without current GL context";
2673 }
2674
2675 void NoContextGLApi::glStencilMaskFn(GLuint mask) {
2676 NOTREACHED() << "Trying to call glStencilMask() without current GL context";
2677 LOG(ERROR) << "Trying to call glStencilMask() without current GL context";
2678 }
2679
2680 void NoContextGLApi::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
2681 NOTREACHED()
2682 << "Trying to call glStencilMaskSeparate() without current GL context";
2683 LOG(ERROR)
2684 << "Trying to call glStencilMaskSeparate() without current GL context";
2685 }
2686
2687 void NoContextGLApi::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
2688 NOTREACHED() << "Trying to call glStencilOp() without current GL context";
2689 LOG(ERROR) << "Trying to call glStencilOp() without current GL context";
2690 }
2691
2692 void NoContextGLApi::glStencilOpSeparateFn(GLenum face,
2693 GLenum fail,
2694 GLenum zfail,
2695 GLenum zpass) {
2696 NOTREACHED()
2697 << "Trying to call glStencilOpSeparate() without current GL context";
2698 LOG(ERROR)
2699 << "Trying to call glStencilOpSeparate() without current GL context";
2700 }
2701
2702 void NoContextGLApi::glStencilStrokePathInstancedNVFn(
2703 GLsizei numPaths,
2704 GLenum pathNameType,
2705 const void* paths,
2706 GLuint pathBase,
2707 GLint ref,
2708 GLuint mask,
2709 GLenum transformType,
2710 const GLfloat* transformValues) {
2711 NOTREACHED() << "Trying to call glStencilStrokePathInstancedNV() without "
2712 "current GL context";
2713 LOG(ERROR) << "Trying to call glStencilStrokePathInstancedNV() without "
2714 "current GL context";
2715 }
2716
2717 void NoContextGLApi::glStencilStrokePathNVFn(GLuint path,
2718 GLint reference,
2719 GLuint mask) {
2720 NOTREACHED()
2721 << "Trying to call glStencilStrokePathNV() without current GL context";
2722 LOG(ERROR)
2723 << "Trying to call glStencilStrokePathNV() without current GL context";
2724 }
2725
2726 void NoContextGLApi::glStencilThenCoverFillPathInstancedNVFn(
2727 GLsizei numPaths,
2728 GLenum pathNameType,
2729 const void* paths,
2730 GLuint pathBase,
2731 GLenum fillMode,
2732 GLuint mask,
2733 GLenum coverMode,
2734 GLenum transformType,
2735 const GLfloat* transformValues) {
2736 NOTREACHED() << "Trying to call glStencilThenCoverFillPathInstancedNV() "
2737 "without current GL context";
2738 LOG(ERROR) << "Trying to call glStencilThenCoverFillPathInstancedNV() "
2739 "without current GL context";
2740 }
2741
2742 void NoContextGLApi::glStencilThenCoverFillPathNVFn(GLuint path,
2743 GLenum fillMode,
2744 GLuint mask,
2745 GLenum coverMode) {
2746 NOTREACHED() << "Trying to call glStencilThenCoverFillPathNV() without "
2747 "current GL context";
2748 LOG(ERROR) << "Trying to call glStencilThenCoverFillPathNV() without current "
2749 "GL context";
2750 }
2751
2752 void NoContextGLApi::glStencilThenCoverStrokePathInstancedNVFn(
2753 GLsizei numPaths,
2754 GLenum pathNameType,
2755 const void* paths,
2756 GLuint pathBase,
2757 GLint ref,
2758 GLuint mask,
2759 GLenum coverMode,
2760 GLenum transformType,
2761 const GLfloat* transformValues) {
2762 NOTREACHED() << "Trying to call glStencilThenCoverStrokePathInstancedNV() "
2763 "without current GL context";
2764 LOG(ERROR) << "Trying to call glStencilThenCoverStrokePathInstancedNV() "
2765 "without current GL context";
2766 }
2767
2768 void NoContextGLApi::glStencilThenCoverStrokePathNVFn(GLuint path,
2769 GLint reference,
2770 GLuint mask,
2771 GLenum coverMode) {
2772 NOTREACHED() << "Trying to call glStencilThenCoverStrokePathNV() without "
2773 "current GL context";
2774 LOG(ERROR) << "Trying to call glStencilThenCoverStrokePathNV() without "
2775 "current GL context";
2776 }
2777
2778 GLboolean NoContextGLApi::glTestFenceAPPLEFn(GLuint fence) {
2779 NOTREACHED()
2780 << "Trying to call glTestFenceAPPLE() without current GL context";
2781 LOG(ERROR) << "Trying to call glTestFenceAPPLE() without current GL context";
2782 return GL_FALSE;
2783 }
2784
2785 GLboolean NoContextGLApi::glTestFenceNVFn(GLuint fence) {
2786 NOTREACHED() << "Trying to call glTestFenceNV() without current GL context";
2787 LOG(ERROR) << "Trying to call glTestFenceNV() without current GL context";
2788 return GL_FALSE;
2789 }
2790
2791 void NoContextGLApi::glTexImage2DFn(GLenum target,
2792 GLint level,
2793 GLint internalformat,
2794 GLsizei width,
2795 GLsizei height,
2796 GLint border,
2797 GLenum format,
2798 GLenum type,
2799 const void* pixels) {
2800 NOTREACHED() << "Trying to call glTexImage2D() without current GL context";
2801 LOG(ERROR) << "Trying to call glTexImage2D() without current GL context";
2802 }
2803
2804 void NoContextGLApi::glTexImage2DRobustANGLEFn(GLenum target,
2805 GLint level,
2806 GLint internalformat,
2807 GLsizei width,
2808 GLsizei height,
2809 GLint border,
2810 GLenum format,
2811 GLenum type,
2812 GLsizei bufSize,
2813 const void* pixels) {
2814 NOTREACHED()
2815 << "Trying to call glTexImage2DRobustANGLE() without current GL context";
2816 LOG(ERROR)
2817 << "Trying to call glTexImage2DRobustANGLE() without current GL context";
2818 }
2819
2820 void NoContextGLApi::glTexImage3DFn(GLenum target,
2821 GLint level,
2822 GLint internalformat,
2823 GLsizei width,
2824 GLsizei height,
2825 GLsizei depth,
2826 GLint border,
2827 GLenum format,
2828 GLenum type,
2829 const void* pixels) {
2830 NOTREACHED() << "Trying to call glTexImage3D() without current GL context";
2831 LOG(ERROR) << "Trying to call glTexImage3D() without current GL context";
2832 }
2833
2834 void NoContextGLApi::glTexImage3DRobustANGLEFn(GLenum target,
2835 GLint level,
2836 GLint internalformat,
2837 GLsizei width,
2838 GLsizei height,
2839 GLsizei depth,
2840 GLint border,
2841 GLenum format,
2842 GLenum type,
2843 GLsizei bufSize,
2844 const void* pixels) {
2845 NOTREACHED()
2846 << "Trying to call glTexImage3DRobustANGLE() without current GL context";
2847 LOG(ERROR)
2848 << "Trying to call glTexImage3DRobustANGLE() without current GL context";
2849 }
2850
2851 void NoContextGLApi::glTexParameterfFn(GLenum target,
2852 GLenum pname,
2853 GLfloat param) {
2854 NOTREACHED() << "Trying to call glTexParameterf() without current GL context";
2855 LOG(ERROR) << "Trying to call glTexParameterf() without current GL context";
2856 }
2857
2858 void NoContextGLApi::glTexParameterfvFn(GLenum target,
2859 GLenum pname,
2860 const GLfloat* params) {
2861 NOTREACHED()
2862 << "Trying to call glTexParameterfv() without current GL context";
2863 LOG(ERROR) << "Trying to call glTexParameterfv() without current GL context";
2864 }
2865
2866 void NoContextGLApi::glTexParameterfvRobustANGLEFn(GLenum target,
2867 GLenum pname,
2868 GLsizei bufSize,
2869 const GLfloat* params) {
2870 NOTREACHED() << "Trying to call glTexParameterfvRobustANGLE() without "
2871 "current GL context";
2872 LOG(ERROR) << "Trying to call glTexParameterfvRobustANGLE() without current "
2873 "GL context";
2874 }
2875
2876 void NoContextGLApi::glTexParameteriFn(GLenum target,
2877 GLenum pname,
2878 GLint param) {
2879 NOTREACHED() << "Trying to call glTexParameteri() without current GL context";
2880 LOG(ERROR) << "Trying to call glTexParameteri() without current GL context";
2881 }
2882
2883 void NoContextGLApi::glTexParameterIivRobustANGLEFn(GLenum target,
2884 GLenum pname,
2885 GLsizei bufSize,
2886 const GLint* params) {
2887 NOTREACHED() << "Trying to call glTexParameterIivRobustANGLE() without "
2888 "current GL context";
2889 LOG(ERROR) << "Trying to call glTexParameterIivRobustANGLE() without current "
2890 "GL context";
2891 }
2892
2893 void NoContextGLApi::glTexParameterIuivRobustANGLEFn(GLenum target,
2894 GLenum pname,
2895 GLsizei bufSize,
2896 const GLuint* params) {
2897 NOTREACHED() << "Trying to call glTexParameterIuivRobustANGLE() without "
2898 "current GL context";
2899 LOG(ERROR) << "Trying to call glTexParameterIuivRobustANGLE() without "
2900 "current GL context";
2901 }
2902
2903 void NoContextGLApi::glTexParameterivFn(GLenum target,
2904 GLenum pname,
2905 const GLint* params) {
2906 NOTREACHED()
2907 << "Trying to call glTexParameteriv() without current GL context";
2908 LOG(ERROR) << "Trying to call glTexParameteriv() without current GL context";
2909 }
2910
2911 void NoContextGLApi::glTexParameterivRobustANGLEFn(GLenum target,
2912 GLenum pname,
2913 GLsizei bufSize,
2914 const GLint* params) {
2915 NOTREACHED() << "Trying to call glTexParameterivRobustANGLE() without "
2916 "current GL context";
2917 LOG(ERROR) << "Trying to call glTexParameterivRobustANGLE() without current "
2918 "GL context";
2919 }
2920
2921 void NoContextGLApi::glTexStorage2DEXTFn(GLenum target,
2922 GLsizei levels,
2923 GLenum internalformat,
2924 GLsizei width,
2925 GLsizei height) {
2926 NOTREACHED()
2927 << "Trying to call glTexStorage2DEXT() without current GL context";
2928 LOG(ERROR) << "Trying to call glTexStorage2DEXT() without current GL context";
2929 }
2930
2931 void NoContextGLApi::glTexStorage3DFn(GLenum target,
2932 GLsizei levels,
2933 GLenum internalformat,
2934 GLsizei width,
2935 GLsizei height,
2936 GLsizei depth) {
2937 NOTREACHED() << "Trying to call glTexStorage3D() without current GL context";
2938 LOG(ERROR) << "Trying to call glTexStorage3D() without current GL context";
2939 }
2940
2941 void NoContextGLApi::glTexSubImage2DFn(GLenum target,
2942 GLint level,
2943 GLint xoffset,
2944 GLint yoffset,
2945 GLsizei width,
2946 GLsizei height,
2947 GLenum format,
2948 GLenum type,
2949 const void* pixels) {
2950 NOTREACHED() << "Trying to call glTexSubImage2D() without current GL context";
2951 LOG(ERROR) << "Trying to call glTexSubImage2D() without current GL context";
2952 }
2953
2954 void NoContextGLApi::glTexSubImage2DRobustANGLEFn(GLenum target,
2955 GLint level,
2956 GLint xoffset,
2957 GLint yoffset,
2958 GLsizei width,
2959 GLsizei height,
2960 GLenum format,
2961 GLenum type,
2962 GLsizei bufSize,
2963 const void* pixels) {
2964 NOTREACHED() << "Trying to call glTexSubImage2DRobustANGLE() without current "
2965 "GL context";
2966 LOG(ERROR) << "Trying to call glTexSubImage2DRobustANGLE() without current "
2967 "GL context";
2968 }
2969
2970 void NoContextGLApi::glTexSubImage3DFn(GLenum target,
2971 GLint level,
2972 GLint xoffset,
2973 GLint yoffset,
2974 GLint zoffset,
2975 GLsizei width,
2976 GLsizei height,
2977 GLsizei depth,
2978 GLenum format,
2979 GLenum type,
2980 const void* pixels) {
2981 NOTREACHED() << "Trying to call glTexSubImage3D() without current GL context";
2982 LOG(ERROR) << "Trying to call glTexSubImage3D() without current GL context";
2983 }
2984
2985 void NoContextGLApi::glTexSubImage3DRobustANGLEFn(GLenum target,
2986 GLint level,
2987 GLint xoffset,
2988 GLint yoffset,
2989 GLint zoffset,
2990 GLsizei width,
2991 GLsizei height,
2992 GLsizei depth,
2993 GLenum format,
2994 GLenum type,
2995 GLsizei bufSize,
2996 const void* pixels) {
2997 NOTREACHED() << "Trying to call glTexSubImage3DRobustANGLE() without current "
2998 "GL context";
2999 LOG(ERROR) << "Trying to call glTexSubImage3DRobustANGLE() without current "
3000 "GL context";
3001 }
3002
3003 void NoContextGLApi::glTransformFeedbackVaryingsFn(GLuint program,
3004 GLsizei count,
3005 const char* const* varyings,
3006 GLenum bufferMode) {
3007 NOTREACHED() << "Trying to call glTransformFeedbackVaryings() without "
3008 "current GL context";
3009 LOG(ERROR) << "Trying to call glTransformFeedbackVaryings() without current "
3010 "GL context";
3011 }
3012
3013 void NoContextGLApi::glUniform1fFn(GLint location, GLfloat x) {
3014 NOTREACHED() << "Trying to call glUniform1f() without current GL context";
3015 LOG(ERROR) << "Trying to call glUniform1f() without current GL context";
3016 }
3017
3018 void NoContextGLApi::glUniform1fvFn(GLint location,
3019 GLsizei count,
3020 const GLfloat* v) {
3021 NOTREACHED() << "Trying to call glUniform1fv() without current GL context";
3022 LOG(ERROR) << "Trying to call glUniform1fv() without current GL context";
3023 }
3024
3025 void NoContextGLApi::glUniform1iFn(GLint location, GLint x) {
3026 NOTREACHED() << "Trying to call glUniform1i() without current GL context";
3027 LOG(ERROR) << "Trying to call glUniform1i() without current GL context";
3028 }
3029
3030 void NoContextGLApi::glUniform1ivFn(GLint location,
3031 GLsizei count,
3032 const GLint* v) {
3033 NOTREACHED() << "Trying to call glUniform1iv() without current GL context";
3034 LOG(ERROR) << "Trying to call glUniform1iv() without current GL context";
3035 }
3036
3037 void NoContextGLApi::glUniform1uiFn(GLint location, GLuint v0) {
3038 NOTREACHED() << "Trying to call glUniform1ui() without current GL context";
3039 LOG(ERROR) << "Trying to call glUniform1ui() without current GL context";
3040 }
3041
3042 void NoContextGLApi::glUniform1uivFn(GLint location,
3043 GLsizei count,
3044 const GLuint* v) {
3045 NOTREACHED() << "Trying to call glUniform1uiv() without current GL context";
3046 LOG(ERROR) << "Trying to call glUniform1uiv() without current GL context";
3047 }
3048
3049 void NoContextGLApi::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
3050 NOTREACHED() << "Trying to call glUniform2f() without current GL context";
3051 LOG(ERROR) << "Trying to call glUniform2f() without current GL context";
3052 }
3053
3054 void NoContextGLApi::glUniform2fvFn(GLint location,
3055 GLsizei count,
3056 const GLfloat* v) {
3057 NOTREACHED() << "Trying to call glUniform2fv() without current GL context";
3058 LOG(ERROR) << "Trying to call glUniform2fv() without current GL context";
3059 }
3060
3061 void NoContextGLApi::glUniform2iFn(GLint location, GLint x, GLint y) {
3062 NOTREACHED() << "Trying to call glUniform2i() without current GL context";
3063 LOG(ERROR) << "Trying to call glUniform2i() without current GL context";
3064 }
3065
3066 void NoContextGLApi::glUniform2ivFn(GLint location,
3067 GLsizei count,
3068 const GLint* v) {
3069 NOTREACHED() << "Trying to call glUniform2iv() without current GL context";
3070 LOG(ERROR) << "Trying to call glUniform2iv() without current GL context";
3071 }
3072
3073 void NoContextGLApi::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
3074 NOTREACHED() << "Trying to call glUniform2ui() without current GL context";
3075 LOG(ERROR) << "Trying to call glUniform2ui() without current GL context";
3076 }
3077
3078 void NoContextGLApi::glUniform2uivFn(GLint location,
3079 GLsizei count,
3080 const GLuint* v) {
3081 NOTREACHED() << "Trying to call glUniform2uiv() without current GL context";
3082 LOG(ERROR) << "Trying to call glUniform2uiv() without current GL context";
3083 }
3084
3085 void NoContextGLApi::glUniform3fFn(GLint location,
3086 GLfloat x,
3087 GLfloat y,
3088 GLfloat z) {
3089 NOTREACHED() << "Trying to call glUniform3f() without current GL context";
3090 LOG(ERROR) << "Trying to call glUniform3f() without current GL context";
3091 }
3092
3093 void NoContextGLApi::glUniform3fvFn(GLint location,
3094 GLsizei count,
3095 const GLfloat* v) {
3096 NOTREACHED() << "Trying to call glUniform3fv() without current GL context";
3097 LOG(ERROR) << "Trying to call glUniform3fv() without current GL context";
3098 }
3099
3100 void NoContextGLApi::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
3101 NOTREACHED() << "Trying to call glUniform3i() without current GL context";
3102 LOG(ERROR) << "Trying to call glUniform3i() without current GL context";
3103 }
3104
3105 void NoContextGLApi::glUniform3ivFn(GLint location,
3106 GLsizei count,
3107 const GLint* v) {
3108 NOTREACHED() << "Trying to call glUniform3iv() without current GL context";
3109 LOG(ERROR) << "Trying to call glUniform3iv() without current GL context";
3110 }
3111
3112 void NoContextGLApi::glUniform3uiFn(GLint location,
3113 GLuint v0,
3114 GLuint v1,
3115 GLuint v2) {
3116 NOTREACHED() << "Trying to call glUniform3ui() without current GL context";
3117 LOG(ERROR) << "Trying to call glUniform3ui() without current GL context";
3118 }
3119
3120 void NoContextGLApi::glUniform3uivFn(GLint location,
3121 GLsizei count,
3122 const GLuint* v) {
3123 NOTREACHED() << "Trying to call glUniform3uiv() without current GL context";
3124 LOG(ERROR) << "Trying to call glUniform3uiv() without current GL context";
3125 }
3126
3127 void NoContextGLApi::glUniform4fFn(GLint location,
3128 GLfloat x,
3129 GLfloat y,
3130 GLfloat z,
3131 GLfloat w) {
3132 NOTREACHED() << "Trying to call glUniform4f() without current GL context";
3133 LOG(ERROR) << "Trying to call glUniform4f() without current GL context";
3134 }
3135
3136 void NoContextGLApi::glUniform4fvFn(GLint location,
3137 GLsizei count,
3138 const GLfloat* v) {
3139 NOTREACHED() << "Trying to call glUniform4fv() without current GL context";
3140 LOG(ERROR) << "Trying to call glUniform4fv() without current GL context";
3141 }
3142
3143 void NoContextGLApi::glUniform4iFn(GLint location,
3144 GLint x,
3145 GLint y,
3146 GLint z,
3147 GLint w) {
3148 NOTREACHED() << "Trying to call glUniform4i() without current GL context";
3149 LOG(ERROR) << "Trying to call glUniform4i() without current GL context";
3150 }
3151
3152 void NoContextGLApi::glUniform4ivFn(GLint location,
3153 GLsizei count,
3154 const GLint* v) {
3155 NOTREACHED() << "Trying to call glUniform4iv() without current GL context";
3156 LOG(ERROR) << "Trying to call glUniform4iv() without current GL context";
3157 }
3158
3159 void NoContextGLApi::glUniform4uiFn(GLint location,
3160 GLuint v0,
3161 GLuint v1,
3162 GLuint v2,
3163 GLuint v3) {
3164 NOTREACHED() << "Trying to call glUniform4ui() without current GL context";
3165 LOG(ERROR) << "Trying to call glUniform4ui() without current GL context";
3166 }
3167
3168 void NoContextGLApi::glUniform4uivFn(GLint location,
3169 GLsizei count,
3170 const GLuint* v) {
3171 NOTREACHED() << "Trying to call glUniform4uiv() without current GL context";
3172 LOG(ERROR) << "Trying to call glUniform4uiv() without current GL context";
3173 }
3174
3175 void NoContextGLApi::glUniformBlockBindingFn(GLuint program,
3176 GLuint uniformBlockIndex,
3177 GLuint uniformBlockBinding) {
3178 NOTREACHED()
3179 << "Trying to call glUniformBlockBinding() without current GL context";
3180 LOG(ERROR)
3181 << "Trying to call glUniformBlockBinding() without current GL context";
3182 }
3183
3184 void NoContextGLApi::glUniformMatrix2fvFn(GLint location,
3185 GLsizei count,
3186 GLboolean transpose,
3187 const GLfloat* value) {
3188 NOTREACHED()
3189 << "Trying to call glUniformMatrix2fv() without current GL context";
3190 LOG(ERROR)
3191 << "Trying to call glUniformMatrix2fv() without current GL context";
3192 }
3193
3194 void NoContextGLApi::glUniformMatrix2x3fvFn(GLint location,
3195 GLsizei count,
3196 GLboolean transpose,
3197 const GLfloat* value) {
3198 NOTREACHED()
3199 << "Trying to call glUniformMatrix2x3fv() without current GL context";
3200 LOG(ERROR)
3201 << "Trying to call glUniformMatrix2x3fv() without current GL context";
3202 }
3203
3204 void NoContextGLApi::glUniformMatrix2x4fvFn(GLint location,
3205 GLsizei count,
3206 GLboolean transpose,
3207 const GLfloat* value) {
3208 NOTREACHED()
3209 << "Trying to call glUniformMatrix2x4fv() without current GL context";
3210 LOG(ERROR)
3211 << "Trying to call glUniformMatrix2x4fv() without current GL context";
3212 }
3213
3214 void NoContextGLApi::glUniformMatrix3fvFn(GLint location,
3215 GLsizei count,
3216 GLboolean transpose,
3217 const GLfloat* value) {
3218 NOTREACHED()
3219 << "Trying to call glUniformMatrix3fv() without current GL context";
3220 LOG(ERROR)
3221 << "Trying to call glUniformMatrix3fv() without current GL context";
3222 }
3223
3224 void NoContextGLApi::glUniformMatrix3x2fvFn(GLint location,
3225 GLsizei count,
3226 GLboolean transpose,
3227 const GLfloat* value) {
3228 NOTREACHED()
3229 << "Trying to call glUniformMatrix3x2fv() without current GL context";
3230 LOG(ERROR)
3231 << "Trying to call glUniformMatrix3x2fv() without current GL context";
3232 }
3233
3234 void NoContextGLApi::glUniformMatrix3x4fvFn(GLint location,
3235 GLsizei count,
3236 GLboolean transpose,
3237 const GLfloat* value) {
3238 NOTREACHED()
3239 << "Trying to call glUniformMatrix3x4fv() without current GL context";
3240 LOG(ERROR)
3241 << "Trying to call glUniformMatrix3x4fv() without current GL context";
3242 }
3243
3244 void NoContextGLApi::glUniformMatrix4fvFn(GLint location,
3245 GLsizei count,
3246 GLboolean transpose,
3247 const GLfloat* value) {
3248 NOTREACHED()
3249 << "Trying to call glUniformMatrix4fv() without current GL context";
3250 LOG(ERROR)
3251 << "Trying to call glUniformMatrix4fv() without current GL context";
3252 }
3253
3254 void NoContextGLApi::glUniformMatrix4x2fvFn(GLint location,
3255 GLsizei count,
3256 GLboolean transpose,
3257 const GLfloat* value) {
3258 NOTREACHED()
3259 << "Trying to call glUniformMatrix4x2fv() without current GL context";
3260 LOG(ERROR)
3261 << "Trying to call glUniformMatrix4x2fv() without current GL context";
3262 }
3263
3264 void NoContextGLApi::glUniformMatrix4x3fvFn(GLint location,
3265 GLsizei count,
3266 GLboolean transpose,
3267 const GLfloat* value) {
3268 NOTREACHED()
3269 << "Trying to call glUniformMatrix4x3fv() without current GL context";
3270 LOG(ERROR)
3271 << "Trying to call glUniformMatrix4x3fv() without current GL context";
3272 }
3273
3274 GLboolean NoContextGLApi::glUnmapBufferFn(GLenum target) {
3275 NOTREACHED() << "Trying to call glUnmapBuffer() without current GL context";
3276 LOG(ERROR) << "Trying to call glUnmapBuffer() without current GL context";
3277 return GL_FALSE;
3278 }
3279
3280 void NoContextGLApi::glUseProgramFn(GLuint program) {
3281 NOTREACHED() << "Trying to call glUseProgram() without current GL context";
3282 LOG(ERROR) << "Trying to call glUseProgram() without current GL context";
3283 }
3284
3285 void NoContextGLApi::glValidateProgramFn(GLuint program) {
3286 NOTREACHED()
3287 << "Trying to call glValidateProgram() without current GL context";
3288 LOG(ERROR) << "Trying to call glValidateProgram() without current GL context";
3289 }
3290
3291 void NoContextGLApi::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
3292 NOTREACHED()
3293 << "Trying to call glVertexAttrib1f() without current GL context";
3294 LOG(ERROR) << "Trying to call glVertexAttrib1f() without current GL context";
3295 }
3296
3297 void NoContextGLApi::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
3298 NOTREACHED()
3299 << "Trying to call glVertexAttrib1fv() without current GL context";
3300 LOG(ERROR) << "Trying to call glVertexAttrib1fv() without current GL context";
3301 }
3302
3303 void NoContextGLApi::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
3304 NOTREACHED()
3305 << "Trying to call glVertexAttrib2f() without current GL context";
3306 LOG(ERROR) << "Trying to call glVertexAttrib2f() without current GL context";
3307 }
3308
3309 void NoContextGLApi::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
3310 NOTREACHED()
3311 << "Trying to call glVertexAttrib2fv() without current GL context";
3312 LOG(ERROR) << "Trying to call glVertexAttrib2fv() without current GL context";
3313 }
3314
3315 void NoContextGLApi::glVertexAttrib3fFn(GLuint indx,
3316 GLfloat x,
3317 GLfloat y,
3318 GLfloat z) {
3319 NOTREACHED()
3320 << "Trying to call glVertexAttrib3f() without current GL context";
3321 LOG(ERROR) << "Trying to call glVertexAttrib3f() without current GL context";
3322 }
3323
3324 void NoContextGLApi::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
3325 NOTREACHED()
3326 << "Trying to call glVertexAttrib3fv() without current GL context";
3327 LOG(ERROR) << "Trying to call glVertexAttrib3fv() without current GL context";
3328 }
3329
3330 void NoContextGLApi::glVertexAttrib4fFn(GLuint indx,
3331 GLfloat x,
3332 GLfloat y,
3333 GLfloat z,
3334 GLfloat w) {
3335 NOTREACHED()
3336 << "Trying to call glVertexAttrib4f() without current GL context";
3337 LOG(ERROR) << "Trying to call glVertexAttrib4f() without current GL context";
3338 }
3339
3340 void NoContextGLApi::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
3341 NOTREACHED()
3342 << "Trying to call glVertexAttrib4fv() without current GL context";
3343 LOG(ERROR) << "Trying to call glVertexAttrib4fv() without current GL context";
3344 }
3345
3346 void NoContextGLApi::glVertexAttribDivisorANGLEFn(GLuint index,
3347 GLuint divisor) {
3348 NOTREACHED() << "Trying to call glVertexAttribDivisorANGLE() without current "
3349 "GL context";
3350 LOG(ERROR) << "Trying to call glVertexAttribDivisorANGLE() without current "
3351 "GL context";
3352 }
3353
3354 void NoContextGLApi::glVertexAttribI4iFn(GLuint indx,
3355 GLint x,
3356 GLint y,
3357 GLint z,
3358 GLint w) {
3359 NOTREACHED()
3360 << "Trying to call glVertexAttribI4i() without current GL context";
3361 LOG(ERROR) << "Trying to call glVertexAttribI4i() without current GL context";
3362 }
3363
3364 void NoContextGLApi::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
3365 NOTREACHED()
3366 << "Trying to call glVertexAttribI4iv() without current GL context";
3367 LOG(ERROR)
3368 << "Trying to call glVertexAttribI4iv() without current GL context";
3369 }
3370
3371 void NoContextGLApi::glVertexAttribI4uiFn(GLuint indx,
3372 GLuint x,
3373 GLuint y,
3374 GLuint z,
3375 GLuint w) {
3376 NOTREACHED()
3377 << "Trying to call glVertexAttribI4ui() without current GL context";
3378 LOG(ERROR)
3379 << "Trying to call glVertexAttribI4ui() without current GL context";
3380 }
3381
3382 void NoContextGLApi::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
3383 NOTREACHED()
3384 << "Trying to call glVertexAttribI4uiv() without current GL context";
3385 LOG(ERROR)
3386 << "Trying to call glVertexAttribI4uiv() without current GL context";
3387 }
3388
3389 void NoContextGLApi::glVertexAttribIPointerFn(GLuint indx,
3390 GLint size,
3391 GLenum type,
3392 GLsizei stride,
3393 const void* ptr) {
3394 NOTREACHED()
3395 << "Trying to call glVertexAttribIPointer() without current GL context";
3396 LOG(ERROR)
3397 << "Trying to call glVertexAttribIPointer() without current GL context";
3398 }
3399
3400 void NoContextGLApi::glVertexAttribPointerFn(GLuint indx,
3401 GLint size,
3402 GLenum type,
3403 GLboolean normalized,
3404 GLsizei stride,
3405 const void* ptr) {
3406 NOTREACHED()
3407 << "Trying to call glVertexAttribPointer() without current GL context";
3408 LOG(ERROR)
3409 << "Trying to call glVertexAttribPointer() without current GL context";
3410 }
3411
3412 void NoContextGLApi::glViewportFn(GLint x,
3413 GLint y,
3414 GLsizei width,
3415 GLsizei height) {
3416 NOTREACHED() << "Trying to call glViewport() without current GL context";
3417 LOG(ERROR) << "Trying to call glViewport() without current GL context";
3418 }
3419
3420 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync,
3421 GLbitfield flags,
3422 GLuint64 timeout) {
3423 NOTREACHED() << "Trying to call glWaitSync() without current GL context";
3424 LOG(ERROR) << "Trying to call glWaitSync() without current GL context";
3425 return static_cast<GLenum>(0);
3426 }
3427
3428 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/gl_bindings_autogen_gl3.cc ('k') | ui/gl/gl_bindings_autogen_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698