| 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; |
| 11 typedef long GLsizei; | 11 typedef long GLsizei; |
| 12 typedef long long GLintptr; | 12 typedef long long GLintptr; |
| 13 typedef long long GLsizeiptr; | 13 typedef long long GLsizeiptr; |
| 14 typedef octet GLubyte; // 'octet' should be an unsigned 8 bit type. | 14 typedef octet GLubyte; // 'octet' should be an unsigned 8 bit type. |
| 15 typedef unsigned short GLushort; | 15 typedef unsigned short GLushort; |
| 16 typedef unsigned long GLuint; | 16 typedef unsigned long GLuint; |
| 17 typedef unrestricted float GLfloat; | 17 typedef unrestricted float GLfloat; |
| 18 typedef unrestricted float GLclampf; | 18 typedef unrestricted float GLclampf; |
| 19 typedef long long GLint64; | 19 typedef long long GLint64; |
| 20 | 20 |
| 21 [ | 21 [ |
| 22 RuntimeEnabled=UnsafeES3APIs, | 22 RuntimeEnabled=UnsafeES3APIs, |
| 23 NoInterfaceObject, | 23 NoInterfaceObject, |
| 24 WillBeGarbageCollected, | 24 GarbageCollected, |
| 25 ] interface WebGL2RenderingContextBase { | 25 ] interface WebGL2RenderingContextBase { |
| 26 const GLenum READ_BUFFER = 0x0C02; | 26 const GLenum READ_BUFFER = 0x0C02; |
| 27 const GLenum UNPACK_ROW_LENGTH = 0x0CF2; | 27 const GLenum UNPACK_ROW_LENGTH = 0x0CF2; |
| 28 const GLenum UNPACK_SKIP_ROWS = 0x0CF3; | 28 const GLenum UNPACK_SKIP_ROWS = 0x0CF3; |
| 29 const GLenum UNPACK_SKIP_PIXELS = 0x0CF4; | 29 const GLenum UNPACK_SKIP_PIXELS = 0x0CF4; |
| 30 const GLenum PACK_ROW_LENGTH = 0x0D02; | 30 const GLenum PACK_ROW_LENGTH = 0x0D02; |
| 31 const GLenum PACK_SKIP_ROWS = 0x0D03; | 31 const GLenum PACK_SKIP_ROWS = 0x0D03; |
| 32 const GLenum PACK_SKIP_PIXELS = 0x0D04; | 32 const GLenum PACK_SKIP_PIXELS = 0x0D04; |
| 33 const GLenum COLOR = 0x1800; | 33 const GLenum COLOR = 0x1800; |
| 34 const GLenum DEPTH = 0x1801; | 34 const GLenum DEPTH = 0x1801; |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 /* Vertex Array Objects */ | 441 /* Vertex Array Objects */ |
| 442 WebGLVertexArrayObject createVertexArray(); | 442 WebGLVertexArrayObject createVertexArray(); |
| 443 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex
Array); | 443 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex
Array); |
| 444 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); | 444 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); |
| 445 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr
ray); | 445 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr
ray); |
| 446 | 446 |
| 447 /* Reading */ | 447 /* Reading */ |
| 448 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); | 448 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); |
| 449 }; | 449 }; |
| 450 WebGL2RenderingContextBase implements WebGLRenderingContextBase; | 450 WebGL2RenderingContextBase implements WebGLRenderingContextBase; |
| OLD | NEW |