Closed
Bug 1503132
Opened 6 years ago
Closed 6 years ago
Run offline MSG thread even when not rendering
Categories
(Core :: Web Audio, enhancement, P2)
Core
Web Audio
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: karlt, Assigned: karlt)
References
Details
Attachments
(18 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
This is necessary to process events for AudioWorklet (which may run JS) on the same thread as JS is running during rendering.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=54eeba1e2378c32553c9e187f5c0e0852c4b7f35
Assignee | ||
Comment 1•6 years ago
|
||
MozReview-Commit-ID: 2y6b7sP1vJZ
Assignee | ||
Comment 2•6 years ago
|
||
MozReview-Commit-ID: 1QKFopM8qIV
Depends on D10159
Assignee | ||
Comment 3•6 years ago
|
||
MozReview-Commit-ID: CHudtPp66BC
Depends on D10160
Assignee | ||
Comment 4•6 years ago
|
||
mWaitState is only ever tested against WAITSTATE_WAITING_INDEFINITELY and so
the other values are equivalent. It is never WAITSTATE_WAITING_INDEFINITELY
on leaving (or entering) WaitForNextIteration and so there is no need to set
it in WakeUp().
Depends on D10161
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D10162
Assignee | ||
Comment 6•6 years ago
|
||
Depends on D10163
Assignee | ||
Comment 7•6 years ago
|
||
Depends on D10164
Assignee | ||
Comment 8•6 years ago
|
||
AudioWorket will need to keep processing events on the graph thread.
The graph thread is instead shut down when the AudioContext is destroyed.
Depends on D10165
Assignee | ||
Comment 9•6 years ago
|
||
Depends on D10166
Assignee | ||
Comment 10•6 years ago
|
||
This will prevent rendering from starting when the graph thread is started
before StartNonRealtimeProcessing() is called.
Depends on D10167
Assignee | ||
Comment 11•6 years ago
|
||
With this change, the graph is already running when mEndTime is set and so
this must be done on the graph thread for consistent ordering with in-flight
messages.
Depends on D10168
Assignee | ||
Comment 12•6 years ago
|
||
Depends on D10169
Assignee | ||
Comment 13•6 years ago
|
||
Depends on D10170
Assignee | ||
Comment 14•6 years ago
|
||
Depends on D10171
Assignee | ||
Comment 15•6 years ago
|
||
Depends on D10172
Assignee | ||
Comment 16•6 years ago
|
||
Depends on D10173
Assignee | ||
Comment 17•6 years ago
|
||
decodeAudioData() is a common OfflineAudioContext use case where the graph
is not required.
Depends on D10174
Assignee | ||
Comment 18•6 years ago
|
||
Depends on D10175
Comment 19•6 years ago
|
||
Pushed by ktomlinson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/981f31de3924
remove unused MediaStream::ConsumerCount() r=padenot
https://hg.mozilla.org/integration/autoland/rev/3fb0c8f6d6e2
remove unused MediaStreamGraphImpl::Running() r=padenot
https://hg.mozilla.org/integration/autoland/rev/3eca90e1af07
remove unnecessary monitor notify for AudioCallbackDriver r=padenot
https://hg.mozilla.org/integration/autoland/rev/7889d20e3a29
remove unnecessary SystemClockDriver::mWaitState r=padenot
https://hg.mozilla.org/integration/autoland/rev/543cac7034fe
add wait/wake-up support to OfflineAudioContext r=padenot
https://hg.mozilla.org/integration/autoland/rev/de7f45d6f032
update offline main thread state when there is no pending iteration r=padenot
https://hg.mozilla.org/integration/autoland/rev/7e9935a07eaf
when graph time has not advanced, only ensure another iteration if rendering r=padenot
https://hg.mozilla.org/integration/autoland/rev/61d08765489c
do not shut down graph thread on completion of offline rendering r=padenot
https://hg.mozilla.org/integration/autoland/rev/d9eda2382bd9
remove unused ProcessedMediaStream::QueueFinish() r=padenot
Comment 20•6 years ago
|
||
Pushed by ktomlinson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ba172f2b086a
initialize mEndTime to zero for offline graphs r=padenot
https://hg.mozilla.org/integration/autoland/rev/2c97e4069615
create offline graph thread on receipt of the first message r=padenot
https://hg.mozilla.org/integration/autoland/rev/a1573c156ba1
make RoundUpToEndOfAudioBlock() a static member r=padenot
https://hg.mozilla.org/integration/autoland/rev/ec0336b4a1bf
remove special-case sync dispatch for not-started offline RunAfterPendingUpdates() r=padenot
https://hg.mozilla.org/integration/autoland/rev/90a9506812f6
remove mNonRealtimeProcessing r=padenot
https://hg.mozilla.org/integration/autoland/rev/5744145e9c7e
remove unused HasAudioOutput() r=padenot
https://hg.mozilla.org/integration/autoland/rev/89480ab36714
don't add audio output to offline streams r=padenot
https://hg.mozilla.org/integration/autoland/rev/821b04c10c0d
delay creation of offline graph and stream that may not be required r=padenot
https://hg.mozilla.org/integration/autoland/rev/9c23717ddc50
remove unused function finish() r=padenot
Comment 21•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/981f31de3924
https://hg.mozilla.org/mozilla-central/rev/3fb0c8f6d6e2
https://hg.mozilla.org/mozilla-central/rev/3eca90e1af07
https://hg.mozilla.org/mozilla-central/rev/7889d20e3a29
https://hg.mozilla.org/mozilla-central/rev/543cac7034fe
https://hg.mozilla.org/mozilla-central/rev/de7f45d6f032
https://hg.mozilla.org/mozilla-central/rev/7e9935a07eaf
https://hg.mozilla.org/mozilla-central/rev/61d08765489c
https://hg.mozilla.org/mozilla-central/rev/d9eda2382bd9
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Comment 22•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ba172f2b086a
https://hg.mozilla.org/mozilla-central/rev/2c97e4069615
https://hg.mozilla.org/mozilla-central/rev/a1573c156ba1
https://hg.mozilla.org/mozilla-central/rev/ec0336b4a1bf
https://hg.mozilla.org/mozilla-central/rev/90a9506812f6
https://hg.mozilla.org/mozilla-central/rev/5744145e9c7e
https://hg.mozilla.org/mozilla-central/rev/89480ab36714
https://hg.mozilla.org/mozilla-central/rev/821b04c10c0d
https://hg.mozilla.org/mozilla-central/rev/9c23717ddc50
You need to log in
before you can comment on or make changes to this bug.
Description
•