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

Unified Diff: third_party/WebKit/Source/wtf/Float64Array.h

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 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
« no previous file with comments | « third_party/WebKit/Source/wtf/Float32Array.h ('k') | third_party/WebKit/Source/wtf/Forward.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Float64Array.h
diff --git a/third_party/WebKit/Source/wtf/Float64Array.h b/third_party/WebKit/Source/wtf/Float64Array.h
index 14be7a2861bec64ee795e28ef33312911eb7a441..b3974e4d20f38305f02f25feb8993cd18970ea0a 100644
--- a/third_party/WebKit/Source/wtf/Float64Array.h
+++ b/third_party/WebKit/Source/wtf/Float64Array.h
@@ -33,57 +33,59 @@
namespace WTF {
class Float64Array final : public TypedArrayBase<double> {
-public:
- static inline PassRefPtr<Float64Array> create(unsigned length);
- static inline PassRefPtr<Float64Array> create(const double* array, unsigned length);
- static inline PassRefPtr<Float64Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
-
- // Should only be used when it is known the entire array will be filled. Do
- // not return these results directly to JavaScript without filling first.
- static inline PassRefPtr<Float64Array> createUninitialized(unsigned length);
-
- using TypedArrayBase<double>::set;
-
- void set(unsigned index, double value)
- {
- if (index >= TypedArrayBase<double>::m_length)
- return;
- TypedArrayBase<double>::data()[index] = static_cast<double>(value);
- }
-
- ViewType type() const override
- {
- return TypeFloat64;
- }
-
-private:
- inline Float64Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
- // Make constructor visible to superclass.
- friend class TypedArrayBase<double>;
+ public:
+ static inline PassRefPtr<Float64Array> create(unsigned length);
+ static inline PassRefPtr<Float64Array> create(const double* array,
+ unsigned length);
+ static inline PassRefPtr<Float64Array> create(PassRefPtr<ArrayBuffer>,
+ unsigned byteOffset,
+ unsigned length);
+
+ // Should only be used when it is known the entire array will be filled. Do
+ // not return these results directly to JavaScript without filling first.
+ static inline PassRefPtr<Float64Array> createUninitialized(unsigned length);
+
+ using TypedArrayBase<double>::set;
+
+ void set(unsigned index, double value) {
+ if (index >= TypedArrayBase<double>::m_length)
+ return;
+ TypedArrayBase<double>::data()[index] = static_cast<double>(value);
+ }
+
+ ViewType type() const override { return TypeFloat64; }
+
+ private:
+ inline Float64Array(PassRefPtr<ArrayBuffer>,
+ unsigned byteOffset,
+ unsigned length);
+ // Make constructor visible to superclass.
+ friend class TypedArrayBase<double>;
};
-PassRefPtr<Float64Array> Float64Array::create(unsigned length)
-{
- return TypedArrayBase<double>::create<Float64Array>(length);
+PassRefPtr<Float64Array> Float64Array::create(unsigned length) {
+ return TypedArrayBase<double>::create<Float64Array>(length);
}
-PassRefPtr<Float64Array> Float64Array::create(const double* array, unsigned length)
-{
- return TypedArrayBase<double>::create<Float64Array>(array, length);
+PassRefPtr<Float64Array> Float64Array::create(const double* array,
+ unsigned length) {
+ return TypedArrayBase<double>::create<Float64Array>(array, length);
}
-PassRefPtr<Float64Array> Float64Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-{
- return TypedArrayBase<double>::create<Float64Array>(buffer, byteOffset, length);
+PassRefPtr<Float64Array> Float64Array::create(PassRefPtr<ArrayBuffer> buffer,
+ unsigned byteOffset,
+ unsigned length) {
+ return TypedArrayBase<double>::create<Float64Array>(buffer, byteOffset,
+ length);
}
-Float64Array::Float64Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
- : TypedArrayBase<double>(buffer, byteOffset, length)
-{
-}
+Float64Array::Float64Array(PassRefPtr<ArrayBuffer> buffer,
+ unsigned byteOffset,
+ unsigned length)
+ : TypedArrayBase<double>(buffer, byteOffset, length) {}
-} // namespace WTF
+} // namespace WTF
using WTF::Float64Array;
-#endif // Float64Array_h
+#endif // Float64Array_h
« no previous file with comments | « third_party/WebKit/Source/wtf/Float32Array.h ('k') | third_party/WebKit/Source/wtf/Forward.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698