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

Unified Diff: third_party/WebKit/Source/platform/audio/Panner.cpp

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/Panner.cpp
diff --git a/third_party/WebKit/Source/platform/audio/Panner.cpp b/third_party/WebKit/Source/platform/audio/Panner.cpp
index 196e07118e0d4d1f1b9e32da9b3d81408803560b..363999dc68063a6926619804312027873346925a 100644
--- a/third_party/WebKit/Source/platform/audio/Panner.cpp
+++ b/third_party/WebKit/Source/platform/audio/Panner.cpp
@@ -26,22 +26,20 @@
* 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 {
-std::unique_ptr<Panner> Panner::create(PanningModel model, float sampleRate, HRTFDatabaseLoader* databaseLoader)
+PassOwnPtr<Panner> Panner::create(PanningModel model, float sampleRate, HRTFDatabaseLoader* databaseLoader)
{
switch (model) {
case PanningModelEqualPower:
- return wrapUnique(new EqualPowerPanner(sampleRate));
+ return adoptPtr(new EqualPowerPanner(sampleRate));
case PanningModelHRTF:
- return wrapUnique(new HRTFPanner(sampleRate, databaseLoader));
+ return adoptPtr(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