Index: runtime/vm/object.h |
=================================================================== |
--- runtime/vm/object.h (revision 15794) |
+++ runtime/vm/object.h (working copy) |
@@ -4669,6 +4669,20 @@ |
}; |
+class Uint8ClampedArray : public Uint8Array { |
+ public: |
+ static RawUint8ClampedArray* New(intptr_t len, |
+ Heap::Space space = Heap::kNew); |
+ static RawUint8ClampedArray* New(const uint8_t* data, |
+ intptr_t len, |
+ Heap::Space space = Heap::kNew); |
+ |
+ private: |
+ HEAP_OBJECT_IMPLEMENTATION(Uint8ClampedArray, Uint8Array); |
+ friend class Class; |
+}; |
+ |
+ |
class Int16Array : public ByteArray { |
public: |
intptr_t ByteLength() const { |
@@ -5206,6 +5220,20 @@ |
}; |
+class ExternalUint8ClampedArray : public ExternalUint8Array { |
+ public: |
+ static RawExternalUint8ClampedArray* New(uint8_t* data, |
+ intptr_t len, |
+ void* peer, |
+ Dart_PeerFinalizer callback, |
+ Heap::Space space = Heap::kNew); |
+ |
+ private: |
+ HEAP_OBJECT_IMPLEMENTATION(ExternalUint8ClampedArray, ExternalUint8Array); |
+ friend class Class; |
+}; |
+ |
+ |
class ExternalInt16Array : public ByteArray { |
public: |
intptr_t ByteLength() const { |