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

Unified Diff: third_party/WebKit/Source/platform/audio/HRTFDatabase.h

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/platform/audio/HRTFDatabase.h
diff --git a/third_party/WebKit/Source/platform/audio/HRTFDatabase.h b/third_party/WebKit/Source/platform/audio/HRTFDatabase.h
index 81d8ada2b99469232a07ea14de44c3fa90186ca6..1674f9004733b319d290174fd712ffb6d5325b77 100644
--- a/third_party/WebKit/Source/platform/audio/HRTFDatabase.h
+++ b/third_party/WebKit/Source/platform/audio/HRTFDatabase.h
@@ -33,9 +33,9 @@
#include "wtf/Allocator.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/Vector.h"
-#include <memory>
namespace blink {
@@ -45,7 +45,7 @@ class PLATFORM_EXPORT HRTFDatabase {
USING_FAST_MALLOC(HRTFDatabase);
WTF_MAKE_NONCOPYABLE(HRTFDatabase);
public:
- static std::unique_ptr<HRTFDatabase> create(float sampleRate);
+ static PassOwnPtr<HRTFDatabase> create(float sampleRate);
// getKernelsFromAzimuthElevation() returns a left and right ear kernel, and an interpolated left and right frame delay for the given azimuth and elevation.
// azimuthBlend must be in the range 0 -> 1.
@@ -78,7 +78,7 @@ private:
// Returns the index for the correct HRTFElevation given the elevation angle.
static unsigned indexFromElevationAngle(double);
- Vector<std::unique_ptr<HRTFElevation>> m_elevations;
+ Vector<OwnPtr<HRTFElevation>> m_elevations;
float m_sampleRate;
};
« no previous file with comments | « third_party/WebKit/Source/platform/audio/FFTFrame.cpp ('k') | third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698