| OLD | NEW |
| 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 typedef long long GLint64; | 5 typedef long long GLint64; |
| 6 typedef unsigned long long GLuint64; | 6 typedef unsigned long long GLuint64; |
| 7 | 7 |
| 8 [ | 8 [ |
| 9 NoInterfaceObject, | 9 NoInterfaceObject, |
| 10 ] interface WebGL2RenderingContextBase { | 10 ] interface WebGL2RenderingContextBase { |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 ArrayBufferView data, GLuint srcOffset, | 342 ArrayBufferView data, GLuint srcOffset, |
| 343 optional GLuint srcLengthOverride = 0); | 343 optional GLuint srcLengthOverride = 0); |
| 344 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin
t yoffset, | 344 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin
t yoffset, |
| 345 GLsizei width, GLsizei height, GLenum format, | 345 GLsizei width, GLsizei height, GLenum format, |
| 346 ArrayBufferView data, GLuint srcOffset, | 346 ArrayBufferView data, GLuint srcOffset, |
| 347 optional GLuint srcLengthOverride = 0); | 347 optional GLuint srcLengthOverride = 0); |
| 348 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); | 348 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); |
| 349 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); | 349 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); |
| 350 | 350 |
| 351 /* Programs and shaders */ | 351 /* Programs and shaders */ |
| 352 GLint getFragDataLocation(WebGLProgram? program, DOMString name); | 352 GLint getFragDataLocation(WebGLProgram program, DOMString name); |
| 353 | 353 |
| 354 /* Uniforms and attributes */ | 354 /* Uniforms and attributes */ |
| 355 void uniform1ui(WebGLUniformLocation? location, GLuint v0); | 355 void uniform1ui(WebGLUniformLocation? location, GLuint v0); |
| 356 void uniform2ui(WebGLUniformLocation? location, GLuint v0, GLuint v1); | 356 void uniform2ui(WebGLUniformLocation? location, GLuint v0, GLuint v1); |
| 357 void uniform3ui(WebGLUniformLocation? location, GLuint v0, GLuint v1, GLuint
v2); | 357 void uniform3ui(WebGLUniformLocation? location, GLuint v0, GLuint v1, GLuint
v2); |
| 358 void uniform4ui(WebGLUniformLocation? location, GLuint v0, GLuint v1, GLuint
v2, GLuint v3); | 358 void uniform4ui(WebGLUniformLocation? location, GLuint v0, GLuint v1, GLuint
v2, GLuint v3); |
| 359 void uniform1uiv(WebGLUniformLocation? location, [FlexibleArrayBufferView] U
int32Array v); | 359 void uniform1uiv(WebGLUniformLocation? location, [FlexibleArrayBufferView] U
int32Array v); |
| 360 void uniform1uiv(WebGLUniformLocation? location, sequence<GLuint> v); | 360 void uniform1uiv(WebGLUniformLocation? location, sequence<GLuint> v); |
| 361 void uniform2uiv(WebGLUniformLocation? location, [FlexibleArrayBufferView] U
int32Array v); | 361 void uniform2uiv(WebGLUniformLocation? location, [FlexibleArrayBufferView] U
int32Array v); |
| 362 void uniform2uiv(WebGLUniformLocation? location, sequence<GLuint> v); | 362 void uniform2uiv(WebGLUniformLocation? location, sequence<GLuint> v); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 void clearBufferuiv(GLenum buffer, GLint drawbuffer, Uint32Array value); | 398 void clearBufferuiv(GLenum buffer, GLint drawbuffer, Uint32Array value); |
| 399 void clearBufferuiv(GLenum buffer, GLint drawbuffer, sequence<GLuint> value)
; | 399 void clearBufferuiv(GLenum buffer, GLint drawbuffer, sequence<GLuint> value)
; |
| 400 void clearBufferfv(GLenum buffer, GLint drawbuffer, Float32Array value); | 400 void clearBufferfv(GLenum buffer, GLint drawbuffer, Float32Array value); |
| 401 void clearBufferfv(GLenum buffer, GLint drawbuffer, sequence<GLfloat> value)
; | 401 void clearBufferfv(GLenum buffer, GLint drawbuffer, sequence<GLfloat> value)
; |
| 402 void clearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint ste
ncil); | 402 void clearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint ste
ncil); |
| 403 | 403 |
| 404 /* Query Objects */ | 404 /* Query Objects */ |
| 405 WebGLQuery createQuery(); | 405 WebGLQuery createQuery(); |
| 406 void deleteQuery(WebGLQuery? query); | 406 void deleteQuery(WebGLQuery? query); |
| 407 GLboolean isQuery(WebGLQuery? query); | 407 GLboolean isQuery(WebGLQuery? query); |
| 408 void beginQuery(GLenum target, WebGLQuery? query); | 408 void beginQuery(GLenum target, WebGLQuery query); |
| 409 void endQuery(GLenum target); | 409 void endQuery(GLenum target); |
| 410 [CallWith=ScriptState] any getQuery(GLenum target, GLenum pname); | 410 [CallWith=ScriptState] any getQuery(GLenum target, GLenum pname); |
| 411 [CallWith=ScriptState] any getQueryParameter(WebGLQuery? query, GLenum pname
); | 411 [CallWith=ScriptState] any getQueryParameter(WebGLQuery query, GLenum pname)
; |
| 412 | 412 |
| 413 /* Sampler Objects */ | 413 /* Sampler Objects */ |
| 414 WebGLSampler createSampler(); | 414 WebGLSampler createSampler(); |
| 415 void deleteSampler(WebGLSampler? sampler); | 415 void deleteSampler(WebGLSampler? sampler); |
| 416 GLboolean isSampler(WebGLSampler? sampler); | 416 GLboolean isSampler(WebGLSampler? sampler); |
| 417 void bindSampler(GLuint unit, WebGLSampler? sampler); | 417 void bindSampler(GLuint unit, WebGLSampler? sampler); |
| 418 void samplerParameteri(WebGLSampler? sampler, GLenum pname, GLint param); | 418 void samplerParameteri(WebGLSampler sampler, GLenum pname, GLint param); |
| 419 void samplerParameterf(WebGLSampler? sampler, GLenum pname, GLfloat param); | 419 void samplerParameterf(WebGLSampler sampler, GLenum pname, GLfloat param); |
| 420 [CallWith=ScriptState] any getSamplerParameter(WebGLSampler? sampler, GLenum
pname); | 420 [CallWith=ScriptState] any getSamplerParameter(WebGLSampler sampler, GLenum
pname); |
| 421 | 421 |
| 422 /* Sync objects */ | 422 /* Sync objects */ |
| 423 WebGLSync fenceSync(GLenum condition, GLbitfield flags); | 423 WebGLSync fenceSync(GLenum condition, GLbitfield flags); |
| 424 GLboolean isSync(WebGLSync? sync); | 424 GLboolean isSync(WebGLSync? sync); |
| 425 void deleteSync(WebGLSync? sync); | 425 void deleteSync(WebGLSync? sync); |
| 426 GLenum clientWaitSync(WebGLSync? sync, GLbitfield flags, GLuint64 timeout); | 426 GLenum clientWaitSync(WebGLSync sync, GLbitfield flags, GLuint64 timeout); |
| 427 void waitSync(WebGLSync? sync, GLbitfield flags, GLint64 timeout); | 427 void waitSync(WebGLSync sync, GLbitfield flags, GLint64 timeout); |
| 428 | 428 |
| 429 [CallWith=ScriptState] any getSyncParameter(WebGLSync? sync, GLenum pname); | 429 [CallWith=ScriptState] any getSyncParameter(WebGLSync sync, GLenum pname); |
| 430 | 430 |
| 431 /* Transform Feedback */ | 431 /* Transform Feedback */ |
| 432 WebGLTransformFeedback createTransformFeedback(); | 432 WebGLTransformFeedback createTransformFeedback(); |
| 433 void deleteTransformFeedback(WebGLTransformFeedback? feedback); | 433 void deleteTransformFeedback(WebGLTransformFeedback? feedback); |
| 434 GLboolean isTransformFeedback(WebGLTransformFeedback? feedback); | 434 GLboolean isTransformFeedback(WebGLTransformFeedback? feedback); |
| 435 void bindTransformFeedback(GLenum target, WebGLTransformFeedback? feedback); | 435 void bindTransformFeedback(GLenum target, WebGLTransformFeedback? feedback); |
| 436 void beginTransformFeedback(GLenum primitiveMode); | 436 void beginTransformFeedback(GLenum primitiveMode); |
| 437 void endTransformFeedback(); | 437 void endTransformFeedback(); |
| 438 void transformFeedbackVaryings(WebGLProgram? program, sequence<DOMString> va
ryings, GLenum bufferMode); | 438 void transformFeedbackVaryings(WebGLProgram program, sequence<DOMString> var
yings, GLenum bufferMode); |
| 439 WebGLActiveInfo getTransformFeedbackVarying(WebGLProgram? program, GLuint in
dex); | 439 WebGLActiveInfo getTransformFeedbackVarying(WebGLProgram program, GLuint ind
ex); |
| 440 void pauseTransformFeedback(); | 440 void pauseTransformFeedback(); |
| 441 void resumeTransformFeedback(); | 441 void resumeTransformFeedback(); |
| 442 | 442 |
| 443 /* Uniform Buffer Objects and Transform Feedback Buffers */ | 443 /* Uniform Buffer Objects and Transform Feedback Buffers */ |
| 444 void bindBufferBase(GLenum target, GLuint index, WebGLBuffer? buffer); | 444 void bindBufferBase(GLenum target, GLuint index, WebGLBuffer? buffer); |
| 445 void bindBufferRange(GLenum target, GLuint index, WebGLBuffer? buffer, GLint
ptr offset, GLsizeiptr size); | 445 void bindBufferRange(GLenum target, GLuint index, WebGLBuffer? buffer, GLint
ptr offset, GLsizeiptr size); |
| 446 [CallWith=ScriptState] any getIndexedParameter(GLenum target, GLuint index); | 446 [CallWith=ScriptState] any getIndexedParameter(GLenum target, GLuint index); |
| 447 sequence<GLuint>? getUniformIndices(WebGLProgram? program, sequence<DOMStrin
g> uniformNames); | 447 sequence<GLuint>? getUniformIndices(WebGLProgram program, sequence<DOMString
> uniformNames); |
| 448 [CallWith=ScriptState] any getActiveUniforms(WebGLProgram? program, sequence
<GLuint> uniformIndices, GLenum pname); | 448 [CallWith=ScriptState] any getActiveUniforms(WebGLProgram program, sequence<
GLuint> uniformIndices, GLenum pname); |
| 449 GLuint getUniformBlockIndex(WebGLProgram? program, DOMString uniformBlockNam
e); | 449 GLuint getUniformBlockIndex(WebGLProgram program, DOMString uniformBlockName
); |
| 450 [CallWith=ScriptState] any getActiveUniformBlockParameter(WebGLProgram? prog
ram, GLuint uniformBlockIndex, GLenum pname); | 450 [CallWith=ScriptState] any getActiveUniformBlockParameter(WebGLProgram progr
am, GLuint uniformBlockIndex, GLenum pname); |
| 451 DOMString? getActiveUniformBlockName(WebGLProgram? program, GLuint uniformBl
ockIndex); | 451 DOMString? getActiveUniformBlockName(WebGLProgram program, GLuint uniformBlo
ckIndex); |
| 452 void uniformBlockBinding(WebGLProgram? program, GLuint uniformBlockIndex, GL
uint uniformBlockBinding); | 452 void uniformBlockBinding(WebGLProgram program, GLuint uniformBlockIndex, GLu
int uniformBlockBinding); |
| 453 | 453 |
| 454 /* Vertex Array Objects */ | 454 /* Vertex Array Objects */ |
| 455 WebGLVertexArrayObject createVertexArray(); | 455 WebGLVertexArrayObject createVertexArray(); |
| 456 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); | 456 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); |
| 457 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); | 457 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); |
| 458 void bindVertexArray(WebGLVertexArrayObject? vertexArray); | 458 void bindVertexArray(WebGLVertexArrayObject? vertexArray); |
| 459 | 459 |
| 460 /* Reading */ | 460 /* Reading */ |
| 461 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, ArrayBufferView dstData, GLintptr offset); | 461 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, ArrayBufferView dstData, GLintptr offset); |
| 462 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); | 462 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); |
| 463 }; | 463 }; |
| 464 WebGL2RenderingContextBase implements WebGLRenderingContextBase; | 464 WebGL2RenderingContextBase implements WebGLRenderingContextBase; |
| OLD | NEW |