| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index 8e75252eb9fbf33163c4a744bd4d0a24d35ae364..bc17e5c1fff1faf54fadace49ad6e3c92b616a23 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -9,6 +9,7 @@ import 'dart:isolate';
|
| import 'dart:json' as json;
|
| import 'dart:math';
|
| import 'dart:nativewrappers';
|
| +import 'dart:typeddata' as _typeddata;
|
| import 'dart:web_sql';
|
| import 'dart:svg' as svg;
|
| import 'dart:web_audio' as web_audio;
|
| @@ -20990,11 +20991,11 @@ class RtcDataChannel extends EventTarget {
|
| void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "RTCDataChannel_removeEventListener_Callback";
|
|
|
| void send(data) {
|
| - if ((data is ArrayBuffer || data == null)) {
|
| + if ((data is ArrayBuffer || data is _typeddata.ByteBuffer || data == null)) {
|
| _send_1(data);
|
| return;
|
| }
|
| - if ((data is ArrayBufferView || data == null)) {
|
| + if ((data is ArrayBufferView || data is _typeddata.TypedData || data == null)) {
|
| _send_2(data);
|
| return;
|
| }
|
| @@ -27294,11 +27295,11 @@ class WebGLRenderingContext extends CanvasRenderingContext {
|
| void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) native "WebGLRenderingContext_blendFuncSeparate_Callback";
|
|
|
| void bufferData(int target, data_OR_size, int usage) {
|
| - if ((target is int || target == null) && (data_OR_size is ArrayBuffer || data_OR_size == null) && (usage is int || usage == null)) {
|
| + if ((target is int || target == null) && (data_OR_size is ArrayBuffer || data_OR_size is _typeddata.ByteBuffer || data_OR_size == null) && (usage is int || usage == null)) {
|
| _bufferData_1(target, data_OR_size, usage);
|
| return;
|
| }
|
| - if ((target is int || target == null) && (data_OR_size is ArrayBufferView || data_OR_size == null) && (usage is int || usage == null)) {
|
| + if ((target is int || target == null) && (data_OR_size is ArrayBufferView || data_OR_size is _typeddata.TypedData || data_OR_size == null) && (usage is int || usage == null)) {
|
| _bufferData_2(target, data_OR_size, usage);
|
| return;
|
| }
|
| @@ -27322,11 +27323,11 @@ class WebGLRenderingContext extends CanvasRenderingContext {
|
| void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext__bufferData_3_Callback";
|
|
|
| void bufferSubData(int target, int offset, data) {
|
| - if ((target is int || target == null) && (offset is int || offset == null) && (data is ArrayBuffer || data == null)) {
|
| + if ((target is int || target == null) && (offset is int || offset == null) && (data is ArrayBuffer || data is _typeddata.ByteBuffer || data == null)) {
|
| _bufferSubData_1(target, offset, data);
|
| return;
|
| }
|
| - if ((target is int || target == null) && (offset is int || offset == null) && (data is ArrayBufferView || data == null)) {
|
| + if ((target is int || target == null) && (offset is int || offset == null) && (data is ArrayBufferView || data is _typeddata.TypedData || data == null)) {
|
| _bufferSubData_2(target, offset, data);
|
| return;
|
| }
|
| @@ -27694,7 +27695,7 @@ class WebGLRenderingContext extends CanvasRenderingContext {
|
| void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGLRenderingContext_stencilOpSeparate_Callback";
|
|
|
| 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]) {
|
| - 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_image_OR_pixels_OR_video == null) && (format is int || format == null) && (type is int || type == null) && (pixels is ArrayBufferView || pixels == null)) {
|
| + 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_image_OR_pixels_OR_video == null) && (format is int || format == null) && (type is int || type == null) && (pixels is ArrayBufferView || pixels is _typeddata.TypedData || pixels == null)) {
|
| _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
|
| return;
|
| }
|
| @@ -27746,7 +27747,7 @@ class WebGLRenderingContext extends CanvasRenderingContext {
|
| void texParameteri(int target, int pname, int param) native "WebGLRenderingContext_texParameteri_Callback";
|
|
|
| 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, [int type, ArrayBufferView pixels]) {
|
| - if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_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 == null)) {
|
| + if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_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 || pixels == null)) {
|
| _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
|
| return;
|
| }
|
|
|