Index: sdk/lib/js/dartium/js_dartium.dart |
diff --git a/sdk/lib/js/dartium/js_dartium.dart b/sdk/lib/js/dartium/js_dartium.dart |
index 6c7e9a78081d3edc8db9876aacf8f0147b23924c..c5d96e20e2d315b6ce17c474f04f4723edeae87b 100644 |
--- a/sdk/lib/js/dartium/js_dartium.dart |
+++ b/sdk/lib/js/dartium/js_dartium.dart |
@@ -112,6 +112,9 @@ final String _DART_RESERVED_NAME_PREFIX = r'JS$'; |
// library. |
final String escapePrivateClassPrefix = r'$JSImplClass23402893498'; |
+// Exposed to return ArrayBufferView from a TypedArray passed to readPixels. |
+toArrayBufferView(TypedData data) native "Dart_TypedArray_ArrayBufferView"; |
+ |
String _stripReservedNamePrefix(String name) => |
name.startsWith(_DART_RESERVED_NAME_PREFIX) |
? name.substring(_DART_RESERVED_NAME_PREFIX.length) |