Karl Tomlinson
cf94b7c62c
bug 1224022
produce memory report after processing main thread messages r=padenot
...
which may add new streams.
--HG--
extra : rebase_source : e4cda9aab2268b63251cda79143a3a5ba8fa3d77
2015-11-13 18:58:16 +13:00
David Anderson
27bfc27d62
Decouple SharedRGBImage and PlanarYCbCrImage from ImageContainer. (bug 1222910, r=mattwoodrow)
2015-11-17 00:09:01 -08:00
sajitk
582e1a55fa
Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
2015-11-15 14:49:01 +01:00
Wes Kocher
f3a9eb2a26
Backed out changeset 1e5f3d1151d6 (bug 1219480) for cpp unittest bustage CLOSED TREE
...
--HG--
extra : commitid : BMVKq6cPeho
2015-11-11 09:36:56 -08:00
sajitk
3cbe348cdd
Bug 1219480 - Replace PRLogModuleInfo with LazyLogModule in the media directory. r=rillian
...
--HG--
extra : rebase_source : c73098485fa005d914304fb6e7f8eba3c15e66dc
2015-11-11 06:52:00 +01:00
Alastor Wu
3219e1f97e
Bug 1218593 - switch back to the AudioCallbackDriver when there is new audio again. r=padenot
...
--HG--
extra : transplant_source : J%1C3K%E9/n%1E%BA%A5%96%F1Y%2B%FA%0BV%DA%06%98
2015-11-09 16:32:00 +08:00
Paul Adenot
9b5a91705c
Bug 1219403 - Remove MOZ_ASSERT for AssertOnGraphThreadOrNotRunning since it returns void and asserts inside, on a CLOSED TREE.
...
--HG--
extra : rebase_source : 06589fc412762caee6190852b994403bcc7404e1
2015-11-05 11:28:00 +01:00
Paul Adenot
10f8308a5d
Bug 1219403 - Account for the fact that MediaStream::Destroy can be run safely
...
on the main thread during shutdown.
--HG--
extra : rebase_source : e1d3b8bc0f97a885d289b6abfb493238222fcba7
2015-11-05 11:10:22 +01:00
Paul Adenot
ff0b8109b3
Bug 1219403 - r=karlt
...
--HG--
extra : rebase_source : 90488330acc388d8f04ac5a5cd3d330c9768d5a7
2015-11-05 09:36:25 +01:00
Karl Tomlinson
3c93b81fd5
bug 1217625
remove ADD_STREAM_SUSPENDED r=padenot
...
Sometimes we'll need an initial suspended count of 2, which is not supported
by this API, but this is not necessary anyway.
--HG--
extra : rebase_source : 56ecca7c14025ea7e18ba9a20e0b7725a610b429
2015-10-22 22:14:46 +13:00
Karl Tomlinson
008976864a
bug 1217625
add a means to schedule a callback after processing on the graph thread r=padenot
...
--HG--
extra : rebase_source : 65cdfcc2af43ea01cb1e6f4111098ac5d9f4239f
2015-10-22 18:47:57 +13:00
Birunthan Mohanathas
9985829ecc
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Andreas Pehrson
cd79c1257d
Bug 1216417 - Add logging for audio and video output changes in MSG. r=roc
...
--HG--
extra : commitid : 22iTDWGdkKT
extra : rebase_source : fe30f433900b8e685f6c1d525c1b279babbb8079
2015-10-29 13:19:51 +08:00
Andreas Pehrson
72945ba2fb
Bug 1216417 - Make sure audio output streams are created after adding an audio output. r=baku,roc
...
--HG--
extra : commitid : CokiumKN7uN
extra : rebase_source : dad1049848b860d59d48b89832df5cb34c9563f3
2015-10-29 13:18:38 +08:00
Robert O'Callahan
2c08de69e9
Bug 1215699. Ensure that AudioGraphDriver uses the MediaStreamGraph's AudioChannel. r=padenot
2015-10-23 16:43:15 +13:00
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