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