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

Unified Diff: third_party/WebKit/Source/wtf/Float32Array.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/FilePrintStream.cpp ('k') | third_party/WebKit/Source/wtf/Float64Array.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8411b82fa5391cb421b5be21bd5343b2ea8a8bcb 100644
--- a/third_party/WebKit/Source/wtf/Float32Array.h
+++ b/third_party/WebKit/Source/wtf/Float32Array.h
@@ -33,60 +33,61 @@
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(unsigned length);
-
- using TypedArrayBase<float>::set;
-
- void set(unsigned index, double value)
- {
- if (index >= TypedArrayBase<float>::m_length)
- return;
- TypedArrayBase<float>::data()[index] = static_cast<float>(value);
- }
-
- ViewType type() const override
- {
- return TypeFloat32;
- }
-
-private:
- inline Float32Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
- // Make constructor visible to superclass.
- friend class 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(unsigned length);
+
+ using TypedArrayBase<float>::set;
+
+ void set(unsigned index, double value) {
+ if (index >= TypedArrayBase<float>::m_length)
+ return;
+ TypedArrayBase<float>::data()[index] = static_cast<float>(value);
+ }
+
+ ViewType type() const override { return TypeFloat32; }
+
+ private:
+ inline Float32Array(PassRefPtr<ArrayBuffer>,
+ unsigned byteOffset,
+ unsigned length);
+ // Make constructor visible to superclass.
+ friend class TypedArrayBase<float>;
};
-PassRefPtr<Float32Array> Float32Array::create(unsigned length)
-{
- return TypedArrayBase<float>::create<Float32Array>(length);
+PassRefPtr<Float32Array> Float32Array::create(unsigned length) {
+ return TypedArrayBase<float>::create<Float32Array>(length);
}
-PassRefPtr<Float32Array> Float32Array::create(const float* array, unsigned length)
-{
- return TypedArrayBase<float>::create<Float32Array>(array, length);
+PassRefPtr<Float32Array> Float32Array::create(const float* array,
+ unsigned length) {
+ return TypedArrayBase<float>::create<Float32Array>(array, length);
}
-PassRefPtr<Float32Array> Float32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-{
- return TypedArrayBase<float>::create<Float32Array>(buffer, byteOffset, length);
+PassRefPtr<Float32Array> Float32Array::create(PassRefPtr<ArrayBuffer> buffer,
+ unsigned byteOffset,
+ unsigned length) {
+ return TypedArrayBase<float>::create<Float32Array>(buffer, byteOffset,
+ length);
}
-PassRefPtr<Float32Array> Float32Array::createOrNull(unsigned length)
-{
- return TypedArrayBase<float>::createOrNull<Float32Array>(length);
+PassRefPtr<Float32Array> Float32Array::createOrNull(unsigned length) {
+ return TypedArrayBase<float>::createOrNull<Float32Array>(length);
}
-Float32Array::Float32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
- : TypedArrayBase<float>(buffer, byteOffset, length)
-{
-}
+Float32Array::Float32Array(PassRefPtr<ArrayBuffer> buffer,
+ unsigned byteOffset,
+ unsigned length)
+ : TypedArrayBase<float>(buffer, byteOffset, length) {}
-} // namespace WTF
+} // namespace WTF
using WTF::Float32Array;
-#endif // Float32Array_h
+#endif // Float32Array_h
« no previous file with comments | « third_party/WebKit/Source/wtf/FilePrintStream.cpp ('k') | third_party/WebKit/Source/wtf/Float64Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698