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

Side by Side Diff: Source/WebCore/html/canvas/WebGLRenderingContext.idl

Issue 9231022: WebGL support. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Final version. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebCore/html/canvas/Uint8Array.idl ('k') | no next file » | 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
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 [StrictTypeChecking] void finish(); 516 [StrictTypeChecking] void finish();
517 [StrictTypeChecking] void flush(); 517 [StrictTypeChecking] void flush();
518 [StrictTypeChecking] void framebufferRenderbuffer(in unsigned lo ng target, in unsigned long attachment, in unsigned long renderbuffertarget, in WebGLRenderbuffer renderbuffer) raises(DOMException); 518 [StrictTypeChecking] void framebufferRenderbuffer(in unsigned lo ng target, in unsigned long attachment, in unsigned long renderbuffertarget, in WebGLRenderbuffer renderbuffer) raises(DOMException);
519 [StrictTypeChecking] void framebufferTexture2D(in unsigned long target, in unsigned long attachment, in unsigned long textarget, in WebGLTexture texture, in long level) raises(DOMException); 519 [StrictTypeChecking] void framebufferTexture2D(in unsigned long target, in unsigned long attachment, in unsigned long textarget, in WebGLTexture texture, in long level) raises(DOMException);
520 [StrictTypeChecking] void frontFace(in unsigned long mode); 520 [StrictTypeChecking] void frontFace(in unsigned long mode);
521 [StrictTypeChecking] void generateMipmap(in unsigned long target ); 521 [StrictTypeChecking] void generateMipmap(in unsigned long target );
522 522
523 [StrictTypeChecking] WebGLActiveInfo getActiveAttrib(in WebGLProgram pro gram, in unsigned long index) raises (DOMException); 523 [StrictTypeChecking] WebGLActiveInfo getActiveAttrib(in WebGLProgram pro gram, in unsigned long index) raises (DOMException);
524 [StrictTypeChecking] WebGLActiveInfo getActiveUniform(in WebGLProgram pr ogram, in unsigned long index) raises (DOMException); 524 [StrictTypeChecking] WebGLActiveInfo getActiveUniform(in WebGLProgram pr ogram, in unsigned long index) raises (DOMException);
525 525
526 #if (defined(LANGUAGE_DART) && LANGUAGE_DART)
527 [StrictTypeChecking, Custom] any[] getAttachedShaders(in WebGLProgram pr ogram) raises (DOMException);
528 #else
526 [StrictTypeChecking, Custom] void getAttachedShaders(in WebGLProgram pro gram) raises (DOMException); 529 [StrictTypeChecking, Custom] void getAttachedShaders(in WebGLProgram pro gram) raises (DOMException);
527 530 #endif
528 [StrictTypeChecking] int getAttribLocation(in WebGLProgram prog ram, in DOMString name); 531 [StrictTypeChecking] int getAttribLocation(in WebGLProgram prog ram, in DOMString name);
529 532
530 // any getBufferParameter(in unsigned long target, in unsigned long pnam e) raises(DOMException); 533 // any getBufferParameter(in unsigned long target, in unsigned long pnam e) raises(DOMException);
534 #if (defined(LANGUAGE_DART) && LANGUAGE_DART)
535 [StrictTypeChecking, Custom] any getBufferParameter(in unsigned long tar get, in unsigned long pname) raises(DOMException);
536 #else
531 [StrictTypeChecking, Custom] void getBufferParameter(); 537 [StrictTypeChecking, Custom] void getBufferParameter();
538 #endif
532 539
533 [StrictTypeChecking] WebGLContextAttributes getContextAttributes(); 540 [StrictTypeChecking] WebGLContextAttributes getContextAttributes();
534 541
535 [StrictTypeChecking] unsigned long getError(); 542 [StrictTypeChecking] unsigned long getError();
536 543
544 #if (defined(LANGUAGE_DART) && LANGUAGE_DART)
545 [StrictTypeChecking, Custom] any getExtension(in DOMString name);
546 [StrictTypeChecking, Custom] any getParameter(in unsigned long pname) ra ises(DOMException);
547 [StrictTypeChecking, Custom] any getFramebufferAttachmentParameter(in un signed long target, in unsigned long attachment, in unsigned long pname) raises( DOMException);
548 [StrictTypeChecking, Custom] any getProgramParameter(in WebGLProgram pro gram, in unsigned long pname) raises(DOMException);
549 #else
537 // object getExtension(in DOMString name); 550 // object getExtension(in DOMString name);
538 [StrictTypeChecking, Custom] void getExtension(in DOMString name); 551 [StrictTypeChecking, Custom] void getExtension(in DOMString name);
539 552
540 // any getFramebufferAttachmentParameter(in unsigned long target, in uns igned long attachment, in unsigned long pname) raises(DOMException); 553 // any getFramebufferAttachmentParameter(in unsigned long target, in uns igned long attachment, in unsigned long pname) raises(DOMException);
541 [StrictTypeChecking, Custom] void getFramebufferAttachmentParameter(); 554 [StrictTypeChecking, Custom] void getFramebufferAttachmentParameter();
542 // any getParameter(in unsigned long pname) raises(DOMException); 555 // any getParameter(in unsigned long pname) raises(DOMException);
543 [StrictTypeChecking, Custom] void getParameter(); 556 [StrictTypeChecking, Custom] void getParameter();
544 // any getProgramParameter(in WebGLProgram program, in unsigned long pna me) raises(DOMException); 557 // any getProgramParameter(in WebGLProgram program, in unsigned long pna me) raises(DOMException);
545 [StrictTypeChecking, Custom] void getProgramParameter(); 558 [StrictTypeChecking, Custom] void getProgramParameter();
559 #endif
546 [StrictTypeChecking, ConvertNullStringTo=Null] DOMString getProgramInfoL og(in WebGLProgram program) raises(DOMException); 560 [StrictTypeChecking, ConvertNullStringTo=Null] DOMString getProgramInfoL og(in WebGLProgram program) raises(DOMException);
561 #if (defined(LANGUAGE_DART) && LANGUAGE_DART)
562 [StrictTypeChecking, Custom] any getRenderbufferParameter(in unsigned lo ng target, in unsigned long pname) raises(DOMException);
563 [StrictTypeChecking, Custom] any getShaderParameter(in WebGLShader shade r, in unsigned long pname) raises(DOMException);
564 #else
547 // any getRenderbufferParameter(in unsigned long target, in unsigned lon g pname) raises(DOMException); 565 // any getRenderbufferParameter(in unsigned long target, in unsigned lon g pname) raises(DOMException);
548 [StrictTypeChecking, Custom] void getRenderbufferParameter(); 566 [StrictTypeChecking, Custom] void getRenderbufferParameter();
549 // any getShaderParameter(in WebGLShader shader, in unsigned long pname) raises(DOMException); 567 // any getShaderParameter(in WebGLShader shader, in unsigned long pname) raises(DOMException);
550 [StrictTypeChecking, Custom] void getShaderParameter() raises(DOMExcepti on); 568 [StrictTypeChecking, Custom] void getShaderParameter() raises(DOMExcepti on);
569 #endif
551 570
552 [StrictTypeChecking, ConvertNullStringTo=Null] DOMString getShaderInf oLog(in WebGLShader shader) raises(DOMException); 571 [StrictTypeChecking, ConvertNullStringTo=Null] DOMString getShaderInf oLog(in WebGLShader shader) raises(DOMException);
553 572
554 // TBD 573 // TBD
555 // void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiont ype, GLint* range, GLint* precision); 574 // void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiont ype, GLint* range, GLint* precision);
556 575
557 [StrictTypeChecking, ConvertNullStringTo=Null] DOMString getShaderSou rce(in WebGLShader shader) raises(DOMException); 576 [StrictTypeChecking, ConvertNullStringTo=Null] DOMString getShaderSou rce(in WebGLShader shader) raises(DOMException);
558 577
578 #if (defined(LANGUAGE_DART) && LANGUAGE_DART)
579 [StrictTypeChecking, Custom] DOMString[] getSupportedExtensions();
580 [StrictTypeChecking, Custom] any getTexParameter(in unsigned long target , in unsigned long pname) raises(DOMException);
581 [StrictTypeChecking, Custom] any getUniform(in WebGLProgram program, in WebGLUniformLocation location) raises(DOMException);
582 #else
559 // DOMString[] getSupportedExtensions() 583 // DOMString[] getSupportedExtensions()
560 [StrictTypeChecking, Custom] void getSupportedExtensions(); 584 [StrictTypeChecking, Custom] void getSupportedExtensions();
561 585
562 // any getTexParameter(in unsigned long target, in unsigned long pname) raises(DOMException); 586 // any getTexParameter(in unsigned long target, in unsigned long pname) raises(DOMException);
563 [StrictTypeChecking, Custom] void getTexParameter(); 587 [StrictTypeChecking, Custom] void getTexParameter();
564 588
565 // any getUniform(in WebGLProgram program, in WebGLUniformLocation locat ion) raises(DOMException); 589 // any getUniform(in WebGLProgram program, in WebGLUniformLocation locat ion) raises(DOMException);
566 [StrictTypeChecking, Custom] void getUniform(); 590 [StrictTypeChecking, Custom] void getUniform();
591 #endif
567 592
568 [StrictTypeChecking] WebGLUniformLocation getUniformLocation(in WebGLPro gram program, in DOMString name) raises(DOMException); 593 [StrictTypeChecking] WebGLUniformLocation getUniformLocation(in WebGLPro gram program, in DOMString name) raises(DOMException);
569 594
595 #if (defined(LANGUAGE_DART) && LANGUAGE_DART)
596 [StrictTypeChecking, Custom] any getVertexAttrib(in unsigned long index, in unsigned long pname) raises(DOMException);
597 #else
570 // any getVertexAttrib(in unsigned long index, in unsigned long pname) r aises(DOMException); 598 // any getVertexAttrib(in unsigned long index, in unsigned long pname) r aises(DOMException);
571 [StrictTypeChecking, Custom] void getVertexAttrib(); 599 [StrictTypeChecking, Custom] void getVertexAttrib();
600 #endif
572 601
573 [StrictTypeChecking] long getVertexAttribOffset(in unsigned long index, in unsigned long pname); 602 [StrictTypeChecking] long getVertexAttribOffset(in unsigned long index, in unsigned long pname);
574 603
575 [StrictTypeChecking] void hint(in unsigned long target, in unsig ned long mode); 604 [StrictTypeChecking] void hint(in unsigned long target, in unsig ned long mode);
576 [StrictTypeChecking] boolean isBuffer(in WebGLBuffer buffer); 605 [StrictTypeChecking] boolean isBuffer(in WebGLBuffer buffer);
577 [StrictTypeChecking] boolean isContextLost(); 606 [StrictTypeChecking] boolean isContextLost();
578 [StrictTypeChecking] boolean isEnabled(in unsigned long cap); 607 [StrictTypeChecking] boolean isEnabled(in unsigned long cap);
579 [StrictTypeChecking] boolean isFramebuffer(in WebGLFramebuffer fram ebuffer); 608 [StrictTypeChecking] boolean isFramebuffer(in WebGLFramebuffer fram ebuffer);
580 [StrictTypeChecking] boolean isProgram(in WebGLProgram program); 609 [StrictTypeChecking] boolean isProgram(in WebGLProgram program);
581 [StrictTypeChecking] boolean isRenderbuffer(in WebGLRenderbuffer re nderbuffer); 610 [StrictTypeChecking] boolean isRenderbuffer(in WebGLRenderbuffer re nderbuffer);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 [StrictTypeChecking, Custom] void vertexAttrib3fv(in unsigned lo ng indx, in Float32Array values); 692 [StrictTypeChecking, Custom] void vertexAttrib3fv(in unsigned lo ng indx, in Float32Array values);
664 [StrictTypeChecking] void vertexAttrib4f(in unsigned long indx, in float x, in float y, in float z, in float w); 693 [StrictTypeChecking] void vertexAttrib4f(in unsigned long indx, in float x, in float y, in float z, in float w);
665 [StrictTypeChecking, Custom] void vertexAttrib4fv(in unsigned lo ng indx, in Float32Array values); 694 [StrictTypeChecking, Custom] void vertexAttrib4fv(in unsigned lo ng indx, in Float32Array values);
666 [StrictTypeChecking] void vertexAttribPointer(in unsigned long i ndx, in long size, in unsigned long type, in boolean normalized, 695 [StrictTypeChecking] void vertexAttribPointer(in unsigned long i ndx, in long size, in unsigned long type, in boolean normalized,
667 in long stride, in long offset) raises(DOMException); 696 in long stride, in long offset) raises(DOMException);
668 697
669 [StrictTypeChecking] void viewport(in long x, in long y, in long width, in long height); 698 [StrictTypeChecking] void viewport(in long x, in long y, in long width, in long height);
670 }; 699 };
671 } 700 }
672 701
OLDNEW
« no previous file with comments | « Source/WebCore/html/canvas/Uint8Array.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698