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

Side by Side Diff: sdk/lib/web_gl/dartium/web_gl_dartium.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:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:_collection-dev'; 5 import 'dart:_collection-dev';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:nativewrappers'; 8 import 'dart:nativewrappers';
9 import 'dart:typeddata' as _typeddata; 9 import 'dart:typeddata' as _typeddata;
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_1_Callback"; 1471 void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_1_Callback";
1472 1472
1473 @DomName('WebGLRenderingContext._bufferData_2') 1473 @DomName('WebGLRenderingContext._bufferData_2')
1474 @DocsEditable 1474 @DocsEditable
1475 void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_2_Callback"; 1475 void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_2_Callback";
1476 1476
1477 @DomName('WebGLRenderingContext._bufferData_3') 1477 @DomName('WebGLRenderingContext._bufferData_3')
1478 @DocsEditable 1478 @DocsEditable
1479 void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_3_Callback"; 1479 void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_3_Callback";
1480 1480
1481 void bufferSubData(int target, int offset, /*ArrayBuffer*/ data) { 1481 void bufferSubData(int target, int offset, data) {
1482 if ((target is int || target == null) && (offset is int || offset == null) & & (data is ArrayBufferView || data is _typeddata.TypedData || data == null)) { 1482 if ((target is int || target == null) && (offset is int || offset == null) & & (data is ArrayBufferView || data is _typeddata.TypedData || data == null)) {
1483 _bufferSubData_1(target, offset, data); 1483 _bufferSubData_1(target, offset, data);
1484 return; 1484 return;
1485 } 1485 }
1486 if ((target is int || target == null) && (offset is int || offset == null) & & (data is ArrayBuffer || data is _typeddata.ByteBuffer || data == null)) { 1486 if ((target is int || target == null) && (offset is int || offset == null) & & (data is ArrayBuffer || data is _typeddata.ByteBuffer || data == null)) {
1487 _bufferSubData_2(target, offset, data); 1487 _bufferSubData_2(target, offset, data);
1488 return; 1488 return;
1489 } 1489 }
1490 throw new ArgumentError("Incorrect number or type of arguments"); 1490 throw new ArgumentError("Incorrect number or type of arguments");
1491 } 1491 }
(...skipping 29 matching lines...) Expand all
1521 @DomName('WebGLRenderingContext.colorMask') 1521 @DomName('WebGLRenderingContext.colorMask')
1522 @DocsEditable 1522 @DocsEditable
1523 void colorMask(bool red, bool green, bool blue, bool alpha) native "WebGLRende ringContext_colorMask_Callback"; 1523 void colorMask(bool red, bool green, bool blue, bool alpha) native "WebGLRende ringContext_colorMask_Callback";
1524 1524
1525 @DomName('WebGLRenderingContext.compileShader') 1525 @DomName('WebGLRenderingContext.compileShader')
1526 @DocsEditable 1526 @DocsEditable
1527 void compileShader(Shader shader) native "WebGLRenderingContext_compileShader_ Callback"; 1527 void compileShader(Shader shader) native "WebGLRenderingContext_compileShader_ Callback";
1528 1528
1529 @DomName('WebGLRenderingContext.compressedTexImage2D') 1529 @DomName('WebGLRenderingContext.compressedTexImage2D')
1530 @DocsEditable 1530 @DocsEditable
1531 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, /*ArrayBufferView*/ data) native "WebGLRenderingContex t_compressedTexImage2D_Callback"; 1531 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, TypedData data) native "WebGLRenderingContext_compress edTexImage2D_Callback";
1532 1532
1533 @DomName('WebGLRenderingContext.compressedTexSubImage2D') 1533 @DomName('WebGLRenderingContext.compressedTexSubImage2D')
1534 @DocsEditable 1534 @DocsEditable
1535 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, /*ArrayBufferView*/ data) native "WebGLRender ingContext_compressedTexSubImage2D_Callback"; 1535 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, TypedData data) native "WebGLRenderingContext _compressedTexSubImage2D_Callback";
1536 1536
1537 @DomName('WebGLRenderingContext.copyTexImage2D') 1537 @DomName('WebGLRenderingContext.copyTexImage2D')
1538 @DocsEditable 1538 @DocsEditable
1539 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native "WebGLRenderingContext_copyTexImage2D_C allback"; 1539 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native "WebGLRenderingContext_copyTexImage2D_C allback";
1540 1540
1541 @DomName('WebGLRenderingContext.copyTexSubImage2D') 1541 @DomName('WebGLRenderingContext.copyTexSubImage2D')
1542 @DocsEditable 1542 @DocsEditable
1543 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native "WebGLRenderingContext_copyTexSubImage2D_C allback"; 1543 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native "WebGLRenderingContext_copyTexSubImage2D_C allback";
1544 1544
1545 @DomName('WebGLRenderingContext.createBuffer') 1545 @DomName('WebGLRenderingContext.createBuffer')
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 @DomName('WebGLRenderingContext.pixelStorei') 1797 @DomName('WebGLRenderingContext.pixelStorei')
1798 @DocsEditable 1798 @DocsEditable
1799 void pixelStorei(int pname, int param) native "WebGLRenderingContext_pixelStor ei_Callback"; 1799 void pixelStorei(int pname, int param) native "WebGLRenderingContext_pixelStor ei_Callback";
1800 1800
1801 @DomName('WebGLRenderingContext.polygonOffset') 1801 @DomName('WebGLRenderingContext.polygonOffset')
1802 @DocsEditable 1802 @DocsEditable
1803 void polygonOffset(num factor, num units) native "WebGLRenderingContext_polygo nOffset_Callback"; 1803 void polygonOffset(num factor, num units) native "WebGLRenderingContext_polygo nOffset_Callback";
1804 1804
1805 @DomName('WebGLRenderingContext.readPixels') 1805 @DomName('WebGLRenderingContext.readPixels')
1806 @DocsEditable 1806 @DocsEditable
1807 void readPixels(int x, int y, int width, int height, int format, int type, /*A rrayBufferView*/ pixels) native "WebGLRenderingContext_readPixels_Callback"; 1807 void readPixels(int x, int y, int width, int height, int format, int type, Typ edData pixels) native "WebGLRenderingContext_readPixels_Callback";
1808 1808
1809 @DomName('WebGLRenderingContext.releaseShaderCompiler') 1809 @DomName('WebGLRenderingContext.releaseShaderCompiler')
1810 @DocsEditable 1810 @DocsEditable
1811 void releaseShaderCompiler() native "WebGLRenderingContext_releaseShaderCompil er_Callback"; 1811 void releaseShaderCompiler() native "WebGLRenderingContext_releaseShaderCompil er_Callback";
1812 1812
1813 @DomName('WebGLRenderingContext.renderbufferStorage') 1813 @DomName('WebGLRenderingContext.renderbufferStorage')
1814 @DocsEditable 1814 @DocsEditable
1815 void renderbufferStorage(int target, int internalformat, int width, int height ) native "WebGLRenderingContext_renderbufferStorage_Callback"; 1815 void renderbufferStorage(int target, int internalformat, int width, int height ) native "WebGLRenderingContext_renderbufferStorage_Callback";
1816 1816
1817 @DomName('WebGLRenderingContext.sampleCoverage') 1817 @DomName('WebGLRenderingContext.sampleCoverage')
(...skipping 25 matching lines...) Expand all
1843 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste ncilMaskSeparate_Callback"; 1843 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste ncilMaskSeparate_Callback";
1844 1844
1845 @DomName('WebGLRenderingContext.stencilOp') 1845 @DomName('WebGLRenderingContext.stencilOp')
1846 @DocsEditable 1846 @DocsEditable
1847 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s tencilOp_Callback"; 1847 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s tencilOp_Callback";
1848 1848
1849 @DomName('WebGLRenderingContext.stencilOpSeparate') 1849 @DomName('WebGLRenderingContext.stencilOpSeparate')
1850 @DocsEditable 1850 @DocsEditable
1851 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL RenderingContext_stencilOpSeparate_Callback"; 1851 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL RenderingContext_stencilOpSeparate_Callback";
1852 1852
1853 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]) { 1853 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]) {
1854 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas_OR_ima ge_OR_pixels_OR_video == null) && (format is int || format == null) && (type is int || type == null) && (pixels is ArrayBufferView || pixels is _typeddata.Typed Data || pixels == null)) { 1854 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas_OR_ima ge_OR_pixels_OR_video == null) && (format is int || format == null) && (type is int || type == null) && (pixels is ArrayBufferView || pixels is _typeddata.Typed Data || pixels == null)) {
1855 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); 1855 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
1856 return; 1856 return;
1857 } 1857 }
1858 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_canvas_ OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) { 1858 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_canvas_ OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
1859 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 1859 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1860 return; 1860 return;
1861 } 1861 }
1862 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_OR_canv as_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) { 1862 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_OR_canv as_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
1863 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 1863 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 void _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_5_Callback"; 1895 void _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_5_Callback";
1896 1896
1897 @DomName('WebGLRenderingContext.texParameterf') 1897 @DomName('WebGLRenderingContext.texParameterf')
1898 @DocsEditable 1898 @DocsEditable
1899 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon text_texParameterf_Callback"; 1899 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon text_texParameterf_Callback";
1900 1900
1901 @DomName('WebGLRenderingContext.texParameteri') 1901 @DomName('WebGLRenderingContext.texParameteri')
1902 @DocsEditable 1902 @DocsEditable
1903 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon text_texParameteri_Callback"; 1903 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon text_texParameteri_Callback";
1904 1904
1905 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]) { 1905 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]) {
1906 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is int | | canvas_OR_format_OR_image_OR_pixels_OR_video == null) && (type is int || type == null) && (pixels is ArrayBufferView || pixels is _typeddata.TypedData || pixe ls == null)) { 1906 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is int | | canvas_OR_format_OR_image_OR_pixels_OR_video == null) && (type is int || type == null) && (pixels is ArrayBufferView || pixels is _typeddata.TypedData || pixe ls == null)) {
1907 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); 1907 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
1908 return; 1908 return;
1909 } 1909 }
1910 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is Image Data || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pix els) { 1910 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is Image Data || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pix els) {
1911 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 1911 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1912 return; 1912 return;
1913 } 1913 }
1914 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is Image Element || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !? pixels) { 1914 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is Image Element || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !? pixels) {
1915 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 1915 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
2141 2141
2142 // WARNING: Do not edit - generated code. 2142 // WARNING: Do not edit - generated code.
2143 2143
2144 2144
2145 @DocsEditable 2145 @DocsEditable
2146 @DomName('WebGLVertexArrayObjectOES') 2146 @DomName('WebGLVertexArrayObjectOES')
2147 class VertexArrayObject extends NativeFieldWrapperClass1 { 2147 class VertexArrayObject extends NativeFieldWrapperClass1 {
2148 VertexArrayObject.internal(); 2148 VertexArrayObject.internal();
2149 2149
2150 } 2150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698