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

Unified Diff: third_party/WebKit/Source/platform/audio/Panner.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/platform/audio/Panner.cpp
diff --git a/third_party/WebKit/Source/platform/audio/Panner.cpp b/third_party/WebKit/Source/platform/audio/Panner.cpp
index 363999dc68063a6926619804312027873346925a..196e07118e0d4d1f1b9e32da9b3d81408803560b 100644
--- a/third_party/WebKit/Source/platform/audio/Panner.cpp
+++ b/third_party/WebKit/Source/platform/audio/Panner.cpp
@@ -26,20 +26,22 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "platform/audio/Panner.h"
#include "platform/audio/EqualPowerPanner.h"
#include "platform/audio/HRTFPanner.h"
+#include "platform/audio/Panner.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
-PassOwnPtr<Panner> Panner::create(PanningModel model, float sampleRate, HRTFDatabaseLoader* databaseLoader)
+std::unique_ptr<Panner> Panner::create(PanningModel model, float sampleRate, HRTFDatabaseLoader* databaseLoader)
{
switch (model) {
case PanningModelEqualPower:
- return adoptPtr(new EqualPowerPanner(sampleRate));
+ return wrapUnique(new EqualPowerPanner(sampleRate));
case PanningModelHRTF:
- return adoptPtr(new HRTFPanner(sampleRate, databaseLoader));
+ return wrapUnique(new HRTFPanner(sampleRate, databaseLoader));
default:
ASSERT_NOT_REACHED();
« no previous file with comments | « third_party/WebKit/Source/platform/audio/Panner.h ('k') | third_party/WebKit/Source/platform/audio/Reverb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698