Chromium Code Reviews| 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); |
| } |
| } |