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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioChannel.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/AudioChannel.h
diff --git a/third_party/WebKit/Source/platform/audio/AudioChannel.h b/third_party/WebKit/Source/platform/audio/AudioChannel.h
index 472227b839f73c31908c3d9c70f17bf271dd0f5e..f1569111d225cadd6c779a46ee6ffe1fe7e0e850 100644
--- a/third_party/WebKit/Source/platform/audio/AudioChannel.h
+++ b/third_party/WebKit/Source/platform/audio/AudioChannel.h
@@ -32,8 +32,7 @@
#include "platform/PlatformExport.h"
#include "platform/audio/AudioArray.h"
#include "wtf/Allocator.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
+#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -59,7 +58,7 @@ public:
, m_rawPointer(nullptr)
, m_silent(true)
{
- m_memBuffer = wrapUnique(new AudioFloatArray(length));
+ m_memBuffer = adoptPtr(new AudioFloatArray(length));
}
// A "blank" audio channel -- must call set() before it's useful...
@@ -134,7 +133,7 @@ private:
size_t m_length;
float* m_rawPointer;
- std::unique_ptr<AudioFloatArray> m_memBuffer;
+ OwnPtr<AudioFloatArray> m_memBuffer;
bool m_silent;
};
« no previous file with comments | « third_party/WebKit/Source/platform/audio/AudioBus.cpp ('k') | third_party/WebKit/Source/platform/audio/AudioChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698