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

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

Issue 16336022: Fixing a number of Dart2JS compiler warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « sdk/lib/html/html_common/conversions.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:typed_data'; 7 import 'dart:typed_data';
8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure ToJS; 8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure ToJS;
9 import 'dart:_foreign_helper' show JS; 9 import 'dart:_foreign_helper' show JS;
10 import 'dart:_interceptors' show Interceptor; 10 import 'dart:_interceptors' show Interceptor;
(...skipping 2447 matching lines...) Expand 10 before | Expand all | Expand 10 after
2458 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; 2458 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
2459 2459
2460 @DomName('WebGLRenderingContext.texImage2D') 2460 @DomName('WebGLRenderingContext.texImage2D')
2461 @DocsEditable 2461 @DocsEditable
2462 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]) { 2462 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]) {
2463 if (pixels != null && type != null && format != null && (border_OR_canvas_OR _image_OR_pixels_OR_video is int || border_OR_canvas_OR_image_OR_pixels_OR_video == null)) { 2463 if (pixels != null && type != null && format != null && (border_OR_canvas_OR _image_OR_pixels_OR_video is int || border_OR_canvas_OR_image_OR_pixels_OR_video == null)) {
2464 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); 2464 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
2465 return; 2465 return;
2466 } 2466 }
2467 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null && pixels == null) { 2467 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null && pixels == null) {
2468 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR _pixels_OR_video); 2468 var pixels_1 = convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_ pixels_OR_video);
2469 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, pixels_1); 2469 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, pixels_1);
2470 return; 2470 return;
2471 } 2471 }
2472 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null && pixels == null) { 2472 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null && pixels == null) {
2473 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 2473 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2474 return; 2474 return;
2475 } 2475 }
2476 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border _OR_canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == nul l && pixels == null) { 2476 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border _OR_canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == nul l && pixels == null) {
2477 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 2477 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2478 return; 2478 return;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2513 void texParameteri(int target, int pname, int param) native; 2513 void texParameteri(int target, int pname, int param) native;
2514 2514
2515 @DomName('WebGLRenderingContext.texSubImage2D') 2515 @DomName('WebGLRenderingContext.texSubImage2D')
2516 @DocsEditable 2516 @DocsEditable
2517 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]) { 2517 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]) {
2518 if (pixels != null && type != null && (canvas_OR_format_OR_image_OR_pixels_O R_video is int || canvas_OR_format_OR_image_OR_pixels_OR_video == null)) { 2518 if (pixels != null && type != null && (canvas_OR_format_OR_image_OR_pixels_O R_video is int || canvas_OR_format_OR_image_OR_pixels_OR_video == null)) {
2519 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); 2519 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
2520 return; 2520 return;
2521 } 2521 }
2522 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null) { 2522 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null) {
2523 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR _pixels_OR_video); 2523 var pixels_1 = convertDartToNative_ImageData(canvas_OR_format_OR_image_OR_ pixels_OR_video);
2524 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1); 2524 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1);
2525 return; 2525 return;
2526 } 2526 }
2527 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null ) { 2527 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null ) {
2528 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 2528 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2529 return; 2529 return;
2530 } 2530 }
2531 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas _OR_format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == nul l) { 2531 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas _OR_format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == nul l) {
2532 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 2532 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2533 return; 2533 return;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2735 // for details. All rights reserved. Use of this source code is governed by a 2735 // for details. All rights reserved. Use of this source code is governed by a
2736 // BSD-style license that can be found in the LICENSE file. 2736 // BSD-style license that can be found in the LICENSE file.
2737 2737
2738 2738
2739 @DocsEditable 2739 @DocsEditable
2740 @DomName('WebGLVertexArrayObjectOES') 2740 @DomName('WebGLVertexArrayObjectOES')
2741 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 2741 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
2742 @Experimental // experimental 2742 @Experimental // experimental
2743 class VertexArrayObject native "WebGLVertexArrayObjectOES" { 2743 class VertexArrayObject native "WebGLVertexArrayObjectOES" {
2744 } 2744 }
OLDNEW
« no previous file with comments | « sdk/lib/html/html_common/conversions.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698