Index: third_party/WebKit/Source/wtf/Float32Array.h |
diff --git a/third_party/WebKit/Source/wtf/Float32Array.h b/third_party/WebKit/Source/wtf/Float32Array.h |
index 25bec0542bd22e0fb23e2aabdee292ebe0cfec50..ea1aa5a79d9e7d3c3786d93292837b6ef1b08e6b 100644 |
--- a/third_party/WebKit/Source/wtf/Float32Array.h |
+++ b/third_party/WebKit/Source/wtf/Float32Array.h |
@@ -34,10 +34,9 @@ namespace WTF { |
class Float32Array final : public TypedArrayBase<float> { |
public: |
- static inline PassRefPtr<Float32Array> create(unsigned length); |
- static inline PassRefPtr<Float32Array> create(const float* array, unsigned length); |
static inline PassRefPtr<Float32Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); |
- |
+ static inline PassRefPtr<Float32Array> createOrNull(const float* array, unsigned length); |
+ static inline PassRefPtr<Float32Array> deprecatedCreateOrCrash(const float* array, unsigned length); // Prefer createOrNull |
static inline PassRefPtr<Float32Array> createOrNull(unsigned length); |
using TypedArrayBase<float>::set; |
@@ -60,24 +59,24 @@ private: |
friend class TypedArrayBase<float>; |
}; |
-PassRefPtr<Float32Array> Float32Array::create(unsigned length) |
+PassRefPtr<Float32Array> Float32Array::createOrNull(unsigned length) |
{ |
- return TypedArrayBase<float>::create<Float32Array>(length); |
+ return TypedArrayBase<float>::createOrNull<Float32Array>(length); |
} |
-PassRefPtr<Float32Array> Float32Array::create(const float* array, unsigned length) |
+PassRefPtr<Float32Array> Float32Array::createOrNull(const float* array, unsigned length) |
{ |
- return TypedArrayBase<float>::create<Float32Array>(array, length); |
+ return TypedArrayBase<float>::createOrNull<Float32Array>(array, length); |
} |
-PassRefPtr<Float32Array> Float32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) |
+PassRefPtr<Float32Array> Float32Array::deprecatedCreateOrCrash(const float* array, unsigned length) |
{ |
- return TypedArrayBase<float>::create<Float32Array>(buffer, byteOffset, length); |
+ return TypedArrayBase<float>::deprecatedCreateOrCrash<Float32Array>(array, length); |
} |
-PassRefPtr<Float32Array> Float32Array::createOrNull(unsigned length) |
+PassRefPtr<Float32Array> Float32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) |
{ |
- return TypedArrayBase<float>::createOrNull<Float32Array>(length); |
+ return TypedArrayBase<float>::create<Float32Array>(buffer, byteOffset, length); |
} |
Float32Array::Float32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) |