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

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

Issue 2384073002: reflow comments in platform/audio (Closed)
Patch Set: comments (heh!) 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/audio/AudioBus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fa2dae49d3afd9a450a80a1cbbf84c6c29699cb8 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.
+ // always allocate extra after the first alignment failure.
+ extraAllocationBytes = alignment;
WTF::Partitions::fastFree(allocation);
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/audio/AudioBus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698