Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
Andreas Pehrson 1e9929f09f Bug 1666116 - Account for fallback in NotifyWhenGraphStarted. r=padenot
Unittests using GoFaster mode may start iterating the audio driver faster before
its fallback has completed handover to the audio callback. This causes the
preSilenceSamples check to spike and the test fails.

Waiting for the fallback to finish handing over fixes this.

To accomodate this, this patch also constifies some methods as needed to check
InIteration() when const.

Differential Revision: https://phabricator.services.mozilla.com/D97413
2020-11-30 14:16:57 +00:00
Andreas Pehrson 74a8690e5f Bug 1605134 - Rename StateComputedEnd to StateComputedTime. r=padenot
StateComputedEnd was likely a typo back in the day. The member in the graph is
mStateComputedTime, so let's center around that.

Differential Revision: https://phabricator.services.mozilla.com/D97404
2020-11-30 14:16:31 +00:00
Cristina Coroiu 011cf4e1e0 Backed out 21 changesets (bug 1666116, bug 1605134) for build bustage at checkouts/gecko/dom/media/gtest/WaitFor.h on a CLOSED TREE
Backed out changeset fedcb7e94929 (bug 1666116)
Backed out changeset 506522ae896e (bug 1666116)
Backed out changeset 351419be5c0d (bug 1666116)
Backed out changeset 93aef991a475 (bug 1666116)
Backed out changeset 9e2a2c13ef60 (bug 1666116)
Backed out changeset 81d82ce7eecd (bug 1605134)
Backed out changeset 18ca27b07da3 (bug 1605134)
Backed out changeset addf9298c4fe (bug 1605134)
Backed out changeset c3cf634bffb3 (bug 1605134)
Backed out changeset 2747068f6397 (bug 1605134)
Backed out changeset ac23d3b40f2d (bug 1605134)
Backed out changeset c010356d4a48 (bug 1605134)
Backed out changeset ce6924b1f900 (bug 1605134)
Backed out changeset e88bb30c3221 (bug 1605134)
Backed out changeset efa10675b86d (bug 1605134)
Backed out changeset 3c5d3f8baf28 (bug 1605134)
Backed out changeset bffa738ccb6f (bug 1605134)
Backed out changeset c8143eab62d2 (bug 1605134)
Backed out changeset 7dfb915d51ef (bug 1605134)
Backed out changeset 9bce7dcae91c (bug 1605134)
Backed out changeset 3714fa7460ce (bug 1605134)
2020-11-30 16:12:25 +02:00
Andreas Pehrson b46912a84d Bug 1666116 - Account for fallback in NotifyWhenGraphStarted. r=padenot
Unittests using GoFaster mode may start iterating the audio driver faster before
its fallback has completed handover to the audio callback. This causes the
preSilenceSamples check to spike and the test fails.

Waiting for the fallback to finish handing over fixes this.

To accomodate this, this patch also constifies some methods as needed to check
InIteration() when const.

Differential Revision: https://phabricator.services.mozilla.com/D97413
2020-11-21 01:21:23 +00:00
Andreas Pehrson 7bc4c2f650 Bug 1605134 - Rename StateComputedEnd to StateComputedTime. r=padenot
StateComputedEnd was likely a typo back in the day. The member in the graph is
mStateComputedTime, so let's center around that.

Differential Revision: https://phabricator.services.mozilla.com/D97404
2020-11-21 01:19:48 +00:00
Narcis Beleuzu 61193c6032 Backed out 16 changesets (bug 1666116, bug 1605134) for GTest failures on TestAudioTrackGraph . CLOSED TREE
Backed out changeset dba15089f5d3 (bug 1666116)
Backed out changeset c529b6732b08 (bug 1666116)
Backed out changeset 3225cdc96f82 (bug 1666116)
Backed out changeset 06ced7ee7c2c (bug 1666116)
Backed out changeset f65dbe0c4c64 (bug 1605134)
Backed out changeset dda7d98d3da7 (bug 1605134)
Backed out changeset 6fed7e4730c5 (bug 1605134)
Backed out changeset 9859d35abce6 (bug 1605134)
Backed out changeset e5fb448bbadf (bug 1605134)
Backed out changeset 3ef7199a547a (bug 1605134)
Backed out changeset c24bff49f331 (bug 1605134)
Backed out changeset f8612b562aa7 (bug 1605134)
Backed out changeset 0ba16e1f73ae (bug 1605134)
Backed out changeset 0736167ed294 (bug 1605134)
Backed out changeset 56ead9091c47 (bug 1605134)
Backed out changeset 841eedd33424 (bug 1605134)
2020-11-19 22:09:39 +02:00
Andreas Pehrson ea27597884 Bug 1666116 - Account for fallback in NotifyWhenGraphStarted. r=padenot
Unittests using GoFaster mode may start iterating the audio driver faster before
its fallback has completed handover to the audio callback. This causes the
preSilenceSamples check to spike and the test fails.

Waiting for the fallback to finish handing over fixes this.

To accomodate this, this patch also constifies some methods as needed to check
InIteration() when const. It also waits for audio drivers to start per the above
in TestCrossGraphTrack as that test may otherwise exhibit this bug with bug
1605314 applied.

Differential Revision: https://phabricator.services.mozilla.com/D97413
2020-11-19 15:50:24 +00:00
Andreas Pehrson db42f60835 Bug 1605134 - Rename StateComputedEnd to StateComputedTime. r=padenot
StateComputedEnd was likely a typo back in the day. The member in the graph is
mStateComputedTime, so let's center around that.

Differential Revision: https://phabricator.services.mozilla.com/D97404
2020-11-19 15:48:59 +00:00
Andreas Pehrson acc3011748 Bug 1605041 - Fix static-analysis warning from bug 1586370. r=padenot
Depends on D57696

Differential Revision: https://phabricator.services.mozilla.com/D57783

--HG--
extra : moz-landing-system : lando
2019-12-19 13:48:09 +00:00
Andreas Pehrson a4fbb9b878 Bug 1586370 - Pass IterationEnd up to the graph rather than back-querying the driver. r=padenot
This makes it simpler to maintain state in the GraphDriver in more complex
cases, such as when an AudioCallbackDriver is backed by a fallback driver.

Differential Revision: https://phabricator.services.mozilla.com/D57553

--HG--
extra : moz-landing-system : lando
2019-12-18 22:52:24 +00:00
Andreas Pehrson 638c69d019 Bug 1586370 - Make GraphDriver iterate the Graph through an interface instead of directly. r=padenot
This lets us iterate more things than MediaTrackGraphImpl, e.g., audio drivers
(from the fallback driver) and unit test classes.

Differential Revision: https://phabricator.services.mozilla.com/D56082

--HG--
extra : moz-landing-system : lando
2019-12-18 22:51:57 +00:00
Andreas Pehrson 7502376eec Bug 1586370 - Rename GraphDriver::OnGraphThread to InIteration. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D56081

--HG--
extra : moz-landing-system : lando
2019-12-18 22:51:45 +00:00
Andreas Pehrson a9ee750781 Bug 1586370 - Return a flexible object from OneIteration. r=padenot
This will let us get rid of such GraphDriver dependencies on MediaTrackGraphImpl
as SignalMainThreadCleanup and SetCurrentDriver.

Differential Revision: https://phabricator.services.mozilla.com/D56076

--HG--
extra : moz-landing-system : lando
2019-12-18 22:51:05 +00:00
Andreas Pehrson 179e64799a Bug 1586370 - Move AudioMixer from MTG to AudioCallbackDriver. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D56070

--HG--
extra : moz-landing-system : lando
2019-12-18 22:50:00 +00:00
Karl Tomlinson 086fa3ac13 Bug 1565956 use an nsThread for GraphRunner to support MessagePort r=pehrsons
MessagePort::Dispatch(), for example, uses NS_DispatchToCurrentThread(), which
assumes nsThread.

Differential Revision: https://phabricator.services.mozilla.com/D53128

--HG--
extra : moz-landing-system : lando
2019-11-25 21:55:36 +00:00
Bogdan Tara 23ebd10305 Backed out 3 changesets (bug 1565956) for crashes complaining about MediaTrackGraphImpl CLOSED TREE
Backed out changeset 15e4c2726222 (bug 1565956)
Backed out changeset 4b18de79a6e3 (bug 1565956)
Backed out changeset 1e45f56e21fb (bug 1565956)
2019-11-21 09:19:51 +02:00
Karl Tomlinson 2d353c6d2c Bug 1565956 use an nsThread for GraphRunner to support MessagePort r=pehrsons
MessagePort::Dispatch(), for example, uses NS_DispatchToCurrentThread(), which
assumes nsThread.

Differential Revision: https://phabricator.services.mozilla.com/D53128

--HG--
extra : moz-landing-system : lando
2019-11-20 23:52:49 +00:00
Andreas Pehrson 1bdb34c6ec Bug 1454998 - Rename streams to tracks. r=padenot,karlt,smaug
This renames the following (in alphabetical order, non-exhaustive):

AudioCaptureStream -> AudioCaptureTrack
AudioNodeStream -> AudioNodeTrack
AudioNodeExternalInputStream -> AudioNodeExternalInputTrack
DirectMediaStreamTrackListener -> DirectMediaTrackListener
MediaStream -> MediaTrack
  - Note that there's also dom::MediaTrack. Namespaces differentiate them.
MediaStreamGraph -> MediaTrackGraph
MediaStreamTrackListener -> MediaTrackListener
MSG -> MTG (in comments)
ProcessedMediaStream -> ProcessedMediaTrack
SharedDummyStream -> SharedDummyTrack
SourceMediaStream -> SourceMediaTrack
StreamTime -> TrackTime
TrackUnionStream -> ForwardedInputTrack
  - Because this no longer takes a union of anything, but only a single track
    as input.

Other minor classes, members and comments have been updated to reflect these
name changes.

Differential Revision: https://phabricator.services.mozilla.com/D46146

--HG--
rename : dom/media/AudioCaptureStream.cpp => dom/media/AudioCaptureTrack.cpp
rename : dom/media/AudioCaptureStream.h => dom/media/AudioCaptureTrack.h
rename : dom/media/TrackUnionStream.cpp => dom/media/ForwardedInputTrack.cpp
rename : dom/media/TrackUnionStream.h => dom/media/ForwardedInputTrack.h
rename : dom/media/MediaStreamGraph.cpp => dom/media/MediaTrackGraph.cpp
rename : dom/media/MediaStreamGraph.h => dom/media/MediaTrackGraph.h
rename : dom/media/MediaStreamGraphImpl.h => dom/media/MediaTrackGraphImpl.h
rename : dom/media/MediaStreamListener.cpp => dom/media/MediaTrackListener.cpp
rename : dom/media/MediaStreamListener.h => dom/media/MediaTrackListener.h
rename : dom/media/webaudio/AudioNodeExternalInputStream.cpp => dom/media/webaudio/AudioNodeExternalInputTrack.cpp
rename : dom/media/webaudio/AudioNodeExternalInputStream.h => dom/media/webaudio/AudioNodeExternalInputTrack.h
rename : dom/media/webaudio/AudioNodeStream.cpp => dom/media/webaudio/AudioNodeTrack.cpp
rename : dom/media/webaudio/AudioNodeStream.h => dom/media/webaudio/AudioNodeTrack.h
extra : moz-landing-system : lando
2019-10-02 10:23:02 +00:00
Gurzau Raul 40dae37e00 Backed out 7 changesets (bug 1454998) for build bustages at MediaTrackGraph.h on a CLOSED TREE.
Backed out changeset 80417bdfa721 (bug 1454998)
Backed out changeset 8ff03f2f4ca2 (bug 1454998)
Backed out changeset ae6056b748d1 (bug 1454998)
Backed out changeset ab721cb2066b (bug 1454998)
Backed out changeset d0e8d413cd1c (bug 1454998)
Backed out changeset 3ce4dc7e9ae2 (bug 1454998)
Backed out changeset 6105a4176729 (bug 1454998)

--HG--
rename : dom/media/AudioCaptureTrack.cpp => dom/media/AudioCaptureStream.cpp
rename : dom/media/AudioCaptureTrack.h => dom/media/AudioCaptureStream.h
rename : dom/media/MediaTrackGraph.cpp => dom/media/MediaStreamGraph.cpp
rename : dom/media/MediaTrackGraph.h => dom/media/MediaStreamGraph.h
rename : dom/media/MediaTrackGraphImpl.h => dom/media/MediaStreamGraphImpl.h
rename : dom/media/MediaTrackListener.cpp => dom/media/MediaStreamListener.cpp
rename : dom/media/MediaTrackListener.h => dom/media/MediaStreamListener.h
rename : dom/media/ForwardedInputTrack.cpp => dom/media/TrackUnionStream.cpp
rename : dom/media/ForwardedInputTrack.h => dom/media/TrackUnionStream.h
rename : dom/media/webaudio/AudioNodeExternalInputTrack.cpp => dom/media/webaudio/AudioNodeExternalInputStream.cpp
rename : dom/media/webaudio/AudioNodeExternalInputTrack.h => dom/media/webaudio/AudioNodeExternalInputStream.h
rename : dom/media/webaudio/AudioNodeTrack.cpp => dom/media/webaudio/AudioNodeStream.cpp
rename : dom/media/webaudio/AudioNodeTrack.h => dom/media/webaudio/AudioNodeStream.h
2019-10-02 11:46:23 +03:00
Andreas Pehrson 36d89d91c8 Bug 1454998 - Rename streams to tracks. r=padenot,karlt,smaug
This renames the following (in alphabetical order, non-exhaustive):

AudioCaptureStream -> AudioCaptureTrack
AudioNodeStream -> AudioNodeTrack
AudioNodeExternalInputStream -> AudioNodeExternalInputTrack
DirectMediaStreamTrackListener -> DirectMediaTrackListener
MediaStream -> MediaTrack
  - Note that there's also dom::MediaTrack. Namespaces differentiate them.
MediaStreamGraph -> MediaTrackGraph
MediaStreamTrackListener -> MediaTrackListener
MSG -> MTG (in comments)
ProcessedMediaStream -> ProcessedMediaTrack
SharedDummyStream -> SharedDummyTrack
SourceMediaStream -> SourceMediaTrack
StreamTime -> TrackTime
TrackUnionStream -> ForwardedInputTrack
  - Because this no longer takes a union of anything, but only a single track
    as input.

Other minor classes, members and comments have been updated to reflect these
name changes.

Differential Revision: https://phabricator.services.mozilla.com/D46146

--HG--
rename : dom/media/AudioCaptureStream.cpp => dom/media/AudioCaptureTrack.cpp
rename : dom/media/AudioCaptureStream.h => dom/media/AudioCaptureTrack.h
rename : dom/media/TrackUnionStream.cpp => dom/media/ForwardedInputTrack.cpp
rename : dom/media/TrackUnionStream.h => dom/media/ForwardedInputTrack.h
rename : dom/media/MediaStreamGraph.cpp => dom/media/MediaTrackGraph.cpp
rename : dom/media/MediaStreamGraph.h => dom/media/MediaTrackGraph.h
rename : dom/media/MediaStreamGraphImpl.h => dom/media/MediaTrackGraphImpl.h
rename : dom/media/MediaStreamListener.cpp => dom/media/MediaTrackListener.cpp
rename : dom/media/MediaStreamListener.h => dom/media/MediaTrackListener.h
rename : dom/media/webaudio/AudioNodeExternalInputStream.cpp => dom/media/webaudio/AudioNodeExternalInputTrack.cpp
rename : dom/media/webaudio/AudioNodeExternalInputStream.h => dom/media/webaudio/AudioNodeExternalInputTrack.h
rename : dom/media/webaudio/AudioNodeStream.cpp => dom/media/webaudio/AudioNodeTrack.cpp
rename : dom/media/webaudio/AudioNodeStream.h => dom/media/webaudio/AudioNodeTrack.h
extra : moz-landing-system : lando
2019-10-02 08:18:16 +00:00
Karl Tomlinson fd627991c1 Bug 1538640 wait for GraphRunner thread shutdown r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D24673

--HG--
extra : moz-landing-system : lando
2019-03-26 00:13:55 +00:00
Karl Tomlinson faa25fa90f bug 1538630 Check a predicate when waiting on condition variables in GraphRunner r=pehrsons
so as to respond appropriately to spurious wakeups.

Checking the predicate before the first wait in Run() makes the mStarted
notification unnecessary.

Differential Revision: https://phabricator.services.mozilla.com/D24672

--HG--
extra : moz-landing-system : lando
2019-03-25 22:49:02 +00:00
Andreas Pehrson 43f191c096 Bug 1534238 - Initialize GraphRunner::mThread last. r=padenot
The thread may pre-empt the thread running the ctor and launch GraphRunner::Run
with uninitialized members. This patch ensures they are initialized first.

Differential Revision: https://phabricator.services.mozilla.com/D22963

--HG--
extra : moz-landing-system : lando
2019-03-11 13:18:04 +00:00
Andreas Pehrson acf9d0ab88 Bug 1473469 - Make MediaStreamGraph run on a single thread with AudioWorklets enabled. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D20828

--HG--
extra : moz-landing-system : lando
2019-03-06 20:12:25 +00:00
Csoregi Natalia 9d67bf069c Backed out changeset 45c838c4137d (bug 1473469) for various dom/worklet/ failures. CLOSED TREE 2019-03-01 19:39:32 +02:00
Andreas Pehrson 1b78f72fe7 Bug 1473469 - Make MediaStreamGraph run on a single thread with AudioWorklets enabled. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D20828

--HG--
extra : moz-landing-system : lando
2019-03-01 10:11:16 +00:00