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

Unified Diff: third_party/WebKit/Source/platform/audio/StereoPanner.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/StereoPanner.cpp
diff --git a/third_party/WebKit/Source/platform/audio/StereoPanner.cpp b/third_party/WebKit/Source/platform/audio/StereoPanner.cpp
index 4a733c59ac3247e3dd686d6b25cf8286dd063d42..4700a0ba99b5193bfd983dbfc2fbda6eb4f820e0 100644
--- a/third_party/WebKit/Source/platform/audio/StereoPanner.cpp
+++ b/third_party/WebKit/Source/platform/audio/StereoPanner.cpp
@@ -31,8 +31,9 @@ void StereoPanner::panWithSampleAccurateValues(const AudioBus* inputBus,
AudioBus* outputBus,
const float* panValues,
size_t framesToProcess) {
- 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)
@@ -96,8 +97,9 @@ void StereoPanner::panToTargetValue(const AudioBus* inputBus,
AudioBus* outputBus,
float panValue,
size_t framesToProcess) {
- 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)

Powered by Google App Engine
This is Rietveld 408576698