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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioResamplerKernel.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/AudioResamplerKernel.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioResamplerKernel.cpp b/third_party/WebKit/Source/platform/audio/AudioResamplerKernel.cpp
index b400b1cbb4fa5c534340653bd0a68b093019c6f4..1225e5cb72753694a00155ca16f919a344d23ac1 100644
--- a/third_party/WebKit/Source/platform/audio/AudioResamplerKernel.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioResamplerKernel.cpp
@@ -94,8 +94,9 @@ void AudioResamplerKernel::process(float* destination, size_t framesToProcess) {
// Sanity check source buffer access.
ASSERT(framesToProcess > 0);
ASSERT(virtualReadIndex >= 0 &&
- 1 + static_cast<unsigned>(virtualReadIndex +
- (framesToProcess - 1) * rate) <
+ 1 +
+ static_cast<unsigned>(virtualReadIndex +
+ (framesToProcess - 1) * rate) <
m_sourceBuffer.size());
// Do the linear interpolation.

Powered by Google App Engine
This is Rietveld 408576698