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

Side by Side Diff: core/html/canvas/WebGLRenderingContext.idl

Issue 22498002: Roll IDL to multivm@1329 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « core/html/canvas/WebGLRenderbuffer.idl ('k') | core/html/canvas/WebGLShader.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * 12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 typedef unsigned long GLenum; 26 typedef unsigned long GLenum;
27 typedef boolean GLboolean; 27 typedef boolean GLboolean;
28 typedef unsigned long GLbitfield; 28 typedef unsigned long GLbitfield;
29 typedef byte GLbyte; /* 'byte' should be a signed 8 bit type. */ 29 typedef byte GLbyte; /* 'byte' should be a signed 8 bit type. */
30 typedef short GLshort; 30 typedef short GLshort;
31 typedef long GLint; 31 typedef long GLint;
32 typedef long GLsizei; 32 typedef long GLsizei;
33 typedef long long GLintptr; 33 typedef long long GLintptr;
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 [StrictTypeChecking] void clearColor(GLclampf red, GLclampf green, G Lclampf blue, GLclampf alpha); 483 [StrictTypeChecking] void clearColor(GLclampf red, GLclampf green, G Lclampf blue, GLclampf alpha);
484 [StrictTypeChecking] void clearDepth(GLclampf depth); 484 [StrictTypeChecking] void clearDepth(GLclampf depth);
485 [StrictTypeChecking] void clearStencil(GLint s); 485 [StrictTypeChecking] void clearStencil(GLint s);
486 [StrictTypeChecking] void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); 486 [StrictTypeChecking] void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
487 [StrictTypeChecking, RaisesException] void compileShader(WebGLShader shader); 487 [StrictTypeChecking, RaisesException] void compileShader(WebGLShader shader);
488 488
489 [StrictTypeChecking] void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, 489 [StrictTypeChecking] void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
490 GLsizei width, GLsize i height, GLint border, ArrayBufferView data); 490 GLsizei width, GLsize i height, GLint border, ArrayBufferView data);
491 [StrictTypeChecking] void compressedTexSubImage2D(GLenum target, GLi nt level, GLint xoffset, GLint yoffset, 491 [StrictTypeChecking] void compressedTexSubImage2D(GLenum target, GLi nt level, GLint xoffset, GLint yoffset,
492 GLsizei width, GLs izei height, GLenum format, ArrayBufferView data); 492 GLsizei width, GLs izei height, GLenum format, ArrayBufferView data);
493 493
494 [StrictTypeChecking] void copyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint b order); 494 [StrictTypeChecking] void copyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint b order);
495 [StrictTypeChecking] void copyTexSubImage2D(GLenum target, GLint lev el, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei heigh t); 495 [StrictTypeChecking] void copyTexSubImage2D(GLenum target, GLint lev el, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei heigh t);
496 496
497 [StrictTypeChecking] WebGLBuffer createBuffer(); 497 [StrictTypeChecking] WebGLBuffer createBuffer();
498 [StrictTypeChecking] WebGLFramebuffer createFramebuffer(); 498 [StrictTypeChecking] WebGLFramebuffer createFramebuffer();
499 [StrictTypeChecking] WebGLProgram createProgram(); 499 [StrictTypeChecking] WebGLProgram createProgram();
500 [StrictTypeChecking] WebGLRenderbuffer createRenderbuffer(); 500 [StrictTypeChecking] WebGLRenderbuffer createRenderbuffer();
501 [StrictTypeChecking, RaisesException] WebGLShader createShader(GLenum type); 501 [StrictTypeChecking, RaisesException] WebGLShader createShader(GLenum type);
502 [StrictTypeChecking] WebGLTexture createTexture(); 502 [StrictTypeChecking] WebGLTexture createTexture();
503 503
(...skipping 16 matching lines...) Expand all
520 [StrictTypeChecking, RaisesException] void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset); 520 [StrictTypeChecking, RaisesException] void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset);
521 521
522 [StrictTypeChecking] void enable(GLenum cap); 522 [StrictTypeChecking] void enable(GLenum cap);
523 [StrictTypeChecking, RaisesException] void enableVertexAttribArray(G Luint index); 523 [StrictTypeChecking, RaisesException] void enableVertexAttribArray(G Luint index);
524 [StrictTypeChecking] void finish(); 524 [StrictTypeChecking] void finish();
525 [StrictTypeChecking] void flush(); 525 [StrictTypeChecking] void flush();
526 [StrictTypeChecking, RaisesException] void framebufferRenderbuffer(G Lenum target, GLenum attachment, GLenum renderbuffertarget, WebGLRenderbuffer re nderbuffer); 526 [StrictTypeChecking, RaisesException] void framebufferRenderbuffer(G Lenum target, GLenum attachment, GLenum renderbuffertarget, WebGLRenderbuffer re nderbuffer);
527 [StrictTypeChecking, RaisesException] void framebufferTexture2D(GLen um target, GLenum attachment, GLenum textarget, WebGLTexture texture, GLint leve l); 527 [StrictTypeChecking, RaisesException] void framebufferTexture2D(GLen um target, GLenum attachment, GLenum textarget, WebGLTexture texture, GLint leve l);
528 [StrictTypeChecking] void frontFace(GLenum mode); 528 [StrictTypeChecking] void frontFace(GLenum mode);
529 [StrictTypeChecking] void generateMipmap(GLenum target); 529 [StrictTypeChecking] void generateMipmap(GLenum target);
530 530
531 [StrictTypeChecking, RaisesException] WebGLActiveInfo getActiveAttrib(WebGLP rogram program, GLuint index); 531 [StrictTypeChecking, RaisesException] WebGLActiveInfo getActiveAttrib(WebGLP rogram program, GLuint index);
532 [StrictTypeChecking, RaisesException] WebGLActiveInfo getActiveUniform(WebGL Program program, GLuint index); 532 [StrictTypeChecking, RaisesException] WebGLActiveInfo getActiveUniform(WebGL Program program, GLuint index);
533 533
534 [StrictTypeChecking, Custom, RaisesException] void getAttachedShaders(WebGLP rogram program); 534 [StrictTypeChecking, Custom, RaisesException] void getAttachedShaders(WebGLP rogram program);
535 535
536 [StrictTypeChecking] GLint getAttribLocation(WebGLProgram program, DO MString name); 536 [StrictTypeChecking] GLint getAttribLocation(WebGLProgram program, DO MString name);
537 537
538 [StrictTypeChecking, Custom] any getBufferParameter(GLenum target, GLenum pn ame); 538 [StrictTypeChecking, Custom] any getBufferParameter(GLenum target, GLenum pn ame);
539 539
540 [StrictTypeChecking] WebGLContextAttributes getContextAttributes(); 540 [StrictTypeChecking] WebGLContextAttributes getContextAttributes();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 [StrictTypeChecking] GLboolean isProgram(WebGLProgram program); 577 [StrictTypeChecking] GLboolean isProgram(WebGLProgram program);
578 [StrictTypeChecking] GLboolean isRenderbuffer(WebGLRenderbuffer renderbuf fer); 578 [StrictTypeChecking] GLboolean isRenderbuffer(WebGLRenderbuffer renderbuf fer);
579 [StrictTypeChecking] GLboolean isShader(WebGLShader shader); 579 [StrictTypeChecking] GLboolean isShader(WebGLShader shader);
580 [StrictTypeChecking] GLboolean isTexture(WebGLTexture texture); 580 [StrictTypeChecking] GLboolean isTexture(WebGLTexture texture);
581 [StrictTypeChecking] void lineWidth(GLfloat width); 581 [StrictTypeChecking] void lineWidth(GLfloat width);
582 [StrictTypeChecking, RaisesException] void linkProgram(WebGLProgram program); 582 [StrictTypeChecking, RaisesException] void linkProgram(WebGLProgram program);
583 [StrictTypeChecking] void pixelStorei(GLenum pname, GLint param); 583 [StrictTypeChecking] void pixelStorei(GLenum pname, GLint param);
584 [StrictTypeChecking] void polygonOffset(GLfloat factor, GLfloat unit s); 584 [StrictTypeChecking] void polygonOffset(GLfloat factor, GLfloat unit s);
585 585
586 [StrictTypeChecking, RaisesException] void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView p ixels); 586 [StrictTypeChecking, RaisesException] void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView p ixels);
587 587
588 [StrictTypeChecking] void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); 588 [StrictTypeChecking] void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
589 [StrictTypeChecking] void sampleCoverage(GLclampf value, GLboolean i nvert); 589 [StrictTypeChecking] void sampleCoverage(GLclampf value, GLboolean i nvert);
590 [StrictTypeChecking] void scissor(GLint x, GLint y, GLsizei width, G Lsizei height); 590 [StrictTypeChecking] void scissor(GLint x, GLint y, GLsizei width, G Lsizei height);
591 [StrictTypeChecking, RaisesException] void shaderSource(WebGLShader shader, DOMString string); 591 [StrictTypeChecking, RaisesException] void shaderSource(WebGLShader shader, DOMString string);
592 [StrictTypeChecking] void stencilFunc(GLenum func, GLint ref, GLuint mask); 592 [StrictTypeChecking] void stencilFunc(GLenum func, GLint ref, GLuint mask);
593 [StrictTypeChecking] void stencilFuncSeparate(GLenum face, GLenum fu nc, GLint ref, GLuint mask); 593 [StrictTypeChecking] void stencilFuncSeparate(GLenum face, GLenum fu nc, GLint ref, GLuint mask);
594 [StrictTypeChecking] void stencilMask(GLuint mask); 594 [StrictTypeChecking] void stencilMask(GLuint mask);
595 [StrictTypeChecking] void stencilMaskSeparate(GLenum face, GLuint ma sk); 595 [StrictTypeChecking] void stencilMaskSeparate(GLenum face, GLuint ma sk);
596 [StrictTypeChecking] void stencilOp(GLenum fail, GLenum zfail, GLenu m zpass); 596 [StrictTypeChecking] void stencilOp(GLenum fail, GLenum zfail, GLenu m zpass);
597 [StrictTypeChecking] void stencilOpSeparate(GLenum face, GLenum fail , GLenum zfail, GLenum zpass); 597 [StrictTypeChecking] void stencilOpSeparate(GLenum face, GLenum fail , GLenum zfail, GLenum zpass);
598 598
599 [StrictTypeChecking] void texParameterf(GLenum target, GLenum pname, GLfloat param); 599 [StrictTypeChecking] void texParameterf(GLenum target, GLenum pname, GLfloat param);
600 [StrictTypeChecking] void texParameteri(GLenum target, GLenum pname, GLint param); 600 [StrictTypeChecking] void texParameteri(GLenum target, GLenum pname, GLint param);
601 601
602 // Supported forms: 602 // Supported forms:
603 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, 603 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height,
604 GLint border, GLenum format, GL enum type, ArrayBufferView? pixels); 604 GLint border, GLenum format, GL enum type, ArrayBufferView? pixels);
605 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target, GLint level, GLenum internalformat, 605 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target, GLint level, GLenum internalformat,
606 GLenum format, GLenum type, Ima geData? pixels); 606 GLenum format, GLenum type, Ima geData? pixels);
607 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target, GLint level, GLenum internalformat, 607 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target, GLint level, GLenum internalformat,
608 GLenum format, GLenum type, HTM LImageElement? image); 608 GLenum format, GLenum type, HTM LImageElement? image);
609 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target, GLint level, GLenum internalformat, 609 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target, GLint level, GLenum internalformat,
610 GLenum format, GLenum type, HTM LCanvasElement? canvas); 610 GLenum format, GLenum type, HTM LCanvasElement? canvas);
611 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target, GLint level, GLenum internalformat, 611 [StrictTypeChecking, RaisesException] void texImage2D(GLenum target, GLint level, GLenum internalformat,
612 GLenum format, GLenum type, HTM LVideoElement? video); 612 GLenum format, GLenum type, HTM LVideoElement? video);
613 613
614 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ et, GLint level, GLint xoffset, GLint yoffset, 614 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ et, GLint level, GLint xoffset, GLint yoffset,
615 GLsizei width, GLsizei heigh t, 615 GLsizei width, GLsizei heigh t,
616 GLenum format, GLenum type, ArrayBufferView? pixels); 616 GLenum format, GLenum type, ArrayBufferView? pixels);
617 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ et, GLint level, GLint xoffset, GLint yoffset, 617 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ et, GLint level, GLint xoffset, GLint yoffset,
618 GLenum format, GLenum type, ImageData? pixels); 618 GLenum format, GLenum type, ImageData? pixels);
619 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ et, GLint level, GLint xoffset, GLint yoffset, 619 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ et, GLint level, GLint xoffset, GLint yoffset,
620 GLenum format, GLenum type, HTMLImageElement? image); 620 GLenum format, GLenum type, HTMLImageElement? image);
621 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ et, GLint level, GLint xoffset, GLint yoffset, 621 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ et, GLint level, GLint xoffset, GLint yoffset,
622 GLenum format, GLenum type, HTMLCanvasElement? canvas); 622 GLenum format, GLenum type, HTMLCanvasElement? canvas);
623 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ et, GLint level, GLint xoffset, GLint yoffset, 623 [StrictTypeChecking, RaisesException] void texSubImage2D(GLenum targ et, GLint level, GLint xoffset, GLint yoffset,
624 GLenum format, GLenum type, HTMLVideoElement? video); 624 GLenum format, GLenum type, HTMLVideoElement? video);
625 625
(...skipping 22 matching lines...) Expand all
648 [StrictTypeChecking, RaisesException] void validateProgram(WebGLProg ram program); 648 [StrictTypeChecking, RaisesException] void validateProgram(WebGLProg ram program);
649 649
650 [StrictTypeChecking] void vertexAttrib1f(GLuint indx, GLfloat x); 650 [StrictTypeChecking] void vertexAttrib1f(GLuint indx, GLfloat x);
651 [StrictTypeChecking, Custom] void vertexAttrib1fv(GLuint indx, Float32Array values); 651 [StrictTypeChecking, Custom] void vertexAttrib1fv(GLuint indx, Float32Array values);
652 [StrictTypeChecking] void vertexAttrib2f(GLuint indx, GLfloat x, GLf loat y); 652 [StrictTypeChecking] void vertexAttrib2f(GLuint indx, GLfloat x, GLf loat y);
653 [StrictTypeChecking, Custom] void vertexAttrib2fv(GLuint indx, Float32Array values); 653 [StrictTypeChecking, Custom] void vertexAttrib2fv(GLuint indx, Float32Array values);
654 [StrictTypeChecking] void vertexAttrib3f(GLuint indx, GLfloat x, GLf loat y, GLfloat z); 654 [StrictTypeChecking] void vertexAttrib3f(GLuint indx, GLfloat x, GLf loat y, GLfloat z);
655 [StrictTypeChecking, Custom] void vertexAttrib3fv(GLuint indx, Float32Array values); 655 [StrictTypeChecking, Custom] void vertexAttrib3fv(GLuint indx, Float32Array values);
656 [StrictTypeChecking] void vertexAttrib4f(GLuint indx, GLfloat x, GLf loat y, GLfloat z, GLfloat w); 656 [StrictTypeChecking] void vertexAttrib4f(GLuint indx, GLfloat x, GLf loat y, GLfloat z, GLfloat w);
657 [StrictTypeChecking, Custom] void vertexAttrib4fv(GLuint indx, Float32Array values); 657 [StrictTypeChecking, Custom] void vertexAttrib4fv(GLuint indx, Float32Array values);
658 [StrictTypeChecking, RaisesException] void vertexAttribPointer(GLuin t indx, GLint size, GLenum type, GLboolean normalized, 658 [StrictTypeChecking, RaisesException] void vertexAttribPointer(GLuin t indx, GLint size, GLenum type, GLboolean normalized,
659 GLsizei stride, GLintp tr offset); 659 GLsizei stride, GLintp tr offset);
660 660
661 [StrictTypeChecking] void viewport(GLint x, GLint y, GLsizei width, GLsizei height); 661 [StrictTypeChecking] void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
662 }; 662 };
OLDNEW
« no previous file with comments | « core/html/canvas/WebGLRenderbuffer.idl ('k') | core/html/canvas/WebGLShader.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698