Move more logic from AudioDestinationNode to its subclasses
[WebKit-https.git] / Source / WebCore / Modules / webaudio / BaseAudioContext.cpp
index 0625f21e3b84027943d4fa15edb4fb24bd445f6a..46be6e5280757d24312db4cbbbb5e30e8f2d0c95 100644 (file)
@@ -853,21 +853,6 @@ ScriptExecutionContext* BaseAudioContext::scriptExecutionContext() const
     return ActiveDOMObject::scriptExecutionContext();
 }
 
-// FIXME: This should probably move to AudioContext.
-void BaseAudioContext::isPlayingAudioDidChange()
-{
-    // Heap allocations are forbidden on the audio thread for performance reasons so we need to
-    // explicitly allow the following allocation(s).
-    DisableMallocRestrictionsForCurrentThreadScope disableMallocRestrictions;
-
-    // Make sure to call Document::updateIsPlayingMedia() on the main thread, since
-    // we could be on the audio I/O thread here and the call into WebCore could block.
-    callOnMainThread([protectedThis = makeRef(*this)] {
-        if (protectedThis->document())
-            protectedThis->document()->updateIsPlayingMedia();
-    });
-}
-
 void BaseAudioContext::incrementActiveSourceCount()
 {
     ++m_activeSourceCount;