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

Unified Diff: Source/WebCore/html/canvas/WebGLRenderingContext.idl

Issue 9231022: WebGL support. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/html/canvas/WebGLRenderingContext.idl
diff --git a/Source/WebCore/html/canvas/WebGLRenderingContext.idl b/Source/WebCore/html/canvas/WebGLRenderingContext.idl
index 5103af01a080f3fcdc5d7dad2d1cf308d483bc7f..ef8ef80d64aabac63cd4c9822262fcb8838e3c85 100644
--- a/Source/WebCore/html/canvas/WebGLRenderingContext.idl
+++ b/Source/WebCore/html/canvas/WebGLRenderingContext.idl
@@ -20,7 +20,7 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
module html {
@@ -478,10 +478,10 @@ module html {
[StrictTypeChecking] void clearStencil(in long s);
[StrictTypeChecking] void colorMask(in boolean red, in boolean green, in boolean blue, in boolean alpha);
[StrictTypeChecking] void compileShader(in WebGLShader shader) raises(DOMException);
-
+
//void compressedTexImage2D(in unsigned long target, in long level, in unsigned long internalformat, in unsigned long width, in unsigned long height, in long border, in unsigned long imageSize, const void* data);
//void compressedTexSubImage2D(in unsigned long target, in long level, in long xoffset, in long yoffset, in unsigned long width, in unsigned long height, in unsigned long format, in unsigned long imageSize, const void* data);
-
+
[StrictTypeChecking] void copyTexImage2D(in unsigned long target, in long level, in unsigned long internalformat, in long x, in long y, in long width, in long height, in long border);
[StrictTypeChecking] void copyTexSubImage2D(in unsigned long target, in long level, in long xoffset, in long yoffset, in long x, in long y, in long width, in long height);
@@ -519,35 +519,47 @@ module html {
[StrictTypeChecking] void framebufferTexture2D(in unsigned long target, in unsigned long attachment, in unsigned long textarget, in WebGLTexture texture, in long level) raises(DOMException);
[StrictTypeChecking] void frontFace(in unsigned long mode);
[StrictTypeChecking] void generateMipmap(in unsigned long target);
-
+
[StrictTypeChecking] WebGLActiveInfo getActiveAttrib(in WebGLProgram program, in unsigned long index) raises (DOMException);
[StrictTypeChecking] WebGLActiveInfo getActiveUniform(in WebGLProgram program, in unsigned long index) raises (DOMException);
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] any[] getAttachedShaders(in WebGLProgram program) raises (DOMException);
+#else
[StrictTypeChecking, Custom] void getAttachedShaders(in WebGLProgram program) raises (DOMException);
+#endif
[StrictTypeChecking] int getAttribLocation(in WebGLProgram program, in DOMString name);
- // any getBufferParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] any getBufferParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
+#else
[StrictTypeChecking, Custom] void getBufferParameter();
+#endif
[StrictTypeChecking] WebGLContextAttributes getContextAttributes();
[StrictTypeChecking] unsigned long getError();
- // object getExtension(in DOMString name);
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] any getExtension(in DOMString name);
+ [StrictTypeChecking, Custom] any getParameter(in unsigned long pname) raises(DOMException);
+ [StrictTypeChecking, Custom] any getFramebufferAttachmentParameter(in unsigned long target, in unsigned long attachment, in unsigned long pname) raises(DOMException);
+ [StrictTypeChecking, Custom] any getProgramParameter(in WebGLProgram program, in unsigned long pname) raises(DOMException);
+#else
[StrictTypeChecking, Custom] void getExtension(in DOMString name);
-
- // any getFramebufferAttachmentParameter(in unsigned long target, in unsigned long attachment, in unsigned long pname) raises(DOMException);
- [StrictTypeChecking, Custom] void getFramebufferAttachmentParameter();
- // any getParameter(in unsigned long pname) raises(DOMException);
[StrictTypeChecking, Custom] void getParameter();
- // any getProgramParameter(in WebGLProgram program, in unsigned long pname) raises(DOMException);
+ [StrictTypeChecking, Custom] void getFramebufferAttachmentParameter();
[StrictTypeChecking, Custom] void getProgramParameter();
+#endif
[StrictTypeChecking, ConvertNullStringTo=Null] DOMString getProgramInfoLog(in WebGLProgram program) raises(DOMException);
- // any getRenderbufferParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] any getRenderbufferParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
+ [StrictTypeChecking, Custom] any getShaderParameter(in WebGLShader shader, in unsigned long pname) raises(DOMException);
+#else
[StrictTypeChecking, Custom] void getRenderbufferParameter();
- // any getShaderParameter(in WebGLShader shader, in unsigned long pname) raises(DOMException);
[StrictTypeChecking, Custom] void getShaderParameter() raises(DOMException);
+#endif
[StrictTypeChecking, ConvertNullStringTo=Null] DOMString getShaderInfoLog(in WebGLShader shader) raises(DOMException);
@@ -556,19 +568,23 @@ module html {
[StrictTypeChecking, ConvertNullStringTo=Null] DOMString getShaderSource(in WebGLShader shader) raises(DOMException);
- // DOMString[] getSupportedExtensions()
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] DOMString[] getSupportedExtensions();
+ [StrictTypeChecking, Custom] any getTexParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
+ [StrictTypeChecking, Custom] any getUniform(in WebGLProgram program, in WebGLUniformLocation location) raises(DOMException);
+#else
[StrictTypeChecking, Custom] void getSupportedExtensions();
-
- // any getTexParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
[StrictTypeChecking, Custom] void getTexParameter();
-
- // any getUniform(in WebGLProgram program, in WebGLUniformLocation location) raises(DOMException);
[StrictTypeChecking, Custom] void getUniform();
+#endif
[StrictTypeChecking] WebGLUniformLocation getUniformLocation(in WebGLProgram program, in DOMString name) raises(DOMException);
- // any getVertexAttrib(in unsigned long index, in unsigned long pname) raises(DOMException);
+#if (defined(LANGUAGE_DART) && LANGUAGE_DART)
+ [StrictTypeChecking, Custom] any getVertexAttrib(in unsigned long index, in unsigned long pname) raises(DOMException);
+#else
[StrictTypeChecking, Custom] void getVertexAttrib();
+#endif
[StrictTypeChecking] long getVertexAttribOffset(in unsigned long index, in unsigned long pname);
@@ -587,7 +603,7 @@ module html {
[StrictTypeChecking] void polygonOffset(in float factor, in float units);
[StrictTypeChecking] void readPixels(in long x, in long y, in long width, in long height, in unsigned long format, in unsigned long type, in ArrayBufferView pixels) raises(DOMException);
-
+
[StrictTypeChecking] void releaseShaderCompiler();
[StrictTypeChecking] void renderbufferStorage(in unsigned long target, in unsigned long internalformat, in long width, in long height);
[StrictTypeChecking] void sampleCoverage(in float value, in boolean invert);
@@ -604,7 +620,7 @@ module html {
[StrictTypeChecking] void texParameteri(in unsigned long target, in unsigned long pname, in long param);
// Supported forms:
- [StrictTypeChecking] void texImage2D(in unsigned long target, in long level, in unsigned long internalformat, in long width, in long height,
+ [StrictTypeChecking] void texImage2D(in unsigned long target, in long level, in unsigned long internalformat, in long width, in long height,
in long border, in unsigned long format, in unsigned long type, in ArrayBufferView pixels) raises (DOMException);
[StrictTypeChecking] void texImage2D(in unsigned long target, in long level, in unsigned long internalformat,
in unsigned long format, in unsigned long type, in ImageData pixels) raises (DOMException);
@@ -617,8 +633,8 @@ module html {
in unsigned long format, in unsigned long type, in HTMLVideoElement video) raises (DOMException);
#endif
- [StrictTypeChecking] void texSubImage2D(in unsigned long target, in long level, in long xoffset, in long yoffset,
- in long width, in long height,
+ [StrictTypeChecking] void texSubImage2D(in unsigned long target, in long level, in long xoffset, in long yoffset,
+ in long width, in long height,
in unsigned long format, in unsigned long type, in ArrayBufferView pixels) raises (DOMException);
[StrictTypeChecking] void texSubImage2D(in unsigned long target, in long level, in long xoffset, in long yoffset,
in unsigned long format, in unsigned long type, in ImageData pixels) raises (DOMException);
@@ -663,7 +679,7 @@ module html {
[StrictTypeChecking, Custom] void vertexAttrib3fv(in unsigned long indx, in Float32Array values);
[StrictTypeChecking] void vertexAttrib4f(in unsigned long indx, in float x, in float y, in float z, in float w);
[StrictTypeChecking, Custom] void vertexAttrib4fv(in unsigned long indx, in Float32Array values);
- [StrictTypeChecking] void vertexAttribPointer(in unsigned long indx, in long size, in unsigned long type, in boolean normalized,
+ [StrictTypeChecking] void vertexAttribPointer(in unsigned long indx, in long size, in unsigned long type, in boolean normalized,
antonm 2012/01/18 15:12:23 please, rever whitespace only changes---they make
Nikolay 2012/01/19 13:27:34 Done.
in long stride, in long offset) raises(DOMException);
[StrictTypeChecking] void viewport(in long x, in long y, in long width, in long height);

Powered by Google App Engine
This is Rietveld 408576698