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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioArray.h

Issue 2384073002: reflow comments in platform/audio (Closed)
Patch Set: Created 4 years, 2 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: third_party/WebKit/Source/platform/audio/AudioArray.h
diff --git a/third_party/WebKit/Source/platform/audio/AudioArray.h b/third_party/WebKit/Source/platform/audio/AudioArray.h
index 079ca6690ab8064ab598f6f116f83886a0f2a57f..ec8ace54f8d0bc7511918332af664666e90864e8 100644
--- a/third_party/WebKit/Source/platform/audio/AudioArray.h
+++ b/third_party/WebKit/Source/platform/audio/AudioArray.h
@@ -51,11 +51,13 @@ class AudioArray {
~AudioArray() { WTF::Partitions::fastFree(m_allocation); }
- // It's OK to call allocate() multiple times, but data will *not* be copied from an initial allocation
- // if re-allocated. Allocations are zero-initialized.
+ // It's OK to call allocate() multiple times, but data will *not* be copied
+ // from an initial allocation if re-allocated. Allocations are
+ // zero-initialized.
void allocate(size_t n) {
- // Although n is a size_t, its true limit is max unsigned because we use unsigned in zeroRange()
- // and copyToRange(). Also check for integer overflow.
+ // Although n is a size_t, its true limit is max unsigned because we use
+ // unsigned in zeroRange() and copyToRange(). Also check for integer
+ // overflow.
RELEASE_ASSERT(n <= std::numeric_limits<unsigned>::max() / sizeof(T));
unsigned initialSize = sizeof(T) * n;
@@ -93,8 +95,8 @@ class AudioArray {
isAllocationGood = true;
zero();
} else {
- extraAllocationBytes =
- alignment; // always allocate extra after the first alignment failure.
+ extraAllocationBytes = alignment; // always allocate extra after the
+ // first alignment failure.
dcheng 2016/10/03 01:21:04 Nit: just move this comment to the previous line
Nico 2016/10/03 02:15:23 Done.
WTF::Partitions::fastFree(allocation);
}
}

Powered by Google App Engine
This is Rietveld 408576698