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

Unified Diff: runtime/lib/byte_array.cc

Issue 11881031: Add Dart class for _ExternalUint8ClampedArray and API to allocate it. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: runtime/lib/byte_array.cc
===================================================================
--- runtime/lib/byte_array.cc (revision 17039)
+++ runtime/lib/byte_array.cc (working copy)
@@ -674,6 +674,18 @@
}
+// ExternalUint8ClampedArray
+
+DEFINE_NATIVE_ENTRY(ExternalUint8ClampedArray_getIndexed, 2) {
+ UNALIGNED_GETTER(ExternalUint8ClampedArray, Smi, uint8_t);
+}
+
+
+DEFINE_NATIVE_ENTRY(ExternalUint8ClampedArray_setIndexed, 3) {
+ UNALIGNED_SETTER(ExternalUint8ClampedArray, Smi, Value, uint8_t);
+}
+
+
// ExternalInt16Array
DEFINE_NATIVE_ENTRY(ExternalInt16Array_getIndexed, 2) {

Powered by Google App Engine
This is Rietveld 408576698