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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl

Issue 2815793002: [SharedArrayBuffer] Add "AllowShared" extended attribute, used for WebGL (Closed)
Patch Set: merge HEAD Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7 5 // https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7
6 6
7 typedef long long GLint64; 7 typedef long long GLint64;
8 typedef unsigned long long GLuint64; 8 typedef unsigned long long GLuint64;
9 9
10 [ 10 [
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 const GLenum TRANSFORM_FEEDBACK_BINDING = 0x8E25; 270 const GLenum TRANSFORM_FEEDBACK_BINDING = 0x8E25;
271 const GLenum TEXTURE_IMMUTABLE_FORMAT = 0x912F; 271 const GLenum TEXTURE_IMMUTABLE_FORMAT = 0x912F;
272 const GLenum MAX_ELEMENT_INDEX = 0x8D6B; 272 const GLenum MAX_ELEMENT_INDEX = 0x8D6B;
273 const GLenum TEXTURE_IMMUTABLE_LEVELS = 0x82DF; 273 const GLenum TEXTURE_IMMUTABLE_LEVELS = 0x82DF;
274 const GLint TIMEOUT_IGNORED = -1; 274 const GLint TIMEOUT_IGNORED = -1;
275 275
276 /* WebGL-specific enums */ 276 /* WebGL-specific enums */
277 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247; 277 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247;
278 278
279 /* Buffer objects */ 279 /* Buffer objects */
280 void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage, GLuint srcOffset, optional GLuint length = 0); 280 void bufferData(GLenum target, [AllowShared] ArrayBufferView srcData, GLenum usage, GLuint srcOffset, optional GLuint length = 0);
281 void bufferSubData(GLenum target, GLintptr dstByteOffset, ArrayBufferView sr cData, GLuint srcOffset, optional GLuint length = 0); 281 void bufferSubData(GLenum target, GLintptr dstByteOffset, [AllowShared] Arra yBufferView srcData, GLuint srcOffset, optional GLuint length = 0);
282 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO ffset, GLintptr writeOffset, GLsizeiptr size); 282 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO ffset, GLintptr writeOffset, GLsizeiptr size);
283 void getBufferSubData(GLenum target, GLintptr srcByteOffset, ArrayBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0); 283 void getBufferSubData(GLenum target, GLintptr srcByteOffset, [AllowShared] A rrayBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0);
284 284
285 /* Framebuffer objects */ 285 /* Framebuffer objects */
286 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) ; 286 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) ;
287 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint layer); 287 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint layer);
288 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname); 288 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname);
289 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments); 289 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments);
290 void invalidateSubFramebuffer(GLenum target, sequence<GLenum> attachments, G Lint x, GLint y, GLsizei width, GLsizei height); 290 void invalidateSubFramebuffer(GLenum target, sequence<GLenum> attachments, G Lint x, GLint y, GLsizei width, GLsizei height);
291 void readBuffer(GLenum mode); 291 void readBuffer(GLenum mode);
292 292
293 /* Renderbuffer objects */ 293 /* Renderbuffer objects */
294 void renderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum i nternalformat, GLsizei width, GLsizei height); 294 void renderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum i nternalformat, GLsizei width, GLsizei height);
295 295
296 /* Texture objects */ 296 /* Texture objects */
297 void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLint border, GLenum format, GLenum type, GLintptr offset); 297 void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLint border, GLenum format, GLenum type, GLintptr offset);
298 void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLint border, GLenum format, GLenum type, ImageData data); 298 void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLint border, GLenum format, GLenum type, ImageData data);
299 [CallWith=ExecutionContext, RaisesException] void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, HTMLImageElement image); 299 [CallWith=ExecutionContext, RaisesException] void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, HTMLImageElement image);
300 [CallWith=ExecutionContext, RaisesException] void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, HTMLCanvasElement canvas); 300 [CallWith=ExecutionContext, RaisesException] void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, HTMLCanvasElement canvas);
301 [CallWith=ExecutionContext,RaisesException] void texImage2D(GLenum target, G Lint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, G Lenum format, GLenum type, HTMLVideoElement video); 301 [CallWith=ExecutionContext,RaisesException] void texImage2D(GLenum target, G Lint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, G Lenum format, GLenum type, HTMLVideoElement video);
302 [RaisesException] void texImage2D(GLenum target, GLint level, GLint internal format, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, ImageBitmap bitmap); 302 [RaisesException] void texImage2D(GLenum target, GLint level, GLint internal format, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, ImageBitmap bitmap);
303 void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLint border, GLenum format, GLenum type, ArrayBufferView s rcData, GLuint srcOffset); 303 void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLint border, GLenum format, GLenum type, [AllowShared] Arr ayBufferView srcData, GLuint srcOffset);
304 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLintptr offset); 304 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLintptr offset);
305 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, ImageData data); 305 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, ImageData data);
306 [CallWith=ExecutionContext, RaisesException] void texSubImage2D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLe num format, GLenum type, HTMLImageElement image); 306 [CallWith=ExecutionContext, RaisesException] void texSubImage2D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLe num format, GLenum type, HTMLImageElement image);
307 [CallWith=ExecutionContext, RaisesException] void texSubImage2D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLe num format, GLenum type, HTMLCanvasElement canvas); 307 [CallWith=ExecutionContext, RaisesException] void texSubImage2D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLe num format, GLenum type, HTMLCanvasElement canvas);
308 [CallWith=ExecutionContext, RaisesException] void texSubImage2D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLe num format, GLenum type, HTMLVideoElement video); 308 [CallWith=ExecutionContext, RaisesException] void texSubImage2D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLe num format, GLenum type, HTMLVideoElement video);
309 [RaisesException] void texSubImage2D(GLenum target, GLint level, GLint xoffs et, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, Im ageBitmap bitmap); 309 [RaisesException] void texSubImage2D(GLenum target, GLint level, GLint xoffs et, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, Im ageBitmap bitmap);
310 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView srcD ata, GLuint srcOffset); 310 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, [AllowShared] ArrayB ufferView srcData, GLuint srcOffset);
311 void texStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsi zei width, GLsizei height); 311 void texStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsi zei width, GLsizei height);
312 void texStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsi zei width, GLsizei height, GLsizei depth); 312 void texStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsi zei width, GLsizei height, GLsizei depth);
313 void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GL intptr offset); 313 void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GL intptr offset);
314 void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, Im ageData data); 314 void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, Im ageData data);
315 [CallWith=ExecutionContext, RaisesException] void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, HTMLImageElement image); 315 [CallWith=ExecutionContext, RaisesException] void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, HTMLImageElement image);
316 [CallWith=ExecutionContext, RaisesException] void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, HTMLCanvasElement canvas); 316 [CallWith=ExecutionContext, RaisesException] void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, HTMLCanvasElement canvas);
317 [CallWith=ExecutionContext, RaisesException] void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, HTMLVideoElement video); 317 [CallWith=ExecutionContext, RaisesException] void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, HTMLVideoElement video);
318 [RaisesException] void texImage3D(GLenum target, GLint level, GLint internal format, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum forma t, GLenum type, ImageBitmap bitmap); 318 [RaisesException] void texImage3D(GLenum target, GLint level, GLint internal format, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum forma t, GLenum type, ImageBitmap bitmap);
319 void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, Ar rayBufferView? pixels); 319 void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, [A llowShared] ArrayBufferView? pixels);
320 void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, Ar rayBufferView pixels, GLuint srcOffset); 320 void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei wi dth, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, [A llowShared] ArrayBufferView pixels, GLuint srcOffset);
321 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLe num type, GLintptr offset); 321 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLe num type, GLintptr offset);
322 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLe num type, ImageData data); 322 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLe num type, ImageData data);
323 [CallWith=ExecutionContext, RaisesException] void texSubImage3D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsi zei height, GLsizei depth, GLenum format, GLenum type, HTMLImageElement image); 323 [CallWith=ExecutionContext, RaisesException] void texSubImage3D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsi zei height, GLsizei depth, GLenum format, GLenum type, HTMLImageElement image);
324 [CallWith=ExecutionContext, RaisesException] void texSubImage3D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsi zei height, GLsizei depth, GLenum format, GLenum type, HTMLCanvasElement canvas) ; 324 [CallWith=ExecutionContext, RaisesException] void texSubImage3D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsi zei height, GLsizei depth, GLenum format, GLenum type, HTMLCanvasElement canvas) ;
325 [CallWith=ExecutionContext, RaisesException] void texSubImage3D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsi zei height, GLsizei depth, GLenum format, GLenum type, HTMLVideoElement video); 325 [CallWith=ExecutionContext, RaisesException] void texSubImage3D(GLenum targe t, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsi zei height, GLsizei depth, GLenum format, GLenum type, HTMLVideoElement video);
326 [RaisesException] void texSubImage3D(GLenum target, GLint level, GLint xoffs et, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, ImageBitmap bitmap); 326 [RaisesException] void texSubImage3D(GLenum target, GLint level, GLint xoffs et, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, ImageBitmap bitmap);
327 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLe num type, ArrayBufferView pixels, optional GLuint srcOffset = 0); 327 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLe num type, [AllowShared] ArrayBufferView pixels, optional GLuint srcOffset = 0);
328 328
329 void copyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoff set, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); 329 void copyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoff set, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
330 330
331 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, 331 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
332 GLsizei width, GLsizei height, GLint border, 332 GLsizei width, GLsizei height, GLint border,
333 ArrayBufferView data, GLuint srcOffset, 333 [AllowShared] ArrayBufferView data, GLuint srcOffs et,
334 optional GLuint srcLengthOverride = 0); 334 optional GLuint srcLengthOverride = 0);
335 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin t yoffset, 335 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin t yoffset,
336 GLsizei width, GLsizei height, GLenum format, 336 GLsizei width, GLsizei height, GLenum format,
337 ArrayBufferView data, GLuint srcOffset, 337 [AllowShared] ArrayBufferView data, GLuint srcO ffset,
338 optional GLuint srcLengthOverride = 0); 338 optional GLuint srcLengthOverride = 0);
339 void compressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, ArrayBufferView dat a, optional GLuint srcOffset = 0, optional GLuint srcLengthOverride = 0); 339 void compressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, [AllowShared] Array BufferView data, optional GLuint srcOffset = 0, optional GLuint srcLengthOverrid e = 0);
340 void compressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLin t yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum f ormat, ArrayBufferView data, optional GLuint srcOffset = 0, optional GLuint srcL engthOverride = 0); 340 void compressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLin t yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum f ormat, [AllowShared] ArrayBufferView data, optional GLuint srcOffset = 0, option al GLuint srcLengthOverride = 0);
341 341
342 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, 342 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
343 GLsizei width, GLsizei height, GLint border, 343 GLsizei width, GLsizei height, GLint border,
344 GLsizei imageSize, GLintptr offset); 344 GLsizei imageSize, GLintptr offset);
345 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin t yoffset, 345 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin t yoffset,
346 GLsizei width, GLsizei height, GLenum format, 346 GLsizei width, GLsizei height, GLenum format,
347 GLsizei imageSize, GLintptr offset); 347 GLsizei imageSize, GLintptr offset);
348 void compressedTexImage3D(GLenum target, GLint level, GLenum internalformat, 348 void compressedTexImage3D(GLenum target, GLint level, GLenum internalformat,
349 GLsizei width, GLsizei height, GLsizei depth, GLin t border, 349 GLsizei width, GLsizei height, GLsizei depth, GLin t border,
350 GLsizei imageSize, GLintptr offset); 350 GLsizei imageSize, GLintptr offset);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 void uniform2uiv(WebGLUniformLocation? location, sequence<GLuint> v, 405 void uniform2uiv(WebGLUniformLocation? location, sequence<GLuint> v,
406 optional GLuint srcOffset = 0, optional GLuint srcLength = 0); 406 optional GLuint srcOffset = 0, optional GLuint srcLength = 0);
407 void uniform3uiv(WebGLUniformLocation? location, [FlexibleArrayBufferView] U int32Array v, 407 void uniform3uiv(WebGLUniformLocation? location, [FlexibleArrayBufferView] U int32Array v,
408 optional GLuint srcOffset = 0, optional GLuint srcLength = 0); 408 optional GLuint srcOffset = 0, optional GLuint srcLength = 0);
409 void uniform3uiv(WebGLUniformLocation? location, sequence<GLuint> v, 409 void uniform3uiv(WebGLUniformLocation? location, sequence<GLuint> v,
410 optional GLuint srcOffset = 0, optional GLuint srcLength = 0); 410 optional GLuint srcOffset = 0, optional GLuint srcLength = 0);
411 void uniform4uiv(WebGLUniformLocation? location, [FlexibleArrayBufferView] U int32Array v, 411 void uniform4uiv(WebGLUniformLocation? location, [FlexibleArrayBufferView] U int32Array v,
412 optional GLuint srcOffset = 0, optional GLuint srcLength = 0); 412 optional GLuint srcOffset = 0, optional GLuint srcLength = 0);
413 void uniform4uiv(WebGLUniformLocation? location, sequence<GLuint> v, 413 void uniform4uiv(WebGLUniformLocation? location, sequence<GLuint> v,
414 optional GLuint srcOffset = 0, optional GLuint srcLength = 0); 414 optional GLuint srcOffset = 0, optional GLuint srcLength = 0);
415 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array, 415 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, [ AllowShared] Float32Array array,
416 GLuint srcOffset, optional GLuint srcLength = 0); 416 GLuint srcOffset, optional GLuint srcLength = 0);
417 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array, 417 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array,
418 GLuint srcOffset, optional GLuint srcLength = 0); 418 GLuint srcOffset, optional GLuint srcLength = 0);
419 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array, 419 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, [ AllowShared] Float32Array array,
420 GLuint srcOffset, optional GLuint srcLength = 0); 420 GLuint srcOffset, optional GLuint srcLength = 0);
421 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array, 421 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array,
422 GLuint srcOffset, optional GLuint srcLength = 0); 422 GLuint srcOffset, optional GLuint srcLength = 0);
423 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array, 423 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, [ AllowShared] Float32Array array,
424 GLuint srcOffset, optional GLuint srcLength = 0); 424 GLuint srcOffset, optional GLuint srcLength = 0);
425 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array, 425 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array,
426 GLuint srcOffset, optional GLuint srcLength = 0); 426 GLuint srcOffset, optional GLuint srcLength = 0);
427 void uniformMatrix2x3fv(WebGLUniformLocation? location, GLboolean transpose, Float32Array value, 427 void uniformMatrix2x3fv(WebGLUniformLocation? location, GLboolean transpose, [AllowShared] Float32Array value,
428 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 428 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
429 void uniformMatrix2x3fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value, 429 void uniformMatrix2x3fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value,
430 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 430 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
431 void uniformMatrix3x2fv(WebGLUniformLocation? location, GLboolean transpose, Float32Array value, 431 void uniformMatrix3x2fv(WebGLUniformLocation? location, GLboolean transpose, [AllowShared] Float32Array value,
432 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 432 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
433 void uniformMatrix3x2fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value, 433 void uniformMatrix3x2fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value,
434 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 434 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
435 void uniformMatrix2x4fv(WebGLUniformLocation? location, GLboolean transpose, Float32Array value, 435 void uniformMatrix2x4fv(WebGLUniformLocation? location, GLboolean transpose, [AllowShared] Float32Array value,
436 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 436 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
437 void uniformMatrix2x4fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value, 437 void uniformMatrix2x4fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value,
438 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 438 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
439 void uniformMatrix4x2fv(WebGLUniformLocation? location, GLboolean transpose, Float32Array value, 439 void uniformMatrix4x2fv(WebGLUniformLocation? location, GLboolean transpose, [AllowShared] Float32Array value,
440 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 440 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
441 void uniformMatrix4x2fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value, 441 void uniformMatrix4x2fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value,
442 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 442 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
443 void uniformMatrix3x4fv(WebGLUniformLocation? location, GLboolean transpose, Float32Array value, 443 void uniformMatrix3x4fv(WebGLUniformLocation? location, GLboolean transpose, [AllowShared] Float32Array value,
444 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 444 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
445 void uniformMatrix3x4fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value, 445 void uniformMatrix3x4fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value,
446 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 446 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
447 void uniformMatrix4x3fv(WebGLUniformLocation? location, GLboolean transpose, Float32Array value, 447 void uniformMatrix4x3fv(WebGLUniformLocation? location, GLboolean transpose, [AllowShared] Float32Array value,
448 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 448 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
449 void uniformMatrix4x3fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value, 449 void uniformMatrix4x3fv(WebGLUniformLocation? location, GLboolean transpose, sequence<GLfloat> value,
450 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0); 450 optional GLuint srcOffset = 0, optional GLuint srcLe ngth = 0);
451 451
452 void vertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w); 452 void vertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w);
453 void vertexAttribI4iv(GLuint index, Int32Array v); 453 void vertexAttribI4iv(GLuint index, [AllowShared] Int32Array v);
454 void vertexAttribI4iv(GLuint index, sequence<GLint> v); 454 void vertexAttribI4iv(GLuint index, sequence<GLint> v);
455 void vertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); 455 void vertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
456 void vertexAttribI4uiv(GLuint index, Uint32Array v); 456 void vertexAttribI4uiv(GLuint index, [AllowShared] Uint32Array v);
457 void vertexAttribI4uiv(GLuint index, sequence<GLuint> v); 457 void vertexAttribI4uiv(GLuint index, sequence<GLuint> v);
458 void vertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei str ide, GLintptr offset); 458 void vertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei str ide, GLintptr offset);
459 459
460 /* Writing to the drawing buffer */ 460 /* Writing to the drawing buffer */
461 void vertexAttribDivisor(GLuint index, GLuint divisor); 461 void vertexAttribDivisor(GLuint index, GLuint divisor);
462 void drawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei in stanceCount); 462 void drawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei in stanceCount);
463 void drawElementsInstanced(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei instanceCount); 463 void drawElementsInstanced(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei instanceCount);
464 void drawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLintptr offset); 464 void drawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLintptr offset);
465 465
466 /* Multiple Render Targets */ 466 /* Multiple Render Targets */
467 void drawBuffers(sequence<GLenum> buffers); 467 void drawBuffers(sequence<GLenum> buffers);
468 void clearBufferiv(GLenum buffer, GLint drawbuffer, Int32Array value, option al GLuint srcOffset = 0); 468 void clearBufferiv(GLenum buffer, GLint drawbuffer, [AllowShared] Int32Array value, optional GLuint srcOffset = 0);
469 void clearBufferiv(GLenum buffer, GLint drawbuffer, sequence<GLint> value, o ptional GLuint srcOffset = 0); 469 void clearBufferiv(GLenum buffer, GLint drawbuffer, sequence<GLint> value, o ptional GLuint srcOffset = 0);
470 void clearBufferuiv(GLenum buffer, GLint drawbuffer, Uint32Array value, opti onal GLuint srcOffset = 0); 470 void clearBufferuiv(GLenum buffer, GLint drawbuffer, [AllowShared] Uint32Arr ay value, optional GLuint srcOffset = 0);
471 void clearBufferuiv(GLenum buffer, GLint drawbuffer, sequence<GLuint> value, optional GLuint srcOffset = 0); 471 void clearBufferuiv(GLenum buffer, GLint drawbuffer, sequence<GLuint> value, optional GLuint srcOffset = 0);
472 void clearBufferfv(GLenum buffer, GLint drawbuffer, Float32Array value, opti onal GLuint srcOffset = 0); 472 void clearBufferfv(GLenum buffer, GLint drawbuffer, [AllowShared] Float32Arr ay value, optional GLuint srcOffset = 0);
473 void clearBufferfv(GLenum buffer, GLint drawbuffer, sequence<GLfloat> value, optional GLuint srcOffset = 0); 473 void clearBufferfv(GLenum buffer, GLint drawbuffer, sequence<GLfloat> value, optional GLuint srcOffset = 0);
474 void clearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint ste ncil); 474 void clearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint ste ncil);
475 475
476 /* Query Objects */ 476 /* Query Objects */
477 WebGLQuery? createQuery(); 477 WebGLQuery? createQuery();
478 void deleteQuery(WebGLQuery? query); 478 void deleteQuery(WebGLQuery? query);
479 GLboolean isQuery(WebGLQuery? query); 479 GLboolean isQuery(WebGLQuery? query);
480 void beginQuery(GLenum target, WebGLQuery query); 480 void beginQuery(GLenum target, WebGLQuery query);
481 void endQuery(GLenum target); 481 void endQuery(GLenum target);
482 [CallWith=ScriptState] any getQuery(GLenum target, GLenum pname); 482 [CallWith=ScriptState] any getQuery(GLenum target, GLenum pname);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 DOMString? getActiveUniformBlockName(WebGLProgram program, GLuint uniformBlo ckIndex); 523 DOMString? getActiveUniformBlockName(WebGLProgram program, GLuint uniformBlo ckIndex);
524 void uniformBlockBinding(WebGLProgram program, GLuint uniformBlockIndex, GLu int uniformBlockBinding); 524 void uniformBlockBinding(WebGLProgram program, GLuint uniformBlockIndex, GLu int uniformBlockBinding);
525 525
526 /* Vertex Array Objects */ 526 /* Vertex Array Objects */
527 WebGLVertexArrayObject? createVertexArray(); 527 WebGLVertexArrayObject? createVertexArray();
528 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); 528 void deleteVertexArray(WebGLVertexArrayObject? vertexArray);
529 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); 529 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
530 void bindVertexArray(WebGLVertexArrayObject? vertexArray); 530 void bindVertexArray(WebGLVertexArrayObject? vertexArray);
531 531
532 /* Reading */ 532 /* Reading */
533 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, ArrayBufferView dstData, GLintptr offset); 533 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, [AllowShared] ArrayBufferView dstData, GLintptr offset);
534 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset); 534 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset);
535 }; 535 };
536 WebGL2RenderingContextBase implements WebGLRenderingContextBase; 536 WebGL2RenderingContextBase implements WebGLRenderingContextBase;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698