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

Side by Side Diff: sdk/lib/web_gl/dart2js/web_gl_dart2js.dart

Issue 14367012: Move to new dart:typeddata types for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
OLDNEW
1 library dart.dom.web_gl; 1 library dart.dom.web_gl;
2 2
3 import 'dart:collection'; 3 import 'dart:collection';
4 import 'dart:_collection-dev'; 4 import 'dart:_collection-dev';
5 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:html_common'; 6 import 'dart:html_common';
7 import 'dart:typeddata';
7 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure ToJS; 8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure ToJS;
8 import 'dart:_foreign_helper' show JS; 9 import 'dart:_foreign_helper' show JS;
9 // DO NOT EDIT - unless you are editing documentation as per: 10 // DO NOT EDIT - unless you are editing documentation as per:
10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 11 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
11 // Auto-generated dart:web_gl library. 12 // Auto-generated dart:web_gl library.
12 13
13 14
14 15
15 16
16 17
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 @DomName('WebGLRenderingContext.blendFuncSeparate') 1343 @DomName('WebGLRenderingContext.blendFuncSeparate')
1343 @DocsEditable 1344 @DocsEditable
1344 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive; 1345 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive;
1345 1346
1346 @DomName('WebGLRenderingContext.bufferData') 1347 @DomName('WebGLRenderingContext.bufferData')
1347 @DocsEditable 1348 @DocsEditable
1348 void bufferData(int target, data_OR_size, int usage) native; 1349 void bufferData(int target, data_OR_size, int usage) native;
1349 1350
1350 @DomName('WebGLRenderingContext.bufferSubData') 1351 @DomName('WebGLRenderingContext.bufferSubData')
1351 @DocsEditable 1352 @DocsEditable
1352 void bufferSubData(int target, int offset, /*ArrayBuffer*/ data) native; 1353 void bufferSubData(int target, int offset, data) native;
1353 1354
1354 @DomName('WebGLRenderingContext.checkFramebufferStatus') 1355 @DomName('WebGLRenderingContext.checkFramebufferStatus')
1355 @DocsEditable 1356 @DocsEditable
1356 int checkFramebufferStatus(int target) native; 1357 int checkFramebufferStatus(int target) native;
1357 1358
1358 @DomName('WebGLRenderingContext.clear') 1359 @DomName('WebGLRenderingContext.clear')
1359 @DocsEditable 1360 @DocsEditable
1360 void clear(int mask) native; 1361 void clear(int mask) native;
1361 1362
1362 @DomName('WebGLRenderingContext.clearColor') 1363 @DomName('WebGLRenderingContext.clearColor')
(...skipping 11 matching lines...) Expand all
1374 @DomName('WebGLRenderingContext.colorMask') 1375 @DomName('WebGLRenderingContext.colorMask')
1375 @DocsEditable 1376 @DocsEditable
1376 void colorMask(bool red, bool green, bool blue, bool alpha) native; 1377 void colorMask(bool red, bool green, bool blue, bool alpha) native;
1377 1378
1378 @DomName('WebGLRenderingContext.compileShader') 1379 @DomName('WebGLRenderingContext.compileShader')
1379 @DocsEditable 1380 @DocsEditable
1380 void compileShader(Shader shader) native; 1381 void compileShader(Shader shader) native;
1381 1382
1382 @DomName('WebGLRenderingContext.compressedTexImage2D') 1383 @DomName('WebGLRenderingContext.compressedTexImage2D')
1383 @DocsEditable 1384 @DocsEditable
1384 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, /*ArrayBufferView*/ data) native; 1385 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, TypedData data) native;
1385 1386
1386 @DomName('WebGLRenderingContext.compressedTexSubImage2D') 1387 @DomName('WebGLRenderingContext.compressedTexSubImage2D')
1387 @DocsEditable 1388 @DocsEditable
1388 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, /*ArrayBufferView*/ data) native; 1389 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, TypedData data) native;
1389 1390
1390 @DomName('WebGLRenderingContext.copyTexImage2D') 1391 @DomName('WebGLRenderingContext.copyTexImage2D')
1391 @DocsEditable 1392 @DocsEditable
1392 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native; 1393 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native;
1393 1394
1394 @DomName('WebGLRenderingContext.copyTexSubImage2D') 1395 @DomName('WebGLRenderingContext.copyTexSubImage2D')
1395 @DocsEditable 1396 @DocsEditable
1396 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native; 1397 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native;
1397 1398
1398 @DomName('WebGLRenderingContext.createBuffer') 1399 @DomName('WebGLRenderingContext.createBuffer')
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 @DomName('WebGLRenderingContext.getExtension') 1543 @DomName('WebGLRenderingContext.getExtension')
1543 @DocsEditable 1544 @DocsEditable
1544 Object getExtension(String name) native; 1545 Object getExtension(String name) native;
1545 1546
1546 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter') 1547 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter')
1547 @DocsEditable 1548 @DocsEditable
1548 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native; 1549 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native;
1549 1550
1550 @DomName('WebGLRenderingContext.getParameter') 1551 @DomName('WebGLRenderingContext.getParameter')
1551 @DocsEditable 1552 @DocsEditable
1552 @Creates('Null|num|String|bool|=List|Float32Array|Int32Array|Uint32Array|Frame buffer|Renderbuffer|Texture') 1553 @Creates('Null|num|String|bool|=List|Float32List|Int32List|Uint32List|Framebuf fer|Renderbuffer|Texture')
1553 @Returns('Null|num|String|bool|=List|Float32Array|Int32Array|Uint32Array|Frame buffer|Renderbuffer|Texture') 1554 @Returns('Null|num|String|bool|=List|Float32List|Int32List|Uint32List|Framebuf fer|Renderbuffer|Texture')
1554 Object getParameter(int pname) native; 1555 Object getParameter(int pname) native;
1555 1556
1556 @DomName('WebGLRenderingContext.getProgramInfoLog') 1557 @DomName('WebGLRenderingContext.getProgramInfoLog')
1557 @DocsEditable 1558 @DocsEditable
1558 String getProgramInfoLog(Program program) native; 1559 String getProgramInfoLog(Program program) native;
1559 1560
1560 @DomName('WebGLRenderingContext.getProgramParameter') 1561 @DomName('WebGLRenderingContext.getProgramParameter')
1561 @DocsEditable 1562 @DocsEditable
1562 Object getProgramParameter(Program program, int pname) native; 1563 Object getProgramParameter(Program program, int pname) native;
1563 1564
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 @DomName('WebGLRenderingContext.pixelStorei') 1653 @DomName('WebGLRenderingContext.pixelStorei')
1653 @DocsEditable 1654 @DocsEditable
1654 void pixelStorei(int pname, int param) native; 1655 void pixelStorei(int pname, int param) native;
1655 1656
1656 @DomName('WebGLRenderingContext.polygonOffset') 1657 @DomName('WebGLRenderingContext.polygonOffset')
1657 @DocsEditable 1658 @DocsEditable
1658 void polygonOffset(num factor, num units) native; 1659 void polygonOffset(num factor, num units) native;
1659 1660
1660 @DomName('WebGLRenderingContext.readPixels') 1661 @DomName('WebGLRenderingContext.readPixels')
1661 @DocsEditable 1662 @DocsEditable
1662 void readPixels(int x, int y, int width, int height, int format, int type, /*A rrayBufferView*/ pixels) native; 1663 void readPixels(int x, int y, int width, int height, int format, int type, Typ edData pixels) native;
1663 1664
1664 @DomName('WebGLRenderingContext.releaseShaderCompiler') 1665 @DomName('WebGLRenderingContext.releaseShaderCompiler')
1665 @DocsEditable 1666 @DocsEditable
1666 void releaseShaderCompiler() native; 1667 void releaseShaderCompiler() native;
1667 1668
1668 @DomName('WebGLRenderingContext.renderbufferStorage') 1669 @DomName('WebGLRenderingContext.renderbufferStorage')
1669 @DocsEditable 1670 @DocsEditable
1670 void renderbufferStorage(int target, int internalformat, int width, int height ) native; 1671 void renderbufferStorage(int target, int internalformat, int width, int height ) native;
1671 1672
1672 @DomName('WebGLRenderingContext.sampleCoverage') 1673 @DomName('WebGLRenderingContext.sampleCoverage')
(...skipping 27 matching lines...) Expand all
1700 @DomName('WebGLRenderingContext.stencilOp') 1701 @DomName('WebGLRenderingContext.stencilOp')
1701 @DocsEditable 1702 @DocsEditable
1702 void stencilOp(int fail, int zfail, int zpass) native; 1703 void stencilOp(int fail, int zfail, int zpass) native;
1703 1704
1704 @DomName('WebGLRenderingContext.stencilOpSeparate') 1705 @DomName('WebGLRenderingContext.stencilOpSeparate')
1705 @DocsEditable 1706 @DocsEditable
1706 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; 1707 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
1707 1708
1708 @DomName('WebGLRenderingContext.texImage2D') 1709 @DomName('WebGLRenderingContext.texImage2D')
1709 @DocsEditable 1710 @DocsEditable
1710 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format, int type, /*ArrayBufferView*/ pixels]) { 1711 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format, int type, TypedData pixels]) {
1711 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas _OR_image_OR_pixels_OR_video == null) && ?pixels) { 1712 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas _OR_image_OR_pixels_OR_video == null)) {
1712 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); 1713 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
1713 return; 1714 return;
1714 } 1715 }
1715 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) { 1716 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
1716 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR _pixels_OR_video); 1717 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR _pixels_OR_video);
1717 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, pixels_1); 1718 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, pixels_1);
1718 return; 1719 return;
1719 } 1720 }
1720 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels ) { 1721 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels ) {
1721 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 1722 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1722 return; 1723 return;
1723 } 1724 }
1724 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border _OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixel s) { 1725 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border _OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixel s) {
1725 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 1726 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1726 return; 1727 return;
1727 } 1728 }
1728 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels ) { 1729 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels ) {
1729 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 1730 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1730 return; 1731 return;
1731 } 1732 }
1732 throw new ArgumentError("Incorrect number or type of arguments"); 1733 throw new ArgumentError("Incorrect number or type of arguments");
1733 } 1734 }
1734 @JSName('texImage2D') 1735 @JSName('texImage2D')
1735 @DomName('WebGLRenderingContext.texImage2D') 1736 @DomName('WebGLRenderingContext.texImage2D')
1736 @DocsEditable 1737 @DocsEditable
1737 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, pixels) native; 1738 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, TypedData pixels) native;
1738 @JSName('texImage2D') 1739 @JSName('texImage2D')
1739 @DomName('WebGLRenderingContext.texImage2D') 1740 @DomName('WebGLRenderingContext.texImage2D')
1740 @DocsEditable 1741 @DocsEditable
1741 void _texImage2D_2(target, level, internalformat, format, type, pixels) native ; 1742 void _texImage2D_2(target, level, internalformat, format, type, pixels) native ;
1742 @JSName('texImage2D') 1743 @JSName('texImage2D')
1743 @DomName('WebGLRenderingContext.texImage2D') 1744 @DomName('WebGLRenderingContext.texImage2D')
1744 @DocsEditable 1745 @DocsEditable
1745 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native; 1746 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native;
1746 @JSName('texImage2D') 1747 @JSName('texImage2D')
1747 @DomName('WebGLRenderingContext.texImage2D') 1748 @DomName('WebGLRenderingContext.texImage2D')
1748 @DocsEditable 1749 @DocsEditable
1749 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native; 1750 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native;
1750 @JSName('texImage2D') 1751 @JSName('texImage2D')
1751 @DomName('WebGLRenderingContext.texImage2D') 1752 @DomName('WebGLRenderingContext.texImage2D')
1752 @DocsEditable 1753 @DocsEditable
1753 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native; 1754 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native;
1754 1755
1755 @DomName('WebGLRenderingContext.texParameterf') 1756 @DomName('WebGLRenderingContext.texParameterf')
1756 @DocsEditable 1757 @DocsEditable
1757 void texParameterf(int target, int pname, num param) native; 1758 void texParameterf(int target, int pname, num param) native;
1758 1759
1759 @DomName('WebGLRenderingContext.texParameteri') 1760 @DomName('WebGLRenderingContext.texParameteri')
1760 @DocsEditable 1761 @DocsEditable
1761 void texParameteri(int target, int pname, int param) native; 1762 void texParameteri(int target, int pname, int param) native;
1762 1763
1763 @DomName('WebGLRenderingContext.texSubImage2D') 1764 @DomName('WebGLRenderingContext.texSubImage2D')
1764 @DocsEditable 1765 @DocsEditable
1765 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format _OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in t type, /*ArrayBufferView*/ pixels]) { 1766 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format _OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in t type, TypedData pixels]) {
1766 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format _OR_image_OR_pixels_OR_video == null) && ?pixels) { 1767 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format _OR_image_OR_pixels_OR_video == null)) {
1767 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); 1768 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
1768 return; 1769 return;
1769 } 1770 }
1770 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { 1771 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
1771 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR _pixels_OR_video); 1772 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR _pixels_OR_video);
1772 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1); 1773 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1);
1773 return; 1774 return;
1774 } 1775 }
1775 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { 1776 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
1776 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 1777 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1777 return; 1778 return;
1778 } 1779 }
1779 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas _OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { 1780 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas _OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
1780 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 1781 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1781 return; 1782 return;
1782 } 1783 }
1783 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { 1784 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
1784 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 1785 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1785 return; 1786 return;
1786 } 1787 }
1787 throw new ArgumentError("Incorrect number or type of arguments"); 1788 throw new ArgumentError("Incorrect number or type of arguments");
1788 } 1789 }
1789 @JSName('texSubImage2D') 1790 @JSName('texSubImage2D')
1790 @DomName('WebGLRenderingContext.texSubImage2D') 1791 @DomName('WebGLRenderingContext.texSubImage2D')
1791 @DocsEditable 1792 @DocsEditable
1792 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, pixels) native; 1793 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, TypedData pixels) native;
1793 @JSName('texSubImage2D') 1794 @JSName('texSubImage2D')
1794 @DomName('WebGLRenderingContext.texSubImage2D') 1795 @DomName('WebGLRenderingContext.texSubImage2D')
1795 @DocsEditable 1796 @DocsEditable
1796 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative; 1797 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative;
1797 @JSName('texSubImage2D') 1798 @JSName('texSubImage2D')
1798 @DomName('WebGLRenderingContext.texSubImage2D') 1799 @DomName('WebGLRenderingContext.texSubImage2D')
1799 @DocsEditable 1800 @DocsEditable
1800 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native; 1801 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native;
1801 @JSName('texSubImage2D') 1802 @JSName('texSubImage2D')
1802 @DomName('WebGLRenderingContext.texSubImage2D') 1803 @DomName('WebGLRenderingContext.texSubImage2D')
1803 @DocsEditable 1804 @DocsEditable
1804 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native; 1805 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native;
1805 @JSName('texSubImage2D') 1806 @JSName('texSubImage2D')
1806 @DomName('WebGLRenderingContext.texSubImage2D') 1807 @DomName('WebGLRenderingContext.texSubImage2D')
1807 @DocsEditable 1808 @DocsEditable
1808 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native; 1809 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native;
1809 1810
1810 @DomName('WebGLRenderingContext.uniform1f') 1811 @DomName('WebGLRenderingContext.uniform1f')
1811 @DocsEditable 1812 @DocsEditable
1812 void uniform1f(UniformLocation location, num x) native; 1813 void uniform1f(UniformLocation location, num x) native;
1813 1814
1814 @DomName('WebGLRenderingContext.uniform1fv') 1815 @DomName('WebGLRenderingContext.uniform1fv')
1815 @DocsEditable 1816 @DocsEditable
1816 void uniform1fv(UniformLocation location, Float32Array v) native; 1817 void uniform1fv(UniformLocation location, Float32List v) native;
1817 1818
1818 @DomName('WebGLRenderingContext.uniform1i') 1819 @DomName('WebGLRenderingContext.uniform1i')
1819 @DocsEditable 1820 @DocsEditable
1820 void uniform1i(UniformLocation location, int x) native; 1821 void uniform1i(UniformLocation location, int x) native;
1821 1822
1822 @DomName('WebGLRenderingContext.uniform1iv') 1823 @DomName('WebGLRenderingContext.uniform1iv')
1823 @DocsEditable 1824 @DocsEditable
1824 void uniform1iv(UniformLocation location, Int32Array v) native; 1825 void uniform1iv(UniformLocation location, Int32List v) native;
1825 1826
1826 @DomName('WebGLRenderingContext.uniform2f') 1827 @DomName('WebGLRenderingContext.uniform2f')
1827 @DocsEditable 1828 @DocsEditable
1828 void uniform2f(UniformLocation location, num x, num y) native; 1829 void uniform2f(UniformLocation location, num x, num y) native;
1829 1830
1830 @DomName('WebGLRenderingContext.uniform2fv') 1831 @DomName('WebGLRenderingContext.uniform2fv')
1831 @DocsEditable 1832 @DocsEditable
1832 void uniform2fv(UniformLocation location, Float32Array v) native; 1833 void uniform2fv(UniformLocation location, Float32List v) native;
1833 1834
1834 @DomName('WebGLRenderingContext.uniform2i') 1835 @DomName('WebGLRenderingContext.uniform2i')
1835 @DocsEditable 1836 @DocsEditable
1836 void uniform2i(UniformLocation location, int x, int y) native; 1837 void uniform2i(UniformLocation location, int x, int y) native;
1837 1838
1838 @DomName('WebGLRenderingContext.uniform2iv') 1839 @DomName('WebGLRenderingContext.uniform2iv')
1839 @DocsEditable 1840 @DocsEditable
1840 void uniform2iv(UniformLocation location, Int32Array v) native; 1841 void uniform2iv(UniformLocation location, Int32List v) native;
1841 1842
1842 @DomName('WebGLRenderingContext.uniform3f') 1843 @DomName('WebGLRenderingContext.uniform3f')
1843 @DocsEditable 1844 @DocsEditable
1844 void uniform3f(UniformLocation location, num x, num y, num z) native; 1845 void uniform3f(UniformLocation location, num x, num y, num z) native;
1845 1846
1846 @DomName('WebGLRenderingContext.uniform3fv') 1847 @DomName('WebGLRenderingContext.uniform3fv')
1847 @DocsEditable 1848 @DocsEditable
1848 void uniform3fv(UniformLocation location, Float32Array v) native; 1849 void uniform3fv(UniformLocation location, Float32List v) native;
1849 1850
1850 @DomName('WebGLRenderingContext.uniform3i') 1851 @DomName('WebGLRenderingContext.uniform3i')
1851 @DocsEditable 1852 @DocsEditable
1852 void uniform3i(UniformLocation location, int x, int y, int z) native; 1853 void uniform3i(UniformLocation location, int x, int y, int z) native;
1853 1854
1854 @DomName('WebGLRenderingContext.uniform3iv') 1855 @DomName('WebGLRenderingContext.uniform3iv')
1855 @DocsEditable 1856 @DocsEditable
1856 void uniform3iv(UniformLocation location, Int32Array v) native; 1857 void uniform3iv(UniformLocation location, Int32List v) native;
1857 1858
1858 @DomName('WebGLRenderingContext.uniform4f') 1859 @DomName('WebGLRenderingContext.uniform4f')
1859 @DocsEditable 1860 @DocsEditable
1860 void uniform4f(UniformLocation location, num x, num y, num z, num w) native; 1861 void uniform4f(UniformLocation location, num x, num y, num z, num w) native;
1861 1862
1862 @DomName('WebGLRenderingContext.uniform4fv') 1863 @DomName('WebGLRenderingContext.uniform4fv')
1863 @DocsEditable 1864 @DocsEditable
1864 void uniform4fv(UniformLocation location, Float32Array v) native; 1865 void uniform4fv(UniformLocation location, Float32List v) native;
1865 1866
1866 @DomName('WebGLRenderingContext.uniform4i') 1867 @DomName('WebGLRenderingContext.uniform4i')
1867 @DocsEditable 1868 @DocsEditable
1868 void uniform4i(UniformLocation location, int x, int y, int z, int w) native; 1869 void uniform4i(UniformLocation location, int x, int y, int z, int w) native;
1869 1870
1870 @DomName('WebGLRenderingContext.uniform4iv') 1871 @DomName('WebGLRenderingContext.uniform4iv')
1871 @DocsEditable 1872 @DocsEditable
1872 void uniform4iv(UniformLocation location, Int32Array v) native; 1873 void uniform4iv(UniformLocation location, Int32List v) native;
1873 1874
1874 @DomName('WebGLRenderingContext.uniformMatrix2fv') 1875 @DomName('WebGLRenderingContext.uniformMatrix2fv')
1875 @DocsEditable 1876 @DocsEditable
1876 void uniformMatrix2fv(UniformLocation location, bool transpose, Float32Array a rray) native; 1877 void uniformMatrix2fv(UniformLocation location, bool transpose, Float32List ar ray) native;
1877 1878
1878 @DomName('WebGLRenderingContext.uniformMatrix3fv') 1879 @DomName('WebGLRenderingContext.uniformMatrix3fv')
1879 @DocsEditable 1880 @DocsEditable
1880 void uniformMatrix3fv(UniformLocation location, bool transpose, Float32Array a rray) native; 1881 void uniformMatrix3fv(UniformLocation location, bool transpose, Float32List ar ray) native;
1881 1882
1882 @DomName('WebGLRenderingContext.uniformMatrix4fv') 1883 @DomName('WebGLRenderingContext.uniformMatrix4fv')
1883 @DocsEditable 1884 @DocsEditable
1884 void uniformMatrix4fv(UniformLocation location, bool transpose, Float32Array a rray) native; 1885 void uniformMatrix4fv(UniformLocation location, bool transpose, Float32List ar ray) native;
1885 1886
1886 @DomName('WebGLRenderingContext.useProgram') 1887 @DomName('WebGLRenderingContext.useProgram')
1887 @DocsEditable 1888 @DocsEditable
1888 void useProgram(Program program) native; 1889 void useProgram(Program program) native;
1889 1890
1890 @DomName('WebGLRenderingContext.validateProgram') 1891 @DomName('WebGLRenderingContext.validateProgram')
1891 @DocsEditable 1892 @DocsEditable
1892 void validateProgram(Program program) native; 1893 void validateProgram(Program program) native;
1893 1894
1894 @DomName('WebGLRenderingContext.vertexAttrib1f') 1895 @DomName('WebGLRenderingContext.vertexAttrib1f')
1895 @DocsEditable 1896 @DocsEditable
1896 void vertexAttrib1f(int indx, num x) native; 1897 void vertexAttrib1f(int indx, num x) native;
1897 1898
1898 @DomName('WebGLRenderingContext.vertexAttrib1fv') 1899 @DomName('WebGLRenderingContext.vertexAttrib1fv')
1899 @DocsEditable 1900 @DocsEditable
1900 void vertexAttrib1fv(int indx, Float32Array values) native; 1901 void vertexAttrib1fv(int indx, Float32List values) native;
1901 1902
1902 @DomName('WebGLRenderingContext.vertexAttrib2f') 1903 @DomName('WebGLRenderingContext.vertexAttrib2f')
1903 @DocsEditable 1904 @DocsEditable
1904 void vertexAttrib2f(int indx, num x, num y) native; 1905 void vertexAttrib2f(int indx, num x, num y) native;
1905 1906
1906 @DomName('WebGLRenderingContext.vertexAttrib2fv') 1907 @DomName('WebGLRenderingContext.vertexAttrib2fv')
1907 @DocsEditable 1908 @DocsEditable
1908 void vertexAttrib2fv(int indx, Float32Array values) native; 1909 void vertexAttrib2fv(int indx, Float32List values) native;
1909 1910
1910 @DomName('WebGLRenderingContext.vertexAttrib3f') 1911 @DomName('WebGLRenderingContext.vertexAttrib3f')
1911 @DocsEditable 1912 @DocsEditable
1912 void vertexAttrib3f(int indx, num x, num y, num z) native; 1913 void vertexAttrib3f(int indx, num x, num y, num z) native;
1913 1914
1914 @DomName('WebGLRenderingContext.vertexAttrib3fv') 1915 @DomName('WebGLRenderingContext.vertexAttrib3fv')
1915 @DocsEditable 1916 @DocsEditable
1916 void vertexAttrib3fv(int indx, Float32Array values) native; 1917 void vertexAttrib3fv(int indx, Float32List values) native;
1917 1918
1918 @DomName('WebGLRenderingContext.vertexAttrib4f') 1919 @DomName('WebGLRenderingContext.vertexAttrib4f')
1919 @DocsEditable 1920 @DocsEditable
1920 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; 1921 void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
1921 1922
1922 @DomName('WebGLRenderingContext.vertexAttrib4fv') 1923 @DomName('WebGLRenderingContext.vertexAttrib4fv')
1923 @DocsEditable 1924 @DocsEditable
1924 void vertexAttrib4fv(int indx, Float32Array values) native; 1925 void vertexAttrib4fv(int indx, Float32List values) native;
1925 1926
1926 @DomName('WebGLRenderingContext.vertexAttribPointer') 1927 @DomName('WebGLRenderingContext.vertexAttribPointer')
1927 @DocsEditable 1928 @DocsEditable
1928 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native; 1929 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native;
1929 1930
1930 @DomName('WebGLRenderingContext.viewport') 1931 @DomName('WebGLRenderingContext.viewport')
1931 @DocsEditable 1932 @DocsEditable
1932 void viewport(int x, int y, int width, int height) native; 1933 void viewport(int x, int y, int width, int height) native;
1933 } 1934 }
1934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 } 1982 }
1982 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1983 // for details. All rights reserved. Use of this source code is governed by a 1984 // for details. All rights reserved. Use of this source code is governed by a
1984 // BSD-style license that can be found in the LICENSE file. 1985 // BSD-style license that can be found in the LICENSE file.
1985 1986
1986 1987
1987 @DocsEditable 1988 @DocsEditable
1988 @DomName('WebGLVertexArrayObjectOES') 1989 @DomName('WebGLVertexArrayObjectOES')
1989 class VertexArrayObject native "*WebGLVertexArrayObjectOES" { 1990 class VertexArrayObject native "*WebGLVertexArrayObjectOES" {
1990 } 1991 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698