| 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; | |
| 6 typedef boolean GLboolean; | |
| 7 typedef unsigned long GLbitfield; | |
| 8 typedef byte GLbyte; // 'byte' should be a signed 8 bit type. | |
| 9 typedef short GLshort; | |
| 10 typedef long GLint; | |
| 11 typedef long GLsizei; | |
| 12 typedef long long GLintptr; | |
| 13 typedef long long GLsizeiptr; | |
| 14 typedef octet GLubyte; // 'octet' should be an unsigned 8 bit type. | |
| 15 typedef unsigned short GLushort; | |
| 16 typedef unsigned long GLuint; | |
| 17 typedef unrestricted float GLfloat; | |
| 18 typedef unrestricted float GLclampf; | |
| 19 typedef long long GLint64; | 5 typedef long long GLint64; |
| 20 | 6 |
| 21 [ | 7 [ |
| 22 RuntimeEnabled=UnsafeES3APIs, | 8 RuntimeEnabled=UnsafeES3APIs, |
| 23 NoInterfaceObject, | 9 NoInterfaceObject, |
| 24 ] interface WebGL2RenderingContextBase { | 10 ] interface WebGL2RenderingContextBase { |
| 25 const GLenum READ_BUFFER = 0x0C02; | 11 const GLenum READ_BUFFER = 0x0C02; |
| 26 const GLenum UNPACK_ROW_LENGTH = 0x0CF2; | 12 const GLenum UNPACK_ROW_LENGTH = 0x0CF2; |
| 27 const GLenum UNPACK_SKIP_ROWS = 0x0CF3; | 13 const GLenum UNPACK_SKIP_ROWS = 0x0CF3; |
| 28 const GLenum UNPACK_SKIP_PIXELS = 0x0CF4; | 14 const GLenum UNPACK_SKIP_PIXELS = 0x0CF4; |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 /* Vertex Array Objects */ | 426 /* Vertex Array Objects */ |
| 441 WebGLVertexArrayObject createVertexArray(); | 427 WebGLVertexArrayObject createVertexArray(); |
| 442 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex
Array); | 428 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex
Array); |
| 443 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); | 429 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); |
| 444 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr
ray); | 430 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr
ray); |
| 445 | 431 |
| 446 /* Reading */ | 432 /* Reading */ |
| 447 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); | 433 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); |
| 448 }; | 434 }; |
| 449 WebGL2RenderingContextBase implements WebGLRenderingContextBase; | 435 WebGL2RenderingContextBase implements WebGLRenderingContextBase; |
| OLD | NEW |