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

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

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/AudioDSPKernelProcessor.h
diff --git a/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.h b/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.h
index ac02a9c09cadc6909be08f7d033a8e490cc6ee1a..abc1e2067e488153e98b221314177ca8271d25e6 100644
--- a/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.h
+++ b/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.h
@@ -33,10 +33,9 @@
#include "platform/audio/AudioBus.h"
#include "platform/audio/AudioProcessor.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/ThreadingPrimitives.h"
#include "wtf/Vector.h"
+#include <memory>
namespace blink {
@@ -55,7 +54,7 @@ public:
// Subclasses create the appropriate type of processing kernel here.
// We'll call this to create a kernel for each channel.
- virtual PassOwnPtr<AudioDSPKernel> createKernel() = 0;
+ virtual std::unique_ptr<AudioDSPKernel> createKernel() = 0;
// AudioProcessor methods
void initialize() override;
@@ -69,7 +68,7 @@ public:
double latencyTime() const override;
protected:
- Vector<OwnPtr<AudioDSPKernel>> m_kernels;
+ Vector<std::unique_ptr<AudioDSPKernel>> m_kernels;
mutable Mutex m_processLock;
bool m_hasJustReset;
};
« no previous file with comments | « third_party/WebKit/Source/platform/audio/AudioChannel.cpp ('k') | third_party/WebKit/Source/platform/audio/AudioDestination.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698