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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/BiquadProcessor.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BiquadProcessor.cpp b/third_party/WebKit/Source/modules/webaudio/BiquadProcessor.cpp
index a665e78bb584576e26a3a510bf7da95c9676a947..110dff4a943a502e2e4542ff7a8dd6935791cac9 100644
--- a/third_party/WebKit/Source/modules/webaudio/BiquadProcessor.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BiquadProcessor.cpp
@@ -22,10 +22,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "modules/webaudio/BiquadDSPKernel.h"
#include "modules/webaudio/BiquadProcessor.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
+#include "modules/webaudio/BiquadDSPKernel.h"
namespace blink {
@@ -47,9 +45,9 @@ BiquadProcessor::~BiquadProcessor()
uninitialize();
}
-std::unique_ptr<AudioDSPKernel> BiquadProcessor::createKernel()
+PassOwnPtr<AudioDSPKernel> BiquadProcessor::createKernel()
{
- return wrapUnique(new BiquadDSPKernel(this));
+ return adoptPtr(new BiquadDSPKernel(this));
}
void BiquadProcessor::checkForDirtyCoefficients()
@@ -112,7 +110,7 @@ void BiquadProcessor::getFrequencyResponse(int nFrequencies, const float* freque
// to avoid interfering with the processing running in the audio
// thread on the main kernels.
- std::unique_ptr<BiquadDSPKernel> responseKernel = wrapUnique(new BiquadDSPKernel(this));
+ OwnPtr<BiquadDSPKernel> responseKernel = adoptPtr(new BiquadDSPKernel(this));
responseKernel->getFrequencyResponse(nFrequencies, frequencyHz, magResponse, phaseResponse);
}

Powered by Google App Engine
This is Rietveld 408576698