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

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

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

Powered by Google App Engine
This is Rietveld 408576698