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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioBus.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/AudioBus.h
diff --git a/third_party/WebKit/Source/platform/audio/AudioBus.h b/third_party/WebKit/Source/platform/audio/AudioBus.h
index eb202360bc8e32f4efd43318abb2217b32e8664f..6f66196163cff6bdc401039a95d5ef2516568299 100644
--- a/third_party/WebKit/Source/platform/audio/AudioBus.h
+++ b/third_party/WebKit/Source/platform/audio/AudioBus.h
@@ -31,9 +31,9 @@
#include "platform/audio/AudioChannel.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/ThreadSafeRefCounted.h"
#include "wtf/Vector.h"
+#include <memory>
namespace blink {
@@ -159,10 +159,10 @@ protected:
void sumFromByDownMixing(const AudioBus&);
size_t m_length;
- Vector<OwnPtr<AudioChannel>> m_channels;
+ Vector<std::unique_ptr<AudioChannel>> m_channels;
int m_layout;
float m_busGain;
- OwnPtr<AudioFloatArray> m_dezipperGainValues;
+ std::unique_ptr<AudioFloatArray> m_dezipperGainValues;
bool m_isFirstTime;
float m_sampleRate; // 0.0 if unknown or N/A
};
« no previous file with comments | « third_party/WebKit/Source/platform/animation/TimingFunction.h ('k') | third_party/WebKit/Source/platform/audio/AudioBus.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698