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

162 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst e6d06af59f Backed out 2 changesets (bug 1215699, bug 1209994) for web platform failures. r=backout
Backed out changeset a8adf1f9d366 (bug 1209994)
Backed out changeset f5ed98fdc16e (bug 1215699)
2015-10-24 15:38:03 +02:00
Robert O'Callahan c97605eefe Bug 1215699. Ensure that AudioGraphDriver uses the MediaStreamGraph's AudioChannel. r=padenot
--HG--
extra : commitid : DMIEO7qauwZ
extra : rebase_source : e34a31e0adb0a9a6b3e4ff259d8ffdafe12e3c68
2015-10-23 16:43:15 +13:00
Julian Seward 214a7d0bfc Bug 1216059 - SourceMediaStream::TrackData::mResamplerChannelCount is used uninitialised. r=padenot.
--HG--
extra : rebase_source : fa2d5d6482960bcef66c6d1fc5a1ae7076ed2e34
2015-10-20 12:01:08 +02:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Bobby Holley f729d738ab Bug 1208656 - Grab the tail dispatch each time in case the runnable spins the event loop. r=khuey
If the runnable spins the event loop, we may end up firing the tail dispatcher,
which causes the AutoTaskDispatcher to be destroyed, after which point invoking
methods on it will crash. We need to grab it each time so that it will be lazily
instantiated as-needed.
2015-10-04 22:46:16 -07:00
Sotaro Ikeda 739eddd54e Bug 1186813 - Replace nsBaseHashtable::EnumerateRead() calls in dom/media/ with iterators r=cpearce 2015-09-30 06:40:54 -07:00
Andreas Pehrson 937747498a Bug 1170958 - Refactor DOMMediaStream to contain a 3-stage track chain. r=roc
This lets us separate tracks by ownership like so:
* Input    - Owned by the producer of the DOMMediaStream (gUM etc.)
* Owned    - Contains Input tracks (per above) or tracks cloned tracks
             if this DOMMediaStream is a clone.
* Playback - Contains Owned tracks plus tracks addTrack()ed to this
             DOMMediaStream minus tracks removeTrack()ed from this
             DOMMediaStream.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : fba22e96c6c65a74e012509f3da67a4d7df7a244
2015-09-30 09:31:54 +08:00
Andreas Pehrson 53a6c38d0d Bug 1170958 - Allow MediaInputPort to lock to a specific input track. r=roc
Locking to specific tracks lets us dynamically remove and add single
tracks to a ProcessedMediaStream.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : 0b1b79077f95bbefc8c71de551c5e3483a7d6ac0
2015-09-30 09:31:53 +08:00
Karl Tomlinson e8c9471dea bug 1208327 make enum AudioContextOperation strongly typed and forward declare instead of including AudioContext.h r=roc
AudioContext.h is now exported only under mozilla.dom.

--HG--
extra : rebase_source : 7fc0a25a6bb8efe497a0e779dca2df5d7e3397b1
2015-09-25 08:49:03 +12:00
Wes Kocher 03a1803261 Backed out 9 changesets (bug 1170958) for frequent test_getUserMedia_addTrackRemoveTrack.html failures
Backed out changeset 277c1f8098d1 (bug 1170958)
Backed out changeset aa86bb9eea95 (bug 1170958)
Backed out changeset 8af8b85a4b26 (bug 1170958)
Backed out changeset ec1bf225e9cb (bug 1170958)
Backed out changeset 4a04ddca2b6b (bug 1170958)
Backed out changeset e85c9977a311 (bug 1170958)
Backed out changeset 16b40ff04e8f (bug 1170958)
Backed out changeset ad206925c84a (bug 1170958)
Backed out changeset 2106eccec79b (bug 1170958)
2015-09-25 13:08:55 -07:00
Andreas Pehrson eacfc2cf0e Bug 1170958 - Refactor DOMMediaStream to contain a 3-stage track chain. r=roc
This lets us separate tracks by ownership like so:
* Input    - Owned by the producer of the DOMMediaStream (gUM etc.)
* Owned    - Contains Input tracks (per above) or tracks cloned tracks
             if this DOMMediaStream is a clone.
* Playback - Contains Owned tracks plus tracks addTrack()ed to this
             DOMMediaStream minus tracks removeTrack()ed from this
             DOMMediaStream.

--HG--
extra : commitid : Kvj9RrN9MgP
2015-09-25 23:23:18 +08:00
Andreas Pehrson cbd58a2839 Bug 1170958 - Allow MediaInputPort to lock to a specific input track. r=roc
Locking to specific tracks lets us dynamically remove and add single
tracks to a ProcessedMediaStream.

--HG--
extra : commitid : Kvj9RrN9MgP
2015-09-25 23:23:18 +08:00
Karl Tomlinson b8a08a30f9 bug 1205540 make source stream available during RemoveInput r=padenot
--HG--
extra : rebase_source : 9f228fc8f2e6bc173dc3f7917c34f4b066f38209
2015-09-09 14:19:05 +12:00
Carsten "Tomcat" Book 1ae732f5ba Backed out 5 changesets (bug 1205540) for Assertion Failurs in m2-e10s tests on a CLOSED TREE
Backed out changeset e89d8182d588 (bug 1205540)
Backed out changeset abace4cdec06 (bug 1205540)
Backed out changeset b3f6e1db7233 (bug 1205540)
Backed out changeset 0d122cb34921 (bug 1205540)
Backed out changeset 4de5f87180fb (bug 1205540)
2015-09-18 16:36:33 +02:00
Karl Tomlinson d7b9ada3a0 bug 1205540 make source stream available during RemoveInput r=padenot
--HG--
extra : rebase_source : f9b4e488e52eb3717808c0efbaf5c0815627c8f0
2015-09-09 14:19:05 +12:00
Robert O'Callahan da228403af Bug 1189506. Make PlayAudio use GraphTimeToStreamTime. r=karlt
--HG--
extra : commitid : 2tdDaVI6RGX
extra : rebase_source : ca0e4253be97bf15ca194f26dc39d76ade806fc8
2015-09-08 17:19:03 +12:00
Robert O'Callahan de2107e951 Bug 1189506. Make PlayVideo use GraphTimeToStreamTime/StreamTimeToGraphTime and remove StreamTimeToGraphTimeWithBlocking. r=karlt
--HG--
extra : commitid : AZ6bA7qp74U
extra : rebase_source : 0e34439af77309478725ae8679cb4a8298e0b180
2015-09-08 17:18:01 +12:00
Robert O'Callahan 3b5a766000 Bug 1189506. Relax assertions a bit. karlt
--HG--
extra : commitid : FznTYdvkbH5
extra : rebase_source : 6fb905cb7177389e0e9b45710c0f61c1ccc5433c
2015-09-08 17:14:43 +12:00
Robert O'Callahan fbcc5de786 Bug 1189506. Use GraphTimeToStreamTime in PrepareUpdatesToMainThreadState. r=karlt
--HG--
extra : commitid : APael1C16Ie
extra : rebase_source : 0b0f2a603129c5efe1952275fef2f3021c9a0cca
2015-09-08 17:12:01 +12:00
Robert O'Callahan 85592c5fc0 Bug 1189506. Use mProcessedTime/mStateComputedTime in ProduceDataForStreamsBlockByBlock. karlt
--HG--
extra : commitid : 9tpkCW2vhWj
extra : rebase_source : 17d886e7b7a51834dec6ea53e41a7f7ef08ec58b
2015-09-16 16:24:10 +12:00
Robert O'Callahan 7395a6b7fd Bug 1189506. Use mStateComputedTime in some places instead of passing aTo. r=karlt
--HG--
extra : commitid : LR21taIGcGM
extra : rebase_source : c228ba660e8ced61a17e9ec52fb47fff0d07b4c5
2015-09-08 16:58:19 +12:00
Robert O'Callahan 2ca14cc805 Bug 1189506. Use mProcessedTime in some places instead of passing aFrom. r=karlt
--HG--
extra : commitid : 332ie8PhPom
extra : rebase_source : 7ff2eaff9a3a7b12208a06e99233aea523143fb9
2015-09-16 16:23:14 +12:00
Robert O'Callahan c4f0cbe5be Bug 1189506. Call GraphTimeToStreamTime in ExtractPendingInput since we know no blocking time has been determined yet. r=karlt
--HG--
extra : commitid : JfzX4n7MyFp
extra : rebase_source : ab9fdf7d503fcce2d4277279a6d654436953edb5
2015-09-08 16:50:55 +12:00
Robert O'Callahan 592e13f05f Bug 1189506. Call StreamTimeToGraphTime in MediaStreamGraphImpl::UpdateCurrentTimeForStreams, since we know blocking has been taken account of already there. r=karlt
--HG--
extra : commitid : YABaL6h9O0
extra : rebase_source : 3032e3a04a14f2d203ea29c501d8ebc08f531365
2015-09-08 16:38:40 +12:00
Robert O'Callahan e57b277663 Bug 1189506. Remove INCLUDE_TRAILING_BLOCKED_INTERVAL from PlayVideo. r=karlt
A video frame whose timestamp is right at mStartBlocking should just be
rendered then, not delayed until the end of blocking.

--HG--
extra : commitid : 4rKTsHCwdQX
extra : rebase_source : fc6340972ba9eacaf084e3dd8f6b2344642c9224
2015-09-08 16:42:42 +12:00
Robert O'Callahan 5e38d30d6f Bug 1189506. Create StreamTimeToGraphTime/GraphTimeToStreamTime that don't take account of blocking, and call them from AudioNodeStream. r=karlt
--HG--
extra : commitid : KZL20bqIcTe
extra : rebase_source : 001476a097968e6fa382949ababbf6bdd5e4f76d
2015-09-16 16:35:16 +12:00
Robert O'Callahan bac0eac77c Bug 1189506. Set mStartBlocking in UpdateCurrentTimeForStreams to indicate that blocking time has been processed. r=karlt
--HG--
extra : commitid : BgPlIfIaRdL
extra : rebase_source : b7f9d55167ffcaa21c2b0cda82fe6110107f4baf
2015-09-08 15:55:40 +12:00
Robert O'Callahan 13179ae295 Bug 1189506. Rename StreamTimeToGraphTime/GraphTimeToStreamTime to ...WithBlocking. r=karlt
--HG--
extra : commitid : 77I6WKoXbJA
extra : rebase_source : b289cbcb99c4bc52d70c78a6195c992bb5ba7ac1
2015-09-08 15:41:00 +12:00
Robert O'Callahan 2a625e1dff Bug 1189506. Inline StreamNotifyOutput/StreamNotifyFinished. r=karlt
--HG--
extra : commitid : 6OpIJNpUxuj
extra : rebase_source : 9932d2688fd7ee64a5b267a69a1ba53cef6102f2
2015-09-05 00:45:14 +12:00
Robert O'Callahan cb09439d97 Bug 1189506. No need to pass aNextCurrentTime to UpdateCurrentTimeForStreams. r=karlt
--HG--
extra : commitid : LUQBrLpUxAE
extra : rebase_source : f170667a03f21b1a42852890b61bd43875edc47a
2015-09-05 00:42:53 +12:00
Robert O'Callahan ebcc8535cb Bug 1189506. Move setting of mStateComputedTime to OneIteration so it's near setting mProcessedTime. r=karlt
--HG--
extra : commitid : HBgr3Azbapn
extra : rebase_source : 79ef722317501204538432e85524ab1907d769f6
2015-09-05 00:41:15 +12:00
Robert O'Callahan 4b25e25cff Bug 1189506. Factor out code from OneIteration into helper methods. r=karlt
--HG--
extra : commitid : AvOJQUkXuiW
extra : rebase_source : c147f947d4c1823a9b558728c484c6cc65821b13
2015-09-05 00:26:48 +12:00
Robert O'Callahan d19d095ee1 Bug 1189506. Remove unused mFlushSourcesNow/mFlushSourcesOnNextIteration. r=karlt
--HG--
extra : commitid : KbKHmcvNA45
extra : rebase_source : 9b26eca9627096225e3d02b52392d8228108d45b
2015-09-05 00:20:17 +12:00
Robert O'Callahan d745ffaf22 Bug 1189506. Remove unused NotifyConsumptionChanged. r=karlt
--HG--
extra : commitid : 844LybDIKss
extra : rebase_source : 6a514c1ef0926e540e4d27a1e3f9561636c38ddb
2015-09-04 21:39:35 +12:00
Robert O'Callahan 888a6d633f Bug 1189506. Inline ComputeStreamBlockTime. r=karlt
--HG--
extra : commitid : 3poi1cOxeat
extra : rebase_source : 64d21bf4c6fe87a0093dfd0cc717c0fd97a93cf8
2015-09-09 01:23:31 +12:00
Robert O'Callahan b94329c0b7 Bug 1189506. Inline RecomputeBlocking. r=karlt
--HG--
extra : commitid : ECWfU6QgUqK
extra : rebase_source : 781d67d1d53da85992152cb3ea816ffa8e66c6cf
2015-09-04 19:42:11 +12:00
Robert O'Callahan af915b4615 Bug 1189506. Replace MediaStream::mBlocked with simpler MediaStream::mStartBlocking. r=karlt
--HG--
extra : commitid : 6oeQQSBwAhx
extra : rebase_source : 3eca2ce813fa457435976f9027753ff73d6e7ac8
2015-09-04 18:44:43 +12:00
Robert O'Callahan 9c2e5faea3 Bug 1189506. Remove unused MediaStreamGraph::GetBufferedTicks. r=karlt
--HG--
extra : commitid : LtZfMVKOr50
extra : rebase_source : 4eff93b6d89b135b04b46c987d468e6d6ec9dbd4
2015-09-04 18:44:20 +12:00
Robert O'Callahan a80a6acc01 Bug 1189506. Remove misleading comment. r=karlt
--HG--
extra : commitid : Lvxlg4bzsvP
extra : rebase_source : aa479a345e700bad413a6984d07ae5bf22050e23
2015-09-04 18:07:39 +12:00
Robert O'Callahan 27567d312d Bug 1189506. Simplify PlayAudio based on the fact that track time units == stream time units. r=karlt
--HG--
extra : commitid : BjRspwrOnO1
extra : rebase_source : 2497bf51387c6738aeb5de83be86170d400daf1b
2015-09-04 18:04:09 +12:00
Robert O'Callahan 244a142843 Bug 1189506. Fix multi-track MediaStream audio output. r=karlt
--HG--
extra : commitid : 4dgdSqpqKqg
extra : rebase_source : 1aa877cd02cfb224d71480af781393a4199e4232
2015-09-04 17:58:26 +12:00
Robert O'Callahan d18eba5a82 Bug 1189506. Simplify blocking calculations based on the observation that once a stream starts blocking in a given processing interval, it must stay blocked. r=karlt
--HG--
extra : commitid : 2gcihxVXqlY
extra : rebase_source : dfb0bf716b8608a47fef25838c3fccdf132e0f82
2015-09-16 16:17:30 +12:00
Robert O'Callahan 2e597371be Bug 1189506. Remove mExplicitBlockerCount and related code since it's always zero now. r=karlt
--HG--
extra : commitid : 3UdhGMG9QiH
extra : rebase_source : 041f2fa34a458926dbe5e376d7003f9a9734a981
2015-09-04 17:00:25 +12:00
Robert O'Callahan 49907deeb0 Bug 1189506. Remove MediaStream::mBlockInThisPhase. r=karlt
--HG--
extra : commitid : HnnHdwAwJZ0
extra : rebase_source : 403dd9e309f56f0aa84467f0652ac5b6a98c242d
2015-09-04 16:57:32 +12:00
Robert O'Callahan 4de38847f5 Bug 1189506. Simplify blocking code now that stream blocking decision are always independent of other streams. r=karlt
--HG--
extra : commitid : 7du3gdoRlpL
extra : rebase_source : ea22fe1b46a9a27bbab3fc250f688aa9dae53250
2015-09-16 16:15:55 +12:00
Robert O'Callahan 33caf40bd0 Bug 1189506. Remove MediaInputPort::mFlags. r=karlt
--HG--
extra : commitid : L7X1cMHM93I
extra : rebase_source : 699460a9f2c736f09549cdef50b0cb2d052daa21
2015-09-04 16:45:21 +12:00
Robert O'Callahan 53dbc8f50e Bug 1189506. Remove aFlags parameter from AllocateInputPort. r=karlt
--HG--
extra : commitid : GZuYprloPNM
extra : rebase_source : 17ca412dd6232ad5c739918500d959a03895a65c
2015-09-04 16:42:42 +12:00
Robert O'Callahan 86c380603b Bug 1189506. Convert ChangeExplicitBlockerCount to MediaStream::Suspend/Resume. r=padenot
--HG--
extra : commitid : EAfe35GbRPL
extra : rebase_source : f6da37f3a9e8eefbdcf3e6787ec7edcc99e53859
2015-09-11 01:45:36 +12:00
Robert O'Callahan bd5afc4b2e Bug 1189506. Make suspending/resuming streams more reusable. r=padenot
--HG--
extra : commitid : 9AmFobj0UO9
extra : rebase_source : dd1ff2f6e78c4052641f00dd004f19ba3e0d32fc
2015-09-03 23:54:00 +12:00
Robert O'Callahan 65cc97b0f3 Bug 1189506. Make AudioContext responsible for tracking all nodes which need to be suspended and resumed. r=padenot
This simplifies MediaStreamGraph by removing the need for it to be aware
of which AudioContext a stream belongs to.

This also makes it easier to reuse stream suspending for purposes other than
AudioContext suspend/resume.

--HG--
extra : commitid : 9EmNxlrjVFO
extra : rebase_source : fee4b35d09c8f5dec76e41840d81423cde619886
2015-09-16 16:15:21 +12:00