OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 virtual ~WebGraphicsErrorMessageCallback() { } | 134 virtual ~WebGraphicsErrorMessageCallback() { } |
135 }; | 135 }; |
136 | 136 |
137 // This destructor needs to be public so that using classes can destroy inst
ances if initialization fails. | 137 // This destructor needs to be public so that using classes can destroy inst
ances if initialization fails. |
138 virtual ~WebGraphicsContext3D() { } | 138 virtual ~WebGraphicsContext3D() { } |
139 | 139 |
140 // Each flush or finish is assigned an unique ID. The larger | 140 // Each flush or finish is assigned an unique ID. The larger |
141 // the ID number, the more recently the context has been flushed. | 141 // the ID number, the more recently the context has been flushed. |
142 virtual uint32_t lastFlushID() { return 0; } | 142 virtual uint32_t lastFlushID() { return 0; } |
143 | 143 |
144 // Resizes the region into which this WebGraphicsContext3D is drawing. | |
145 virtual void reshapeWithScaleFactor(int width, int height, float scaleFactor
) { } | |
146 | |
147 // GL_CHROMIUM_setVisibility - Changes the visibility of the backbuffer | |
148 virtual void setVisibilityCHROMIUM(bool visible) = 0; | |
149 | |
150 // GL_EXT_discard_framebuffer - makes specified attachments of currently bou
nd framebuffer undefined. | 144 // GL_EXT_discard_framebuffer - makes specified attachments of currently bou
nd framebuffer undefined. |
151 virtual void discardFramebufferEXT(WGC3Denum target, WGC3Dsizei numAttachmen
ts, const WGC3Denum* attachments) { } | 145 virtual void discardFramebufferEXT(WGC3Denum target, WGC3Dsizei numAttachmen
ts, const WGC3Denum* attachments) { } |
152 | 146 |
153 // GL_CHROMIUM_discard_backbuffer - controls allocation/deallocation of the
back buffer. | |
154 virtual void discardBackbufferCHROMIUM() { } | |
155 virtual void ensureBackbufferCHROMIUM() { } | |
156 | |
157 virtual WGC3Duint64 insertFenceSyncCHROMIUM() { return 0; } | 147 virtual WGC3Duint64 insertFenceSyncCHROMIUM() { return 0; } |
158 virtual bool genSyncTokenCHROMIUM(WGC3Duint64, WGC3Dbyte*) { return false; } | 148 virtual bool genSyncTokenCHROMIUM(WGC3Duint64, WGC3Dbyte*) { return false; } |
159 virtual void waitSyncTokenCHROMIUM(const WGC3Dbyte*) {} | 149 virtual void waitSyncTokenCHROMIUM(const WGC3Dbyte*) {} |
160 | 150 |
161 // Copies the contents of the off-screen render target used by the WebGL | |
162 // context to the corresponding texture used by the compositor. | |
163 virtual void prepareTexture() = 0; | |
164 | |
165 // GL_CHROMIUM_post_sub_buffer - Copies part of the back buffer to the front
buffer. | |
166 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) = 0; | |
167 | |
168 // Synthesizes an OpenGL error which will be returned from a | 151 // Synthesizes an OpenGL error which will be returned from a |
169 // later call to getError. This is used to emulate OpenGL ES | 152 // later call to getError. This is used to emulate OpenGL ES |
170 // 2.0 behavior on the desktop and to enforce additional error | 153 // 2.0 behavior on the desktop and to enforce additional error |
171 // checking mandated by WebGL. | 154 // checking mandated by WebGL. |
172 // | 155 // |
173 // Per the behavior of glGetError, this stores at most one | 156 // Per the behavior of glGetError, this stores at most one |
174 // instance of any given error, and returns them from calls to | 157 // instance of any given error, and returns them from calls to |
175 // getError in the order they were added. | 158 // getError in the order they were added. |
176 virtual void synthesizeGLError(WGC3Denum) = 0; | 159 virtual void synthesizeGLError(WGC3Denum) = 0; |
177 | 160 |
178 // GL_CHROMIUM_map_sub | |
179 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset,
WGC3Dsizeiptr size, WGC3Denum access) = 0; | |
180 virtual void unmapBufferSubDataCHROMIUM(const void*) = 0; | |
181 virtual void* mapTexSubImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WGC
3Dint xoffset, WGC3Dint yoffset, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum
format, WGC3Denum type, WGC3Denum access) = 0; | |
182 virtual void unmapTexSubImage2DCHROMIUM(const void*) = 0; | |
183 | |
184 // GL_CHROMIUM_request_extension | 161 // GL_CHROMIUM_request_extension |
185 virtual WebString getRequestableExtensionsCHROMIUM() = 0; | 162 virtual WebString getRequestableExtensionsCHROMIUM() = 0; |
186 virtual void requestExtensionCHROMIUM(const char*) = 0; | 163 virtual void requestExtensionCHROMIUM(const char*) = 0; |
187 | 164 |
188 // GL_CHROMIUM_framebuffer_multisample | 165 // GL_CHROMIUM_framebuffer_multisample |
189 virtual void blitFramebufferCHROMIUM(WGC3Dint srcX0, WGC3Dint srcY0, WGC3Din
t srcX1, WGC3Dint srcY1, WGC3Dint dstX0, WGC3Dint dstY0, WGC3Dint dstX1, WGC3Din
t dstY1, WGC3Dbitfield mask, WGC3Denum filter) = 0; | 166 virtual void blitFramebufferCHROMIUM(WGC3Dint srcX0, WGC3Dint srcY0, WGC3Din
t srcX1, WGC3Dint srcY1, WGC3Dint dstX0, WGC3Dint dstY0, WGC3Dint dstX1, WGC3Din
t dstY1, WGC3Dbitfield mask, WGC3Denum filter) = 0; |
190 virtual void renderbufferStorageMultisampleCHROMIUM(WGC3Denum target, WGC3Ds
izei samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) = 0
; | 167 virtual void renderbufferStorageMultisampleCHROMIUM(WGC3Denum target, WGC3Ds
izei samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) = 0
; |
191 | 168 |
192 // GL_CHROMIUM_lose_context | |
193 virtual void loseContextCHROMIUM(WGC3Denum current, WGC3Denum other) { } | |
194 | |
195 // The entry points below map directly to the OpenGL ES 2.0 API. | 169 // The entry points below map directly to the OpenGL ES 2.0 API. |
196 // See: http://www.khronos.org/registry/gles/ | 170 // See: http://www.khronos.org/registry/gles/ |
197 // and: http://www.khronos.org/opengles/sdk/docs/man/ | 171 // and: http://www.khronos.org/opengles/sdk/docs/man/ |
198 virtual void activeTexture(WGC3Denum texture) = 0; | 172 virtual void activeTexture(WGC3Denum texture) = 0; |
199 virtual void attachShader(WebGLId program, WebGLId shader) = 0; | 173 virtual void attachShader(WebGLId program, WebGLId shader) = 0; |
200 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, const WGC3
Dchar* name) = 0; | 174 virtual void bindAttribLocation(WebGLId program, WGC3Duint index, const WGC3
Dchar* name) = 0; |
201 virtual void bindBuffer(WGC3Denum target, WebGLId buffer) = 0; | 175 virtual void bindBuffer(WGC3Denum target, WebGLId buffer) = 0; |
202 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer) = 0; | 176 virtual void bindFramebuffer(WGC3Denum target, WebGLId framebuffer) = 0; |
203 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer) = 0; | 177 virtual void bindRenderbuffer(WGC3Denum target, WebGLId renderbuffer) = 0; |
204 virtual void bindTexture(WGC3Denum target, WebGLId texture) = 0; | 178 virtual void bindTexture(WGC3Denum target, WebGLId texture) = 0; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 virtual WGC3Dboolean isRenderbuffer(WebGLId renderbuffer) = 0; | 251 virtual WGC3Dboolean isRenderbuffer(WebGLId renderbuffer) = 0; |
278 virtual WGC3Dboolean isShader(WebGLId shader) = 0; | 252 virtual WGC3Dboolean isShader(WebGLId shader) = 0; |
279 virtual WGC3Dboolean isTexture(WebGLId texture) = 0; | 253 virtual WGC3Dboolean isTexture(WebGLId texture) = 0; |
280 virtual void lineWidth(WGC3Dfloat) = 0; | 254 virtual void lineWidth(WGC3Dfloat) = 0; |
281 virtual void linkProgram(WebGLId program) = 0; | 255 virtual void linkProgram(WebGLId program) = 0; |
282 virtual void pixelStorei(WGC3Denum pname, WGC3Dint param) = 0; | 256 virtual void pixelStorei(WGC3Denum pname, WGC3Dint param) = 0; |
283 virtual void polygonOffset(WGC3Dfloat factor, WGC3Dfloat units) = 0; | 257 virtual void polygonOffset(WGC3Dfloat factor, WGC3Dfloat units) = 0; |
284 | 258 |
285 virtual void readPixels(WGC3Dint x, WGC3Dint y, WGC3Dsizei width, WGC3Dsizei
height, WGC3Denum format, WGC3Denum type, void* pixels) = 0; | 259 virtual void readPixels(WGC3Dint x, WGC3Dint y, WGC3Dsizei width, WGC3Dsizei
height, WGC3Denum format, WGC3Denum type, void* pixels) = 0; |
286 | 260 |
287 virtual void releaseShaderCompiler() = 0; | |
288 | |
289 virtual void renderbufferStorage(WGC3Denum target, WGC3Denum internalformat,
WGC3Dsizei width, WGC3Dsizei height) = 0; | 261 virtual void renderbufferStorage(WGC3Denum target, WGC3Denum internalformat,
WGC3Dsizei width, WGC3Dsizei height) = 0; |
290 virtual void sampleCoverage(WGC3Dclampf value, WGC3Dboolean invert) = 0; | 262 virtual void sampleCoverage(WGC3Dclampf value, WGC3Dboolean invert) = 0; |
291 virtual void scissor(WGC3Dint x, WGC3Dint y, WGC3Dsizei width, WGC3Dsizei he
ight) = 0; | 263 virtual void scissor(WGC3Dint x, WGC3Dint y, WGC3Dsizei width, WGC3Dsizei he
ight) = 0; |
292 virtual void shaderSource(WebGLId shader, const WGC3Dchar* string) = 0; | 264 virtual void shaderSource(WebGLId shader, const WGC3Dchar* string) = 0; |
293 virtual void stencilFunc(WGC3Denum func, WGC3Dint ref, WGC3Duint mask) = 0; | 265 virtual void stencilFunc(WGC3Denum func, WGC3Dint ref, WGC3Duint mask) = 0; |
294 virtual void stencilFuncSeparate(WGC3Denum face, WGC3Denum func, WGC3Dint re
f, WGC3Duint mask) = 0; | 266 virtual void stencilFuncSeparate(WGC3Denum face, WGC3Denum func, WGC3Dint re
f, WGC3Duint mask) = 0; |
295 virtual void stencilMask(WGC3Duint mask) = 0; | 267 virtual void stencilMask(WGC3Duint mask) = 0; |
296 virtual void stencilMaskSeparate(WGC3Denum face, WGC3Duint mask) = 0; | 268 virtual void stencilMaskSeparate(WGC3Denum face, WGC3Duint mask) = 0; |
297 virtual void stencilOp(WGC3Denum fail, WGC3Denum zfail, WGC3Denum zpass) = 0
; | 269 virtual void stencilOp(WGC3Denum fail, WGC3Denum zfail, WGC3Denum zpass) = 0
; |
298 virtual void stencilOpSeparate(WGC3Denum face, WGC3Denum fail, WGC3Denum zfa
il, WGC3Denum zpass) = 0; | 270 virtual void stencilOpSeparate(WGC3Denum face, WGC3Denum fail, WGC3Denum zfa
il, WGC3Denum zpass) = 0; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 virtual void deleteTexture(WebGLId) = 0; | 323 virtual void deleteTexture(WebGLId) = 0; |
352 | 324 |
353 virtual WebGLId createProgram() = 0; | 325 virtual WebGLId createProgram() = 0; |
354 virtual WebGLId createShader(WGC3Denum) = 0; | 326 virtual WebGLId createShader(WGC3Denum) = 0; |
355 | 327 |
356 virtual void deleteShader(WebGLId) = 0; | 328 virtual void deleteShader(WebGLId) = 0; |
357 virtual void deleteProgram(WebGLId) = 0; | 329 virtual void deleteProgram(WebGLId) = 0; |
358 | 330 |
359 virtual void setContextLostCallback(WebGraphicsContextLostCallback* callback
) { } | 331 virtual void setContextLostCallback(WebGraphicsContextLostCallback* callback
) { } |
360 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba
ck) { } | 332 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba
ck) { } |
361 // GL_ARB_robustness | |
362 // | |
363 // This entry point must provide slightly different semantics than | |
364 // the GL_ARB_robustness extension; specifically, the lost context | |
365 // state is sticky, rather than reported only once. | |
366 virtual WGC3Denum getGraphicsResetStatusARB() { return 0; /* GL_NO_ERROR */
} | |
367 | 333 |
368 virtual WebString getTranslatedShaderSourceANGLE(WebGLId shader) = 0; | 334 virtual WebString getTranslatedShaderSourceANGLE(WebGLId shader) = 0; |
369 | 335 |
370 // GL_CHROMIUM_screen_space_antialiasing | 336 // GL_CHROMIUM_screen_space_antialiasing |
371 virtual void applyScreenSpaceAntialiasingCHROMIUM() { } | 337 virtual void applyScreenSpaceAntialiasingCHROMIUM() { } |
372 | 338 |
373 // GL_CHROMIUM_iosurface | |
374 virtual void texImageIOSurface2DCHROMIUM(WGC3Denum target, WGC3Dint width, W
GC3Dint height, WGC3Duint ioSurfaceId, WGC3Duint plane) { } | |
375 | |
376 // GL_EXT_texture_storage | 339 // GL_EXT_texture_storage |
377 virtual void texStorage2DEXT(WGC3Denum target, WGC3Dint levels, WGC3Duint in
ternalformat, | 340 virtual void texStorage2DEXT(WGC3Denum target, WGC3Dint levels, WGC3Duint in
ternalformat, |
378 WGC3Dint width, WGC3Dint height) { } | 341 WGC3Dint width, WGC3Dint height) { } |
379 | 342 |
380 // GL_EXT_occlusion_query | 343 // GL_EXT_occlusion_query |
381 virtual WebGLId createQueryEXT() { return 0; } | 344 virtual WebGLId createQueryEXT() { return 0; } |
382 virtual void deleteQueryEXT(WebGLId query) { } | 345 virtual void deleteQueryEXT(WebGLId query) { } |
383 virtual WGC3Dboolean isQueryEXT(WebGLId query) { return false; } | 346 virtual WGC3Dboolean isQueryEXT(WebGLId query) { return false; } |
384 virtual void beginQueryEXT(WGC3Denum target, WebGLId query) { } | 347 virtual void beginQueryEXT(WGC3Denum target, WebGLId query) { } |
385 virtual void endQueryEXT(WGC3Denum target) { } | 348 virtual void endQueryEXT(WGC3Denum target) { } |
386 virtual void getQueryivEXT(WGC3Denum target, WGC3Denum pname, WGC3Dint* para
ms) { } | 349 virtual void getQueryivEXT(WGC3Denum target, WGC3Denum pname, WGC3Dint* para
ms) { } |
387 virtual void getQueryObjectuivEXT(WebGLId query, WGC3Denum pname, WGC3Duint*
params) { } | 350 virtual void getQueryObjectuivEXT(WebGLId query, WGC3Denum pname, WGC3Duint*
params) { } |
388 | 351 |
389 // GL_EXT_disjoint_timer_query | 352 // GL_EXT_disjoint_timer_query |
390 virtual void queryCounterEXT(WebGLId query, WGC3Denum target) {} | 353 virtual void queryCounterEXT(WebGLId query, WGC3Denum target) {} |
391 virtual void getQueryObjectui64vEXT(WebGLId query, WGC3Denum pname, WGC3Duin
t64* params) {} | 354 virtual void getQueryObjectui64vEXT(WebGLId query, WGC3Denum pname, WGC3Duin
t64* params) {} |
392 | 355 |
393 // GL_CHROMIUM_bind_uniform_location | |
394 virtual void bindUniformLocationCHROMIUM(WebGLId program, WGC3Dint location,
const WGC3Dchar* uniform) { } | |
395 | |
396 // GL_CHROMIUM_copy_texture | 356 // GL_CHROMIUM_copy_texture |
397 virtual void copyTextureCHROMIUM(WGC3Duint sourceId, | 357 virtual void copyTextureCHROMIUM(WGC3Duint sourceId, |
398 WGC3Duint destId, WGC3Denum internalFormat, WGC3Denum destType, | 358 WGC3Duint destId, WGC3Denum internalFormat, WGC3Denum destType, |
399 WGC3Dboolean unpackFlipY, WGC3Dboolean unpackPremultiplyAlpha, WGC3Dbool
ean unpackUnmultiplyAlpha) { } | 359 WGC3Dboolean unpackFlipY, WGC3Dboolean unpackPremultiplyAlpha, WGC3Dbool
ean unpackUnmultiplyAlpha) { } |
400 virtual void copySubTextureCHROMIUM(WGC3Duint sourceId, | 360 virtual void copySubTextureCHROMIUM(WGC3Duint sourceId, |
401 WGC3Duint destId, WGC3Dint xoffset, WGC3Dint yoffset, WGC3Dint x, | 361 WGC3Duint destId, WGC3Dint xoffset, WGC3Dint yoffset, WGC3Dint x, |
402 WGC3Dint y, WGC3Dsizei width, WGC3Dsizei height, | 362 WGC3Dint y, WGC3Dsizei width, WGC3Dsizei height, |
403 WGC3Dboolean unpackFlipY, WGC3Dboolean unpackPremultiplyAlpha, WGC3Dbool
ean unpackUnmultiplyAlpha) { } | 363 WGC3Dboolean unpackFlipY, WGC3Dboolean unpackPremultiplyAlpha, WGC3Dbool
ean unpackUnmultiplyAlpha) { } |
404 | 364 |
405 // GL_CHROMIUM_shallow_flush | |
406 virtual void shallowFlushCHROMIUM() { } | |
407 virtual void shallowFinishCHROMIUM() { } | |
408 | |
409 // GL_CHROMIUM_subscribe_uniform | 365 // GL_CHROMIUM_subscribe_uniform |
410 virtual void genValuebuffersCHROMIUM(WGC3Dsizei count, WebGLId* ids) { } | 366 virtual void genValuebuffersCHROMIUM(WGC3Dsizei count, WebGLId* ids) { } |
411 virtual WebGLId createValuebufferCHROMIUM() { return 0; } | 367 virtual WebGLId createValuebufferCHROMIUM() { return 0; } |
412 virtual void deleteValuebuffersCHROMIUM(WGC3Dsizei count, WebGLId* ids) { } | 368 virtual void deleteValuebuffersCHROMIUM(WGC3Dsizei count, WebGLId* ids) { } |
413 virtual void deleteValuebufferCHROMIUM(WebGLId) { } | 369 virtual void deleteValuebufferCHROMIUM(WebGLId) { } |
414 virtual WGC3Dboolean isValuebufferCHROMIUM(WebGLId renderbuffer) { return fa
lse; } | 370 virtual WGC3Dboolean isValuebufferCHROMIUM(WebGLId renderbuffer) { return fa
lse; } |
415 virtual void bindValuebufferCHROMIUM(WGC3Denum target, WebGLId valuebuffer)
{ } | 371 virtual void bindValuebufferCHROMIUM(WGC3Denum target, WebGLId valuebuffer)
{ } |
416 virtual void subscribeValueCHROMIUM(WGC3Denum target, WGC3Denum subscription
) { } | 372 virtual void subscribeValueCHROMIUM(WGC3Denum target, WGC3Denum subscription
) { } |
417 virtual void populateSubscribedValuesCHROMIUM(WGC3Denum target) { } | 373 virtual void populateSubscribedValuesCHROMIUM(WGC3Denum target) { } |
418 virtual void uniformValuebufferCHROMIUM(WGC3Dint location, WGC3Denum target,
WGC3Denum subscription) { } | 374 virtual void uniformValuebufferCHROMIUM(WGC3Dint location, WGC3Denum target,
WGC3Denum subscription) { } |
419 | 375 |
420 // GL_CHROMIUM_texture_mailbox | 376 // GL_CHROMIUM_texture_mailbox |
421 virtual void genMailboxCHROMIUM(WGC3Dbyte* mailbox) { } | 377 virtual void genMailboxCHROMIUM(WGC3Dbyte* mailbox) { } |
422 virtual void produceTextureCHROMIUM(WGC3Denum target, const WGC3Dbyte* mailb
ox) { } | 378 virtual void produceTextureCHROMIUM(WGC3Denum target, const WGC3Dbyte* mailb
ox) { } |
423 virtual void produceTextureDirectCHROMIUM(WebGLId texture, WGC3Denum target,
const WGC3Dbyte* mailbox) { } | 379 virtual void produceTextureDirectCHROMIUM(WebGLId texture, WGC3Denum target,
const WGC3Dbyte* mailbox) { } |
424 | 380 |
425 virtual void consumeTextureCHROMIUM(WGC3Denum target, const WGC3Dbyte* mailb
ox) { } | |
426 virtual WebGLId createAndConsumeTextureCHROMIUM(WGC3Denum target, const WGC3
Dbyte* mailbox) { return 0; } | 381 virtual WebGLId createAndConsumeTextureCHROMIUM(WGC3Denum target, const WGC3
Dbyte* mailbox) { return 0; } |
427 | 382 |
428 // GL_EXT_debug_marker | 383 // GL_EXT_debug_marker |
429 virtual void insertEventMarkerEXT(const WGC3Dchar* marker) { } | |
430 virtual void pushGroupMarkerEXT(const WGC3Dchar* marker) { } | 384 virtual void pushGroupMarkerEXT(const WGC3Dchar* marker) { } |
431 virtual void popGroupMarkerEXT(void) { } | |
432 | |
433 // GL_CHROMIUM_trace_marker | |
434 virtual void traceBeginCHROMIUM(const WGC3Dchar* category, const WGC3Dchar*
trace) { } | |
435 virtual void traceEndCHROMIUM() { } | |
436 | 385 |
437 // GL_OES_vertex_array_object | 386 // GL_OES_vertex_array_object |
438 virtual WebGLId createVertexArrayOES() { return 0; } | 387 virtual WebGLId createVertexArrayOES() { return 0; } |
439 virtual void deleteVertexArrayOES(WebGLId array) { } | 388 virtual void deleteVertexArrayOES(WebGLId array) { } |
440 virtual WGC3Dboolean isVertexArrayOES(WebGLId array) { return false; } | 389 virtual WGC3Dboolean isVertexArrayOES(WebGLId array) { return false; } |
441 virtual void bindVertexArrayOES(WebGLId array) { } | 390 virtual void bindVertexArrayOES(WebGLId array) { } |
442 | 391 |
443 // GL_CHROMIUM_texture_from_image | 392 // GL_CHROMIUM_texture_from_image |
444 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId) { } | 393 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId) { } |
445 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId) {
} | 394 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId) {
} |
446 | 395 |
447 // GL_CHROMIUM_pixel_transfer_buffer_object | |
448 virtual void* mapBufferCHROMIUM(WGC3Denum target, WGC3Denum access) { return
nullptr; } | |
449 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target) { return false; } | |
450 | |
451 // GL_CHROMIUM_async_pixel_transfers | |
452 virtual void asyncTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WGC3D
enum internalformat, WGC3Dsizei width, WGC3Dsizei height, WGC3Dint border, WGC3D
enum format, WGC3Denum type, const void* pixels) { } | |
453 virtual void asyncTexSubImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WG
C3Dint xoffset, WGC3Dint yoffset, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum
format, WGC3Denum type, const void* pixels) { } | |
454 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum) { } | |
455 | |
456 // GL_EXT_draw_buffers | 396 // GL_EXT_draw_buffers |
457 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs) { } | 397 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs) { } |
458 | 398 |
459 // GL_CHROMIUM_image | 399 // GL_CHROMIUM_image |
460 virtual void destroyImageCHROMIUM(WGC3Duint imageId) { } | 400 virtual void destroyImageCHROMIUM(WGC3Duint imageId) { } |
461 | 401 |
462 // GL_CHROMIUM_gpu_memory_buffer_image | 402 // GL_CHROMIUM_gpu_memory_buffer_image |
463 virtual WGC3Duint createGpuMemoryBufferImageCHROMIUM(WGC3Dsizei width, WGC3D
sizei height, WGC3Denum internalformat, WGC3Denum usage) { return 0; } | 403 virtual WGC3Duint createGpuMemoryBufferImageCHROMIUM(WGC3Dsizei width, WGC3D
sizei height, WGC3Denum internalformat, WGC3Denum usage) { return 0; } |
464 | 404 |
465 // GL_ANGLE_instanced_arrays | 405 // GL_ANGLE_instanced_arrays |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum
type, WGC3Dsizei stride, WGC3Dintptr pointer) { } | 495 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum
type, WGC3Dsizei stride, WGC3Dintptr pointer) { } |
556 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
ut) { } | 496 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo
ut) { } |
557 | 497 |
558 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi
ble, and avoid using WebGraphicsContext3D at all. | 498 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi
ble, and avoid using WebGraphicsContext3D at all. |
559 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0; | 499 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0; |
560 }; | 500 }; |
561 | 501 |
562 } // namespace blink | 502 } // namespace blink |
563 | 503 |
564 #endif | 504 #endif |
OLD | NEW |