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

90 Коммитов

Автор SHA1 Сообщение Дата
Randell Jesup f99728abf6 Bug 1255737: Move MSG shutdown max-timeout from just only cubeb shutdown to the entire graph r=padenot
Effectively backs out the previous landing for bug 1255737

MozReview-Commit-ID: 37QfhATw8wU
2016-10-02 13:51:40 -04:00
Andreas Pehrson b8ed2ee25c Bug 1299172 - Assert on MSG thread in DispatchToMainThreadAfterStreamStateUpdate. r=jesup
MozReview-Commit-ID: 9ihJduZOSa

--HG--
extra : rebase_source : 1088fc98f97456c933f146565ba91ce0358e6a4c
2016-08-31 14:07:53 +02:00
Randell Jesup 9f2b9ce819 Bug 1298698: Block race between EnsureNextIteration and WaitForNextIteration r=karlt 2016-08-29 10:41:01 -04:00
ctai 2c69985ffe Bug 1201363 - Call MediaStreamVideoSink::setCurrentFrames in SourceMediaStream::AppendToTrack. r=jesup
In this patch, we first deal with the case of MediaElement. Now we replace |PlayVideo| with |VideoFrameContainer::SetCurrentFrames| in |SourceMediaStream::AppendToTrack|. The MSG use TimeStamp::Now() for the TimeStamp of each video frame in most of case except MediaElement case. Becasue the MediaElement has its own VideoQueue, we need to calucalte the correct Timestamp based on the StartTimeStamp of this MediaStream and the elpased time of the video frame in DecodedStream.

MozReview-Commit-ID: 2bm2AHkFXHu

--HG--
extra : transplant_source : %3D%AA%00%CE%A3SV5%8F%84%96%AC%E2%D9%10%EC%85%07N%DF
2016-07-25 10:01:26 +08:00
Sebastian Hengst f4671c3b11 Backed out changeset 4111e388bd90 (bug 1201363) 2016-08-03 19:33:25 +02:00
ctai a3cc6128d3 Bug 1201363 - Call MediaStreamVideoSink::setCurrentFrames in SourceMediaStream::AppendToTrack. r=jesup
In this patch, we first deal with the case of MediaElement. Now we replace |PlayVideo| with |VideoFrameContainer::SetCurrentFrames| in |SourceMediaStream::AppendToTrack|. The MSG use TimeStamp::Now() for the TimeStamp of each video frame in most of case except MediaElement case. Becasue the MediaElement has its own VideoQueue, we need to calucalte the correct Timestamp based on the StartTimeStamp of this MediaStream and the elpased time of the video frame in DecodedStream.

MozReview-Commit-ID: 2bm2AHkFXHu

--HG--
extra : amend_source : 7b9c51dcb4046c6c807d1cf1e48bef301e45fa8e
2016-07-25 10:01:26 +08:00
Carsten "Tomcat" Book 27cb7f4d79 Backed out changeset 06c0a7eb7bc6 (bug 1201363) 2016-08-02 12:53:53 +02:00
ctai edeaa48113 Bug 1201363 - Call MediaStreamVideoSink::setCurrentFrames in SourceMediaStream::AppendToTrack. r=jesup
In this patch, we first deal with the case of MediaElement. Now we replace |PlayVideo| with |VideoFrameContainer::SetCurrentFrames| in |SourceMediaStream::AppendToTrack|. The MSG use TimeStamp::Now() for the TimeStamp of each video frame in most of case except MediaElement case. Becasue the MediaElement has its own VideoQueue, we need to calucalte the correct Timestamp based on the StartTimeStamp of this MediaStream and the elpased time of the video frame in DecodedStream.

MozReview-Commit-ID: 2bm2AHkFXHu

--HG--
extra : transplant_source : %C4n%D7a%10%CFK%D5%F2%DC%10%08%C2%24%EC%11%13J%DB%5D
2016-07-25 10:01:26 +08:00
Karl Tomlinson fc0ef5c59f bug 1242268 record MSG memory sizes asynchronously r=padenot
This removes the one second timeout for MSG collection, extending the timeout
period to the 50 second timeout of nsMemoryReporterManager.

Also removed:

* The condition variable logic that can stop waiting without checking the
  condition set when memory reports are complete.

* Races with mAudioStreamSizes modification on two threads after wait timeout.

Memory from streams in offline graphs that are not yet running is now also
included.

MozReview-Commit-ID: FkI61iJFrZ5

--HG--
extra : rebase_source : 200d332165ef21497bcfa24b86b6ff029f8ac212
2016-07-04 10:40:48 +12:00
Karl Tomlinson 2b9f2187bf bug 1242268 document mLifecycleState multithread access management r=padenot
MozReview-Commit-ID: 1479atSNipN

--HG--
extra : rebase_source : 5048a75f5223901e16c8af09583cbda41b290c2c
2016-07-04 16:33:05 +12:00
Andreas Pehrson e028368c0f Bug 1280445 - Remove wrapper from MediaStream. r=jesup, r=padenot
MozReview-Commit-ID: CTCFloIUXKa

--HG--
extra : rebase_source : b1c2073c638bb65c19a0f40e8d17e9a5bae15c98
extra : source : c6d854b3209e7de7d97153c0bfc492c1d5f1e6b5
2016-06-29 12:27:13 +02:00
Andrew McCreight 9b9bcbfa17 Bug 1276383 - Add nsIAsyncShutdown.xpcomWillShutdown and use it in WebRTC. r=Yoric,jib 2016-06-01 15:05:53 -07:00
ctai a06045fa0f Bug 1266644 - Update the comments to reflect the latest code base. r=jesup r=pehrsons r=padenot 2016-04-25 15:00:43 +08:00
ctai 8fcb64e480 Bug 1266644 - Rename StreamBuffer to StreamTracks. r=jesup r=pehrsons
Rename StreamBuffer to StreamTracks. We still need a place to keep the track information in every MediaStream, even the StreamBuffer::Track::mSegment is empty.

--HG--
rename : dom/media/StreamBuffer.cpp => StreamTracks.cpp
rename : dom/media/StreamBuffer.h => StreamTracks.h
2016-01-26 10:49:01 +08:00
Andreas Pehrson 15e9109891 Bug 1208371 - Add `NotifyPrincipalHandleChanged` to MediaStreamTrackListener. r=mt,jesup
MozReview-Commit-ID: Hq0XtqIiMAO

--HG--
extra : rebase_source : 3483bff525ba50bc45f409463e7eb49056adbdf4
2016-01-26 16:45:25 +08:00
Randell Jesup 9cec436b3e Bug 1250934: remove unused method from MediaStreamGraphImpl r=padenot
on IRC
MozReview-Commit-ID: 2o6v4T7e4Qw
2016-03-08 12:11:09 -05:00
Randell Jesup a237d6632f Bug 1250934: Only dig out cubeb deviceIDs immediately before use since they can be freed r=padenot
MozReview-Commit-ID: CyIk4WCuJ9s
2016-03-08 12:11:09 -05:00
Randell Jesup 6cbe994f89 Bug 1250934: Factor out AudioTracksPresent() in MediaStreamGraph, and add checks of 'pending' tracks r=padenot
MozReview-Commit-ID: KLWleRaAjx3
2016-03-08 12:11:08 -05:00
Randell Jesup 674904d269 Bug 1237816: count open input sources for MediaStreams to release inputs on Destroy() r=roc,padenot
MozReview-Commit-ID: LkCBqPXAWBP
2016-02-03 21:12:51 -05:00
Nathan Froyd 778b4efbe3 Bug 1247395 - use UniquePtr for control messages in MediaStreamGraphImpl; r=roc 2016-01-20 16:14:33 -05:00
Jan-Ivar Bruaroey 286f642e6a Bug 1239873 - Use AsyncShutdown API to shut down MediaStreamGraph thread. r=jesup
--HG--
extra : rebase_source : e79a1b0fdf3d37315707673ab94fc7cfb8e06981
2016-01-22 13:49:54 -05:00
Randell Jesup 46878bf96f Bug 1221587: use cubeb devids to select input devices r=padenot
--HG--
extra : commitid : AH6Lt4KfNaF
2016-01-21 11:51:36 -05:00
Randell Jesup be7d8f1d36 Bug 1221587: change audio listeners for full-duplex audio r=padenot
--HG--
extra : commitid : HGZSv3IY3OF
2016-01-21 11:51:36 -05:00
Randell Jesup 6d7d97d7bc Bug 1221587: Base update of the MSG API for full-duplex r=padenot
--HG--
extra : commitid : Kf1JpZKH7LH
2016-01-21 11:51:35 -05:00
Wes Kocher d8d8cf6b90 Backed out changeset 3bd606775747 (bug 1221587)
--HG--
extra : commitid : 73qThGgq9ee
2016-01-21 17:28:29 -08:00
Wes Kocher 4d52f1b36b Backed out changeset 765fa97d2407 (bug 1221587)
--HG--
extra : commitid : GLNtVETOSsb
2016-01-21 17:28:26 -08:00
Wes Kocher 71e2d1b3e4 Backed out changeset 8af4dd12d47c (bug 1221587)
--HG--
extra : commitid : AD53AdwdwaG
2016-01-21 17:28:25 -08:00
Randell Jesup 2501b5c4c1 Bug 1221587: use cubeb devids to select input devices r=padenot
--HG--
extra : commitid : 80Zdtlc9zJI
2016-01-21 11:51:36 -05:00
Randell Jesup a621cb7376 Bug 1221587: change audio listeners for full-duplex audio r=padenot
--HG--
extra : commitid : 9yDpe5JP1eS
2016-01-21 11:51:36 -05:00
Randell Jesup 3abc9ead67 Bug 1221587: Base update of the MSG API for full-duplex r=padenot
--HG--
extra : commitid : 4p2GpBpkEVz
2016-01-21 11:51:35 -05: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
Karl Tomlinson bb8a93dc33 bug 1217625 remove unused MessageQueue() and document message queue thread access r=padenot
--HG--
extra : rebase_source : f28aa4521c0d9c7b323a9f280e5c3be367594b18
2015-09-17 17:08:10 +12:00
Karl Tomlinson aecb657d3f bug 1217625 remove declarations of undefined methods r=padenot
--HG--
extra : rebase_source : 415301098f40103aaa1fb5986c12101b8e8009b7
2015-10-22 16:46:06 +13: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
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
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 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 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 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 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