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

Unified Diff: third_party/WebKit/Source/modules/webaudio/WaveShaperProcessor.h

Issue 2223613002: WaveShaperNode should copy its curve. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 4 years, 4 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/WaveShaperProcessor.h
diff --git a/third_party/WebKit/Source/modules/webaudio/WaveShaperProcessor.h b/third_party/WebKit/Source/modules/webaudio/WaveShaperProcessor.h
index b6b67087b57647257758751e1441227ecb7fb2e4..024d3373882fa026d38584b9fed45986d3cebcb7 100644
--- a/third_party/WebKit/Source/modules/webaudio/WaveShaperProcessor.h
+++ b/third_party/WebKit/Source/modules/webaudio/WaveShaperProcessor.h
@@ -54,14 +54,14 @@ public:
void process(const AudioBus* source, AudioBus* destination, size_t framesToProcess) override;
void setCurve(DOMFloat32Array*);
- DOMFloat32Array* curve() { return m_curve.get(); }
+ Vector<float>* curve() const { return m_curve.get(); };
void setOversample(OverSampleType);
OverSampleType oversample() const { return m_oversample; }
private:
// m_curve represents the non-linear shaping curve.
- CrossThreadPersistent<DOMFloat32Array> m_curve;
+ std::unique_ptr<Vector<float>> m_curve;
OverSampleType m_oversample;
};

Powered by Google App Engine
This is Rietveld 408576698