| 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 unsigned long GLenum; | 5 typedef unsigned long GLenum; |
| 6 typedef boolean GLboolean; | 6 typedef boolean GLboolean; |
| 7 typedef unsigned long GLbitfield; | 7 typedef unsigned long GLbitfield; |
| 8 typedef byte GLbyte; // 'byte' should be a signed 8 bit type. | 8 typedef byte GLbyte; // 'byte' should be a signed 8 bit type. |
| 9 typedef short GLshort; | 9 typedef short GLshort; |
| 10 typedef long GLint; | 10 typedef long GLint; |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 void resumeTransformFeedback(); | 424 void resumeTransformFeedback(); |
| 425 | 425 |
| 426 /* Uniform Buffer Objects and Transform Feedback Buffers */ | 426 /* Uniform Buffer Objects and Transform Feedback Buffers */ |
| 427 void bindBufferBase(GLenum target, GLuint index, WebGLBuffer? buffer); | 427 void bindBufferBase(GLenum target, GLuint index, WebGLBuffer? buffer); |
| 428 void bindBufferRange(GLenum target, GLuint index, WebGLBuffer? buffer, GLint
ptr offset, GLsizeiptr size); | 428 void bindBufferRange(GLenum target, GLuint index, WebGLBuffer? buffer, GLint
ptr offset, GLsizeiptr size); |
| 429 [CallWith=ScriptState] any getIndexedParameter(GLenum target, GLuint index); | 429 [CallWith=ScriptState] any getIndexedParameter(GLenum target, GLuint index); |
| 430 sequence<GLuint>? getUniformIndices(WebGLProgram? program, sequence<DOMStrin
g> uniformNames); | 430 sequence<GLuint>? getUniformIndices(WebGLProgram? program, sequence<DOMStrin
g> uniformNames); |
| 431 [CallWith=ScriptState] any getActiveUniforms(WebGLProgram? program, sequence
<GLuint> uniformIndices, GLenum pname); | 431 [CallWith=ScriptState] any getActiveUniforms(WebGLProgram? program, sequence
<GLuint> uniformIndices, GLenum pname); |
| 432 GLuint getUniformBlockIndex(WebGLProgram? program, DOMString uniformBlockNam
e); | 432 GLuint getUniformBlockIndex(WebGLProgram? program, DOMString uniformBlockNam
e); |
| 433 [CallWith=ScriptState] any getActiveUniformBlockParameter(WebGLProgram? prog
ram, GLuint uniformBlockIndex, GLenum pname); | 433 [CallWith=ScriptState] any getActiveUniformBlockParameter(WebGLProgram? prog
ram, GLuint uniformBlockIndex, GLenum pname); |
| 434 DOMString getActiveUniformBlockName(WebGLProgram? program, GLuint uniformBlo
ckIndex); | 434 DOMString? getActiveUniformBlockName(WebGLProgram? program, GLuint uniformBl
ockIndex); |
| 435 void uniformBlockBinding(WebGLProgram? program, GLuint uniformBlockIndex, GL
uint uniformBlockBinding); | 435 void uniformBlockBinding(WebGLProgram? program, GLuint uniformBlockIndex, GL
uint uniformBlockBinding); |
| 436 | 436 |
| 437 /* Vertex Array Objects */ | 437 /* Vertex Array Objects */ |
| 438 WebGLVertexArrayObject createVertexArray(); | 438 WebGLVertexArrayObject createVertexArray(); |
| 439 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex
Array); | 439 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex
Array); |
| 440 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); | 440 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); |
| 441 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr
ray); | 441 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr
ray); |
| 442 | 442 |
| 443 /* Reading */ | 443 /* Reading */ |
| 444 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); | 444 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); |
| 445 }; | 445 }; |
| 446 WebGL2RenderingContextBase implements WebGLRenderingContextBase; | 446 WebGL2RenderingContextBase implements WebGLRenderingContextBase; |
| OLD | NEW |