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

Unified Diff: third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp

Issue 2812833003: Revert of [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: Created 3 years, 8 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/modules/webaudio/BiquadFilterNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp b/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
index b48617cbcae4e9b01f575940ba64dd21081a03fa..bb055acf08b994f1e2d9164e58085d5d8c641ae5 100644
--- a/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp
@@ -172,22 +172,18 @@
return true;
}
-void BiquadFilterNode::getFrequencyResponse(
- NotShared<const DOMFloat32Array> frequency_hz,
- NotShared<DOMFloat32Array> mag_response,
- NotShared<DOMFloat32Array> phase_response) {
+void BiquadFilterNode::getFrequencyResponse(const DOMFloat32Array* frequency_hz,
+ DOMFloat32Array* mag_response,
+ DOMFloat32Array* phase_response) {
DCHECK(frequency_hz);
DCHECK(mag_response);
DCHECK(phase_response);
- int n = std::min(
- frequency_hz.View()->length(),
- std::min(mag_response.View()->length(), phase_response.View()->length()));
- if (n) {
- GetBiquadProcessor()->GetFrequencyResponse(n, frequency_hz.View()->Data(),
- mag_response.View()->Data(),
- phase_response.View()->Data());
- }
+ int n = std::min(frequency_hz->length(),
+ std::min(mag_response->length(), phase_response->length()));
+ if (n)
+ GetBiquadProcessor()->GetFrequencyResponse(
+ n, frequency_hz->Data(), mag_response->Data(), phase_response->Data());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698