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

Unified Diff: third_party/WebKit/Source/platform/audio/EqualPowerPanner.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/EqualPowerPanner.cpp
diff --git a/third_party/WebKit/Source/platform/audio/EqualPowerPanner.cpp b/third_party/WebKit/Source/platform/audio/EqualPowerPanner.cpp
index 0e980a1b446c3c56cbe7d39be7d2c026bba382ce..a4a6c3f430c84d2b74caeb88d44556396ca43ca5 100644
--- a/third_party/WebKit/Source/platform/audio/EqualPowerPanner.cpp
+++ b/third_party/WebKit/Source/platform/audio/EqualPowerPanner.cpp
@@ -41,8 +41,9 @@ void EqualPowerPanner::pan(double azimuth,
AudioBus* outputBus,
size_t framesToProcess,
AudioBus::ChannelInterpretation) {
- bool isInputSafe = inputBus && (inputBus->numberOfChannels() == 1 ||
- inputBus->numberOfChannels() == 2) &&
+ bool isInputSafe = inputBus &&
+ (inputBus->numberOfChannels() == 1 ||
+ inputBus->numberOfChannels() == 2) &&
framesToProcess <= inputBus->length();
ASSERT(isInputSafe);
if (!isInputSafe)
@@ -177,8 +178,9 @@ void EqualPowerPanner::panWithSampleAccurateValues(
AudioBus* outputBus,
size_t framesToProcess,
AudioBus::ChannelInterpretation) {
- bool isInputSafe = inputBus && (inputBus->numberOfChannels() == 1 ||
- inputBus->numberOfChannels() == 2) &&
+ bool isInputSafe = inputBus &&
+ (inputBus->numberOfChannels() == 1 ||
+ inputBus->numberOfChannels() == 2) &&
framesToProcess <= inputBus->length();
DCHECK(isInputSafe);
if (!isInputSafe)

Powered by Google App Engine
This is Rietveld 408576698