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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioDestination.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/AudioDestination.h
diff --git a/third_party/WebKit/Source/platform/audio/AudioDestination.h b/third_party/WebKit/Source/platform/audio/AudioDestination.h
index 14c8f916971876bea8ac766b2291c643ee585af9..70b4780e72f6be3b0147b67030f2a0c53091fbc4 100644
--- a/third_party/WebKit/Source/platform/audio/AudioDestination.h
+++ b/third_party/WebKit/Source/platform/audio/AudioDestination.h
@@ -37,7 +37,6 @@
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
#include "wtf/text/WTFString.h"
-#include <memory>
namespace blink {
@@ -56,7 +55,7 @@ public:
// Pass in (numberOfInputChannels > 0) if live/local audio input is desired.
// Port-specific device identification information for live/local input streams can be passed in the inputDeviceId.
- static std::unique_ptr<AudioDestination> create(AudioIOCallback&, const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate, const PassRefPtr<SecurityOrigin>&);
+ static PassOwnPtr<AudioDestination> create(AudioIOCallback&, const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate, const PassRefPtr<SecurityOrigin>&);
virtual void start();
virtual void stop();
@@ -87,11 +86,11 @@ private:
RefPtr<AudioBus> m_renderBus;
float m_sampleRate;
bool m_isPlaying;
- std::unique_ptr<WebAudioDevice> m_audioDevice;
+ OwnPtr<WebAudioDevice> m_audioDevice;
size_t m_callbackBufferSize;
- std::unique_ptr<AudioFIFO> m_inputFifo;
- std::unique_ptr<AudioPullFIFO> m_fifo;
+ OwnPtr<AudioFIFO> m_inputFifo;
+ OwnPtr<AudioPullFIFO> m_fifo;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698