| Index: third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp
|
| diff --git a/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp b/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp
|
| index 7b88489525d37c884d887999f65331d7ebbe9c3c..6b79e7fd96fcc372e222a4fa7e6e6ed21dfdecbb 100644
|
| --- a/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp
|
| +++ b/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp
|
| @@ -29,6 +29,8 @@
|
| #include "platform/audio/HRTFDatabase.h"
|
|
|
| #include "wtf/MathExtras.h"
|
| +#include "wtf/PtrUtil.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -39,9 +41,9 @@ const unsigned HRTFDatabase::NumberOfRawElevations = 10; // -45 -> +90 (each 15
|
| const unsigned HRTFDatabase::InterpolationFactor = 1;
|
| const unsigned HRTFDatabase::NumberOfTotalElevations = NumberOfRawElevations * InterpolationFactor;
|
|
|
| -PassOwnPtr<HRTFDatabase> HRTFDatabase::create(float sampleRate)
|
| +std::unique_ptr<HRTFDatabase> HRTFDatabase::create(float sampleRate)
|
| {
|
| - return adoptPtr(new HRTFDatabase(sampleRate));
|
| + return wrapUnique(new HRTFDatabase(sampleRate));
|
| }
|
|
|
| HRTFDatabase::HRTFDatabase(float sampleRate)
|
| @@ -50,7 +52,7 @@ HRTFDatabase::HRTFDatabase(float sampleRate)
|
| {
|
| unsigned elevationIndex = 0;
|
| for (int elevation = MinElevation; elevation <= MaxElevation; elevation += RawElevationAngleSpacing) {
|
| - OwnPtr<HRTFElevation> hrtfElevation = HRTFElevation::createForSubject("Composite", elevation, sampleRate);
|
| + std::unique_ptr<HRTFElevation> hrtfElevation = HRTFElevation::createForSubject("Composite", elevation, sampleRate);
|
| ASSERT(hrtfElevation.get());
|
| if (!hrtfElevation.get())
|
| return;
|
|
|