Title: [270808] trunk/Source
Revision
270808
Author
[email protected]
Date
2020-12-14 16:14:11 -0800 (Mon, 14 Dec 2020)

Log Message

Unreviewed, reverting r270768.

Still crashes in debug in a different location

Reverted changeset:

"[GPUProcess] Crash under
AudioDestinationCocoa::setIsPlaying(bool)"
https://bugs.webkit.org/show_bug.cgi?id=219809
https://trac.webkit.org/changeset/270768

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (270807 => 270808)


--- trunk/Source/WebCore/ChangeLog	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/ChangeLog	2020-12-15 00:14:11 UTC (rev 270808)
@@ -1,3 +1,16 @@
+2020-12-14  Chris Dumez  <[email protected]>
+
+        Unreviewed, reverting r270768.
+
+        Still crashes in debug in a different location
+
+        Reverted changeset:
+
+        "[GPUProcess] Crash under
+        AudioDestinationCocoa::setIsPlaying(bool)"
+        https://bugs.webkit.org/show_bug.cgi?id=219809
+        https://trac.webkit.org/changeset/270768
+
 2020-12-14  Peng Liu  <[email protected]>
 
         [Media in GPU Process][MSE] Fix crashes in a debug build

Modified: trunk/Source/WebCore/Modules/webaudio/AudioDestinationNode.cpp (270807 => 270808)


--- trunk/Source/WebCore/Modules/webaudio/AudioDestinationNode.cpp	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/Modules/webaudio/AudioDestinationNode.cpp	2020-12-15 00:14:11 UTC (rev 270808)
@@ -52,7 +52,7 @@
 
 AudioDestinationNode::~AudioDestinationNode()
 {
-    ASSERT(!isInitialized());
+    uninitialize();
 }
 
 void AudioDestinationNode::render(AudioBus*, AudioBus* destinationBus, size_t numberOfFrames, const AudioIOPosition& outputPosition)

Modified: trunk/Source/WebCore/Modules/webaudio/AudioDestinationNode.h (270807 => 270808)


--- trunk/Source/WebCore/Modules/webaudio/AudioDestinationNode.h	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/Modules/webaudio/AudioDestinationNode.h	2020-12-15 00:14:11 UTC (rev 270808)
@@ -62,14 +62,10 @@
     virtual void restartRendering() { }
 
     virtual bool isPlaying() { return false; }
+    void isPlayingDidChange() override;
     bool isPlayingAudio() const { return m_isEffectivelyPlayingAudio; }
     void setMuted(bool muted) { m_muted = muted; }
 
-    // AudioIOCallback.
-    void refAudioCallback() final { ref(); }
-    void derefAudioCallback() final { deref(); }
-    void isPlayingDidChange() override;
-
 protected:
     double tailTime() const override { return 0; }
     double latencyTime() const override { return 0; }

Modified: trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp (270807 => 270808)


--- trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp	2020-12-15 00:14:11 UTC (rev 270808)
@@ -646,11 +646,6 @@
 
 void AudioNode::deref()
 {
-    if (!isMainThread()) {
-        callOnMainThread(std::bind(&AudioNode::deref, this));
-        return;
-    }
-
     ASSERT(!context().isAudioThread());
 
     {

Modified: trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp (270807 => 270808)


--- trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp	2020-12-15 00:14:11 UTC (rev 270808)
@@ -203,10 +203,8 @@
     auto protectedThis = makeRef(*this);
 
     // We have to release our reference to the destination node before the context will ever be deleted since the destination node holds a reference to the context.
-    if (m_destinationNode) {
-        m_destinationNode->uninitialize();
+    if (m_destinationNode)
         m_destinationNode = nullptr;
-    }
 
     // Audio thread is dead. Nobody will schedule node deletion action. Let's do it ourselves.
     do {

Modified: trunk/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp (270807 => 270808)


--- trunk/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp	2020-12-15 00:14:11 UTC (rev 270808)
@@ -54,7 +54,7 @@
 
 DefaultAudioDestinationNode::~DefaultAudioDestinationNode()
 {
-    ASSERT(!isInitialized());
+    uninitialize();
 }
 
 void DefaultAudioDestinationNode::initialize()
@@ -77,6 +77,7 @@
     ALWAYS_LOG(LOGIDENTIFIER);
     m_wasDestinationStarted = false;
     m_destination->stop();
+    m_destination = nullptr;
     m_numberOfInputChannels = 0;
 
     AudioNode::uninitialize();
@@ -85,7 +86,7 @@
 void DefaultAudioDestinationNode::createDestination()
 {
     ALWAYS_LOG(LOGIDENTIFIER, "contextSampleRate = ", m_sampleRate, ", hardwareSampleRate = ", AudioDestination::hardwareSampleRate());
-    m_destination = platformStrategies()->mediaStrategy().createAudioDestination(*this, m_inputDeviceId, m_numberOfInputChannels, channelCount(), m_sampleRate).moveToUniquePtr();
+    m_destination = platformStrategies()->mediaStrategy().createAudioDestination(*this, m_inputDeviceId, m_numberOfInputChannels, channelCount(), m_sampleRate);
 }
 
 void DefaultAudioDestinationNode::enableInput(const String& inputDeviceId)

Modified: trunk/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.h (270807 => 270808)


--- trunk/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.h	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.h	2020-12-15 00:14:11 UTC (rev 270808)
@@ -64,7 +64,7 @@
     unsigned maxChannelCount() const final;
     bool isPlaying() final;
 
-    std::unique_ptr<AudioDestination> m_destination;
+    RefPtr<AudioDestination> m_destination;
     bool m_wasDestinationStarted { false };
     String m_inputDeviceId;
     unsigned m_numberOfInputChannels { 0 };

Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.cpp (270807 => 270808)


--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.cpp	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.cpp	2020-12-15 00:14:11 UTC (rev 270808)
@@ -55,7 +55,7 @@
 
 OfflineAudioDestinationNode::~OfflineAudioDestinationNode()
 {
-    ASSERT(!isInitialized());
+    uninitialize();
 }
 
 unsigned OfflineAudioDestinationNode::maxChannelCount() const

Modified: trunk/Source/WebCore/platform/MediaStrategy.h (270807 => 270808)


--- trunk/Source/WebCore/platform/MediaStrategy.h	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/platform/MediaStrategy.h	2020-12-15 00:14:11 UTC (rev 270808)
@@ -37,7 +37,7 @@
 class WEBCORE_EXPORT MediaStrategy {
 public:
 #if ENABLE(WEB_AUDIO)
-    virtual UniqueRef<AudioDestination> createAudioDestination(
+    virtual Ref<AudioDestination> createAudioDestination(
         AudioIOCallback&, const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate) = 0;
 #endif
 #if PLATFORM(COCOA)

Modified: trunk/Source/WebCore/platform/audio/AudioDestination.h (270807 => 270808)


--- trunk/Source/WebCore/platform/audio/AudioDestination.h	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/platform/audio/AudioDestination.h	2020-12-15 00:14:11 UTC (rev 270808)
@@ -29,7 +29,6 @@
 #ifndef AudioDestination_h
 #define AudioDestination_h
 
-#include "AudioIOCallback.h"
 #include <memory>
 #include <wtf/CompletionHandler.h>
 #include <wtf/ThreadSafeRefCounted.h>
@@ -37,16 +36,18 @@
 
 namespace WebCore {
 
+class AudioIOCallback;
+
 // AudioDestination is an abstraction for audio hardware I/O.
 // The audio hardware periodically calls the AudioIOCallback render() method asking it to render/output the next render quantum of audio.
 // It optionally will pass in local/live audio input when it calls render().
 
-class AudioDestination {
+class AudioDestination : public ThreadSafeRefCounted<AudioDestination> {
     WTF_MAKE_FAST_ALLOCATED;
 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.
-    WEBCORE_EXPORT static UniqueRef<AudioDestination> create(AudioIOCallback&, const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate);
+    WEBCORE_EXPORT static Ref<AudioDestination> create(AudioIOCallback&, const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate);
 
     virtual ~AudioDestination() = default;
 
@@ -54,9 +55,6 @@
     virtual void stop(CompletionHandler<void(bool)>&& = [](bool) { }) = 0;
     virtual bool isPlaying() = 0;
 
-    void ref() { m_callback.refAudioCallback(); }
-    void deref() { m_callback.derefAudioCallback(); }
-
     // Sample-rate conversion may happen in AudioDestination to the hardware sample-rate
     virtual float sampleRate() const = 0;
     WEBCORE_EXPORT static float hardwareSampleRate();
@@ -70,14 +68,6 @@
     // be a value: 1 <= numberOfOutputChannels <= maxChannelCount(),
     // or if maxChannelCount() equals 0, then numberOfOutputChannels must be 2.
     static unsigned long maxChannelCount();
-
-protected:
-    explicit AudioDestination(AudioIOCallback& callback)
-        : m_callback(callback)
-    {
-    }
-
-    AudioIOCallback& m_callback;
 };
 
 } // namespace WebCore

Modified: trunk/Source/WebCore/platform/audio/AudioIOCallback.h (270807 => 270808)


--- trunk/Source/WebCore/platform/audio/AudioIOCallback.h	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/platform/audio/AudioIOCallback.h	2020-12-15 00:14:11 UTC (rev 270808)
@@ -74,9 +74,6 @@
     virtual void isPlayingDidChange() = 0;
 
     virtual ~AudioIOCallback() = default;
-
-    virtual void refAudioCallback() = 0;
-    virtual void derefAudioCallback() = 0;
 };
 
 } // WebCore

Modified: trunk/Source/WebCore/platform/audio/cocoa/AudioDestinationCocoa.cpp (270807 => 270808)


--- trunk/Source/WebCore/platform/audio/cocoa/AudioDestinationCocoa.cpp	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/platform/audio/cocoa/AudioDestinationCocoa.cpp	2020-12-15 00:14:11 UTC (rev 270808)
@@ -41,7 +41,7 @@
 
 CreateAudioDestinationCocoaOverride AudioDestinationCocoa::createOverride = nullptr;
 
-UniqueRef<AudioDestination> AudioDestination::create(AudioIOCallback& callback, const String&, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate)
+Ref<AudioDestination> AudioDestination::create(AudioIOCallback& callback, const String&, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate)
 {
     // FIXME: make use of inputDeviceId as appropriate.
 
@@ -55,7 +55,8 @@
     if (AudioDestinationCocoa::createOverride)
         return AudioDestinationCocoa::createOverride(callback, sampleRate);
 
-    return makeUniqueRef<AudioDestinationCocoa>(callback, numberOfOutputChannels, sampleRate);
+    auto destination = adoptRef(*new AudioDestinationCocoa(callback, numberOfOutputChannels, sampleRate));
+    return destination;
 }
 
 float AudioDestination::hardwareSampleRate()
@@ -69,8 +70,8 @@
 }
 
 AudioDestinationCocoa::AudioDestinationCocoa(AudioIOCallback& callback, unsigned numberOfOutputChannels, float sampleRate, bool configureAudioOutputUnit)
-    : AudioDestination(callback)
-    , m_audioOutputUnitAdaptor(*this)
+    : m_audioOutputUnitAdaptor(*this)
+    , m_callback(callback)
     , m_outputBus(AudioBus::create(numberOfOutputChannels, AudioUtilities::renderQuantumSize, false).releaseNonNull())
     , m_renderBus(AudioBus::create(numberOfOutputChannels, AudioUtilities::renderQuantumSize).releaseNonNull())
     , m_fifo(makeUniqueRef<PushPullFIFO>(numberOfOutputChannels, fifoSize))

Modified: trunk/Source/WebCore/platform/audio/cocoa/AudioDestinationCocoa.h (270807 => 270808)


--- trunk/Source/WebCore/platform/audio/cocoa/AudioDestinationCocoa.h	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/platform/audio/cocoa/AudioDestinationCocoa.h	2020-12-15 00:14:11 UTC (rev 270808)
@@ -40,7 +40,7 @@
 class MultiChannelResampler;
 class PushPullFIFO;
 
-using CreateAudioDestinationCocoaOverride = UniqueRef<AudioDestination>(*)(AudioIOCallback&, float sampleRate);
+using CreateAudioDestinationCocoaOverride = Ref<AudioDestination>(*)(AudioIOCallback&, float sampleRate);
 
 // An AudioDestination using CoreAudio's default output AudioUnit
 class AudioDestinationCocoa : public AudioDestination, public AudioUnitRenderer {
@@ -64,7 +64,7 @@
     WEBCORE_EXPORT void getAudioStreamBasicDescription(AudioStreamBasicDescription&);
 
 private:
-    friend UniqueRef<AudioDestination> AudioDestination::create(AudioIOCallback&, const String&, unsigned, unsigned, float);
+    friend Ref<AudioDestination> AudioDestination::create(AudioIOCallback&, const String&, unsigned, unsigned, float);
 
     void start(Function<void(Function<void()>&&)>&&, CompletionHandler<void(bool)>&&) override;
     void stop(CompletionHandler<void(bool)>&&) override;
@@ -72,6 +72,7 @@
     void renderOnRenderingThead(size_t framesToRender);
 
     AudioOutputUnitAdaptor m_audioOutputUnitAdaptor;
+    AudioIOCallback& m_callback;
 
     // To pass the data from FIFO to the audio device callback.
     Ref<AudioBus> m_outputBus;

Modified: trunk/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp (270807 => 270808)


--- trunk/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp	2020-12-15 00:14:11 UTC (rev 270808)
@@ -32,7 +32,6 @@
 #include "WebKitWebAudioSourceGStreamer.h"
 #include <gst/audio/gstaudiobasesink.h>
 #include <gst/gst.h>
-#include <wtf/UniqueRef.h>
 #include <wtf/glib/GUniquePtr.h>
 #include <wtf/glib/RunLoopSourcePriority.h>
 
@@ -94,7 +93,7 @@
         g_object_set(GST_AUDIO_BASE_SINK(object), "buffer-time", static_cast<gint64>(100000), nullptr);
 }
 
-UniqueRef<AudioDestination> AudioDestination::create(AudioIOCallback& callback, const String&, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate)
+Ref<AudioDestination> AudioDestination::create(AudioIOCallback& callback, const String&, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate)
 {
     initializeDebugCategory();
     // FIXME: make use of inputDeviceId as appropriate.
@@ -103,7 +102,7 @@
     if (numberOfInputChannels)
         WTFLogAlways("AudioDestination::create(%u, %u, %f) - unhandled input channels", numberOfInputChannels, numberOfOutputChannels, sampleRate);
 
-    return makeUniqueRef<AudioDestinationGStreamer>(callback, numberOfOutputChannels, sampleRate);
+    return adoptRef(*new AudioDestinationGStreamer(callback, numberOfOutputChannels, sampleRate));
 }
 
 float AudioDestination::hardwareSampleRate()
@@ -117,7 +116,7 @@
 }
 
 AudioDestinationGStreamer::AudioDestinationGStreamer(AudioIOCallback& callback, unsigned long numberOfOutputChannels, float sampleRate)
-    : AudioDestination(callback)
+    : m_callback(callback)
     , m_renderBus(AudioBus::create(numberOfOutputChannels, AudioUtilities::renderQuantumSize, false))
     , m_sampleRate(sampleRate)
 {

Modified: trunk/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.h (270807 => 270808)


--- trunk/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.h	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.h	2020-12-15 00:14:11 UTC (rev 270808)
@@ -45,6 +45,7 @@
     gboolean handleMessage(GstMessage*);
 
 private:
+    AudioIOCallback& m_callback;
     RefPtr<AudioBus> m_renderBus;
 
     float m_sampleRate;

Modified: trunk/Source/WebCore/platform/mock/MockAudioDestinationCocoa.h (270807 => 270808)


--- trunk/Source/WebCore/platform/mock/MockAudioDestinationCocoa.h	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebCore/platform/mock/MockAudioDestinationCocoa.h	2020-12-15 00:14:11 UTC (rev 270808)
@@ -38,9 +38,9 @@
 class MockAudioDestinationCocoa final : public AudioDestinationCocoa {
     WTF_MAKE_FAST_ALLOCATED;
 public:
-    static UniqueRef<AudioDestination> create(AudioIOCallback& callback, float sampleRate)
+    static Ref<AudioDestination> create(AudioIOCallback& callback, float sampleRate)
     {
-        return makeUniqueRef<MockAudioDestinationCocoa>(callback, sampleRate);
+        return adoptRef(*new MockAudioDestinationCocoa(callback, sampleRate));
     }
 
     WEBCORE_EXPORT MockAudioDestinationCocoa(AudioIOCallback&, float sampleRate);

Modified: trunk/Source/WebKit/ChangeLog (270807 => 270808)


--- trunk/Source/WebKit/ChangeLog	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebKit/ChangeLog	2020-12-15 00:14:11 UTC (rev 270808)
@@ -1,3 +1,16 @@
+2020-12-14  Chris Dumez  <[email protected]>
+
+        Unreviewed, reverting r270768.
+
+        Still crashes in debug in a different location
+
+        Reverted changeset:
+
+        "[GPUProcess] Crash under
+        AudioDestinationCocoa::setIsPlaying(bool)"
+        https://bugs.webkit.org/show_bug.cgi?id=219809
+        https://trac.webkit.org/changeset/270768
+
 2020-12-14  Peng Liu  <[email protected]>
 
         [Media in GPU Process][MSE] Fix crashes in a debug build

Modified: trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioDestinationProxy.cpp (270807 => 270808)


--- trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioDestinationProxy.cpp	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioDestinationProxy.cpp	2020-12-15 00:14:11 UTC (rev 270808)
@@ -48,10 +48,10 @@
 using AudioDestination = WebCore::AudioDestination;
 using AudioIOCallback = WebCore::AudioIOCallback;
 
-UniqueRef<AudioDestination> RemoteAudioDestinationProxy::create(AudioIOCallback& callback,
+Ref<AudioDestination> RemoteAudioDestinationProxy::create(AudioIOCallback& callback,
     const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate)
 {
-    return makeUniqueRef<RemoteAudioDestinationProxy>(callback, inputDeviceId, numberOfInputChannels, numberOfOutputChannels, sampleRate);
+    return adoptRef(*new RemoteAudioDestinationProxy(callback, inputDeviceId, numberOfInputChannels, numberOfOutputChannels, sampleRate));
 }
 
 RemoteAudioDestinationProxy::RemoteAudioDestinationProxy(AudioIOCallback& callback, const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate)
@@ -60,8 +60,7 @@
     , m_numberOfFrames(hardwareSampleRate() * ringBufferSizeInSecond)
     , m_ringBuffer(makeUnique<WebCore::CARingBuffer>(makeUniqueRef<SharedRingBufferStorage>(std::bind(&RemoteAudioDestinationProxy::storageChanged, this, std::placeholders::_1))))
 #else
-    : AudioDestination(callback)
-    , m_numberOfOutputChannels(numberOfOutputChannels)
+    : m_numberOfOutputChannels(numberOfOutputChannels)
 #endif
     , m_inputDeviceId(inputDeviceId)
     , m_numberOfInputChannels(numberOfInputChannels)

Modified: trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioDestinationProxy.h (270807 => 270808)


--- trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioDestinationProxy.h	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioDestinationProxy.h	2020-12-15 00:14:11 UTC (rev 270808)
@@ -65,7 +65,7 @@
     using WebCore::AudioDestination::ref;
     using WebCore::AudioDestination::deref;
 
-    static UniqueRef<AudioDestination> create(AudioIOCallback&, const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate);
+    static Ref<AudioDestination> create(AudioIOCallback&, const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate);
 
     RemoteAudioDestinationProxy(AudioIOCallback&, const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate);
     ~RemoteAudioDestinationProxy();

Modified: trunk/Source/WebKit/WebProcess/GPU/media/WebMediaStrategy.cpp (270807 => 270808)


--- trunk/Source/WebKit/WebProcess/GPU/media/WebMediaStrategy.cpp	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebKit/WebProcess/GPU/media/WebMediaStrategy.cpp	2020-12-15 00:14:11 UTC (rev 270808)
@@ -45,7 +45,7 @@
 WebMediaStrategy::~WebMediaStrategy() = default;
 
 #if ENABLE(WEB_AUDIO)
-UniqueRef<WebCore::AudioDestination> WebMediaStrategy::createAudioDestination(WebCore::AudioIOCallback& callback, const String& inputDeviceId,
+Ref<WebCore::AudioDestination> WebMediaStrategy::createAudioDestination(WebCore::AudioIOCallback& callback, const String& inputDeviceId,
     unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate)
 {
 #if ENABLE(GPU_PROCESS)

Modified: trunk/Source/WebKit/WebProcess/GPU/media/WebMediaStrategy.h (270807 => 270808)


--- trunk/Source/WebKit/WebProcess/GPU/media/WebMediaStrategy.h	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebKit/WebProcess/GPU/media/WebMediaStrategy.h	2020-12-15 00:14:11 UTC (rev 270808)
@@ -39,7 +39,7 @@
 
 private:
 #if ENABLE(WEB_AUDIO)
-    UniqueRef<WebCore::AudioDestination> createAudioDestination(WebCore::AudioIOCallback&,
+    Ref<WebCore::AudioDestination> createAudioDestination(WebCore::AudioIOCallback&,
         const String& inputDeviceId, unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate) override;
 #endif
 #if PLATFORM(COCOA)

Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (270807 => 270808)


--- trunk/Source/WebKitLegacy/mac/ChangeLog	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog	2020-12-15 00:14:11 UTC (rev 270808)
@@ -1,5 +1,18 @@
 2020-12-14  Chris Dumez  <[email protected]>
 
+        Unreviewed, reverting r270768.
+
+        Still crashes in debug in a different location
+
+        Reverted changeset:
+
+        "[GPUProcess] Crash under
+        AudioDestinationCocoa::setIsPlaying(bool)"
+        https://bugs.webkit.org/show_bug.cgi?id=219809
+        https://trac.webkit.org/changeset/270768
+
+2020-12-14  Chris Dumez  <[email protected]>
+
         [GPUProcess] Crash under AudioDestinationCocoa::setIsPlaying(bool)
         https://bugs.webkit.org/show_bug.cgi?id=219809
 

Modified: trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebPlatformStrategies.mm (270807 => 270808)


--- trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebPlatformStrategies.mm	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebPlatformStrategies.mm	2020-12-15 00:14:11 UTC (rev 270808)
@@ -69,7 +69,7 @@
 class WebMediaStrategy final : public MediaStrategy {
 private:
 #if ENABLE(WEB_AUDIO)
-    UniqueRef<AudioDestination> createAudioDestination(AudioIOCallback& callback, const String& inputDeviceId,
+    Ref<AudioDestination> createAudioDestination(AudioIOCallback& callback, const String& inputDeviceId,
         unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate) override
     {
         return AudioDestination::create(callback, inputDeviceId, numberOfInputChannels, numberOfOutputChannels, sampleRate);

Modified: trunk/Source/WebKitLegacy/win/ChangeLog (270807 => 270808)


--- trunk/Source/WebKitLegacy/win/ChangeLog	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebKitLegacy/win/ChangeLog	2020-12-15 00:14:11 UTC (rev 270808)
@@ -1,5 +1,18 @@
 2020-12-14  Chris Dumez  <[email protected]>
 
+        Unreviewed, reverting r270768.
+
+        Still crashes in debug in a different location
+
+        Reverted changeset:
+
+        "[GPUProcess] Crash under
+        AudioDestinationCocoa::setIsPlaying(bool)"
+        https://bugs.webkit.org/show_bug.cgi?id=219809
+        https://trac.webkit.org/changeset/270768
+
+2020-12-14  Chris Dumez  <[email protected]>
+
         [GPUProcess] Crash under AudioDestinationCocoa::setIsPlaying(bool)
         https://bugs.webkit.org/show_bug.cgi?id=219809
 

Modified: trunk/Source/WebKitLegacy/win/WebCoreSupport/WebPlatformStrategies.cpp (270807 => 270808)


--- trunk/Source/WebKitLegacy/win/WebCoreSupport/WebPlatformStrategies.cpp	2020-12-15 00:12:40 UTC (rev 270807)
+++ trunk/Source/WebKitLegacy/win/WebCoreSupport/WebPlatformStrategies.cpp	2020-12-15 00:14:11 UTC (rev 270808)
@@ -65,7 +65,7 @@
 class WebMediaStrategy final : public MediaStrategy {
 private:
 #if ENABLE(WEB_AUDIO)
-    UniqueRef<AudioDestination> createAudioDestination(AudioIOCallback& callback, const String& inputDeviceId,
+    Ref<AudioDestination> createAudioDestination(AudioIOCallback& callback, const String& inputDeviceId,
         unsigned numberOfInputChannels, unsigned numberOfOutputChannels, float sampleRate) override
     {
         return AudioDestination::create(callback, inputDeviceId, numberOfInputChannels, numberOfOutputChannels, sampleRate);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to