Kaku Kuo
7a21c972cd
Bug 1346498 part 5 - don't check mHasSuspendTaint in HandleVideoSuspendTimeout(); r=jwwang
...
If mHasSuspendTaint is set, the mVideoDecodeSuspendTimer should already be canceled
so that HandleVideoSuspendTimeout() won't be invoked.
MozReview-Commit-ID: BGwSucZtH4d
2017-03-11 15:09:15 +08:00
Kaku Kuo
c4cc6a9357
Bug 1346498 part 4 - remove mIsVisible cannonical-mirror pair; r=jwwang
...
The role of MDSM::mIsVisible and MDSM::VisibilityChanged() have been replaced by
the MDSM::mVideoDecodeMode and MDSM::VideoDecodeModeChanged() completely.
MozReview-Commit-ID: 8sW0s8ilF1E
2017-03-11 14:06:09 +08:00
Kaku Kuo
03827027fd
Bug 1346498 part 2 - implement the VideoDecodeMode mechanism in MDSM; r=jwwang
...
The MDSM::mVideoDecodeMode and MDSM::SetVideoDecodeMode() are merely a renaming of MDSM::mIsVisible and MDSM::VisibilityChanged().
However, the renaming explicitly reflects that MDSM provides mechanism only without participating in the policy decision.
Will reremove the MDSM::mIsVisible and MDSM::VisibilityChanged() in following patches.
MozReview-Commit-ID: JdMKQTgVCf3
2017-03-10 16:17:46 +08:00
Kaku Kuo
23e79910a1
Bug 1345403 part 4 - Clean up suspend timer canceling; r=jwwang
...
MozReview-Commit-ID: LuNmrtDl4BR
2017-03-08 21:28:01 +08:00
Kaku Kuo
8df8c0f4ad
Bug 1345403 part 1 - Track decoder tainting; r=jwwang
...
Some uses of media elements should 'taint' the element so that the video doesn't participate in video decode suspending.
Add the infrastructure to track the taint status on MediaDecoder and mirror the status to MediaDecoderStateMachine.
MozReview-Commit-ID: Ik6aDIzrZaO
2017-03-08 19:28:13 +08:00
Iris Hsiao
7f2d7798aa
Backed out 5 changesets (bug 1345403) for permanent failure in autophone Mdm tests
...
Backed out changeset f6415ae0ba89 (bug 1345403)
Backed out changeset ac12e246a808 (bug 1345403)
Backed out changeset a3e4ce12194f (bug 1345403)
Backed out changeset ba072186c917 (bug 1345403)
Backed out changeset 7a7d6e9b8329 (bug 1345403)
2017-03-13 15:28:14 +08:00
Kaku Kuo
ced129bc9e
Bug 1345403 part 4 - Clean up suspend timer canceling; r=jwwang
...
MozReview-Commit-ID: LuNmrtDl4BR
2017-03-08 21:28:01 +08:00
Kaku Kuo
c5fa09b963
Bug 1345403 part 1 - Track decoder tainting; r=jwwang
...
Some uses of media elements should 'taint' the element so that the video doesn't participate in video decode suspending.
Add the infrastructure to track the taint status on MediaDecoder and mirror the status to MediaDecoderStateMachine.
MozReview-Commit-ID: Ik6aDIzrZaO
2017-03-08 19:28:13 +08:00
JW Wang
97bb06207a
Bug 1345711 - Ensure MediaDecoderStateMachine::InitializationTask() is the first task to run on the task queue. r=kaku
...
MozReview-Commit-ID: KCtXmckLkZr
2017-03-08 20:44:43 +08:00
karo
9dfa510df6
Bug 1344073 - Adding consistent formatting to HTMLMediaElement::MozRequestDebugInfo debugInfo dump string. r=cpearce
...
MozReview-Commit-ID: GfRrLQcebbt
2017-03-01 16:03:01 +13:00
Michael Layzell
ae4edb0823
Bug 1336510 - Part 9: Avoid MediaDecoder shutdown hang due to unnecessary strong reference capture, r=jwwang
...
MozReview-Commit-ID: ElH27usjxlj
2017-02-24 14:34:30 -05:00
Michael Layzell
ed843263df
Bug 1336510 - Part 4: Capture a strong reference to this in dom/media, r=jwwang
...
MozReview-Commit-ID: 4lVGrGzhVXh
2017-02-24 14:34:23 -05:00
Wes Kocher
4f2e3a1877
Backed out 8 changesets (bug 1336510) for windows debug mn-e10s failures a=backout
...
Backed out changeset 419ada2f9e81 (bug 1336510)
Backed out changeset 19239f566a93 (bug 1336510)
Backed out changeset c8aeead6fe83 (bug 1336510)
Backed out changeset 422e63b872b5 (bug 1336510)
Backed out changeset 21869174dfd3 (bug 1336510)
Backed out changeset 57476b9f342d (bug 1336510)
Backed out changeset e842cdaaa7e5 (bug 1336510)
Backed out changeset bd943b368ff7 (bug 1336510)
MozReview-Commit-ID: 2z3Wa9QFkX4
2017-02-23 16:07:41 -08:00
Michael Layzell
88cf28ec48
Bug 1336510 - Part 9: Avoid MediaDecoder shutdown hang due to unnecessary strong reference capture, r=jwwang
...
MozReview-Commit-ID: ElH27usjxlj
2017-02-23 12:24:12 -05:00
Michael Layzell
de7ee53299
Bug 1336510 - Part 4: Capture a strong reference to this in dom/media, r=jwwang
...
MozReview-Commit-ID: 4lVGrGzhVXh
2017-02-23 12:24:12 -05:00
Jeff Walden
f1d4a4e1e3
Bug 1287006 - Adjust media/ code to not pass Maybe (or any class containing a Maybe member) by value, only by reference or pointer. r=jw_wang, r=rjesup
2017-02-13 09:07:40 -08:00
Tom Tromey
e90d95a3f9
Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
...
MozReview-Commit-ID: 2E8FoiNxU8L
2016-12-14 09:32:21 -07:00
Tom Tromey
a4b717ab39
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
JW Wang
f683697d7f
Bug 1331070 - delay seek request until decoding first frames for non-MSE media. r=kaku
...
See see bug 1321198 comment 17. This is a workaround to alleviate the issue
which seems to happen on win8 x64 opt only.
MozReview-Commit-ID: Lr4viEjuFkC
2017-02-08 18:15:28 +08:00
JW Wang
f0912c9ebb
Bug 1337276 - discard the audio request so we won't add audio samples to a finished queue. r=kaku
...
MozReview-Commit-ID: JN9QwzfCaVK
2017-02-07 14:33:52 +08:00
Jean-Yves Avenard
fa1fcd710b
Bug 1319987: P9. More coding style fixes. r=gerald
...
MozReview-Commit-ID: DhFRqkWQZny
2017-01-27 13:20:37 +01:00
Carsten "Tomcat" Book
a2c1a9a7b0
Merge mozilla-central to autoland
2017-01-23 11:42:26 +01:00
JW Wang
dffc33a637
Bug 1331862. Part 3 - remove MDSM::DumpDebugInfo() and call RequestDebugInfo() instead. r=kaku
...
MozReview-Commit-ID: 4dEe6joFW01
2017-01-19 17:20:36 +08:00
JW Wang
85096a8519
Bug 1331862. Part 2 - add functions to collect debugging info asynchronously. r=kaku
...
MozReview-Commit-ID: 4btaZqUqyLn
2017-01-19 14:18:41 +08:00
JW Wang
5d7fb2f28f
Bug 1331862. Part 1 - extract code to functions for reuse. r=kaku
...
MozReview-Commit-ID: 9QNTaBxGUFq
2017-01-18 17:55:59 +08:00
Bevis Tseng
80ea683dc0
Bug 1314833 - Part 2.1: Factor out AbstractThread::MainThread() used in Media Playback. r=billm,jwwang
...
MozReview-Commit-ID: 9yJi3iDtVZG
2016-11-29 13:03:36 +08:00
JW Wang
f675eb68da
Bug 1331329. Part 2 - enter dormant immediately when mMinimizePreroll is true. r=kaku
...
MozReview-Commit-ID: 8qWYRgm8lwj
2017-01-16 16:41:43 +08:00
JW Wang
b06e799a5a
Bug 1331329. Part 1 - remove EnterDormant() which is a one-line function. r=kaku
...
MozReview-Commit-ID: AaUPDAm24iB
2017-01-16 16:39:56 +08:00
JW Wang
2429460122
Bug 1330889. Part 5 - remove MDSM::mState. r=kikuo
...
MozReview-Commit-ID: 648LWr4WU0F
2017-01-13 15:19:13 +08:00
JW Wang
b17322a0a2
Bug 1330889. Part 4 - remove the mState checks from MaybeStartPlayback(). r=kikuo
...
The same reason as P2.
MozReview-Commit-ID: GqWgiXjlTrb
2017-01-13 15:14:27 +08:00
JW Wang
73b95dfb04
Bug 1330889. Part 3 - remove the mState check from HasLowBufferedData(). r=kikuo
...
We have |mBuffered.Ref().IsInvalid()| below to check if mBuffered is valid.
MozReview-Commit-ID: KM88fSsCTlH
2017-01-13 15:13:05 +08:00
JW Wang
ff51861f79
Bug 1330889. Part 2 - remove some mState checks from MDSM::ResetDecode. r=kikuo
...
We want to separate mechanism from policy. The policy should be encoded in
the state objects which will decided whether to call ResetDecode(). It is
also possible to add a new state which has to call ResetDecode().
MozReview-Commit-ID: 3orxW4FNuVD
2017-01-13 15:09:11 +08:00
JW Wang
f37c62b38a
Bug 1330889. Part 1 - remove the assertion in MDSM::FinishShutdown. r=kikuo
...
http://searchfox.org/mozilla-central/rev/3f614bdf91a2379a3e2c822da84e524f5e742121/dom/media/MediaDecoderStateMachine.cpp#1825
This assertion ensures we never escape the SHTUDOWN state.
MozReview-Commit-ID: 6jPgVQuiPZf
2017-01-13 15:04:11 +08:00
JW Wang
0934ddbc2b
Bug 1328130. Part 2 - remove MozPromiseRequestHolder::Begin(). r=gerald
...
MozReview-Commit-ID: JL27n0Era6E
2017-01-11 16:33:29 +08:00
JW Wang
82f5a88426
Bug 1330603. Part 2 - remove MDSM::CheckIfDecodeComplete(). r=kaku
...
MozReview-Commit-ID: 1bkWVknX2FO
2017-01-09 22:37:57 +08:00
JW Wang
05d9f7e2f7
Bug 1330603. Part 1 - remove the call to CheckIfDecodeComplete() from HandleEndOf{Audio,Video}. r=kaku
...
1. in HandleEndOfAudio, we surely have !IsAudioDecoding(). So we only need to check !IsVideoDecoding().
2. likewise, we only need to check !IsAudioDecoding() in HandleEndOfVideo().
MozReview-Commit-ID: A3pj1LC2okB
2017-01-09 22:35:54 +08:00
JW Wang
683b9d824a
Bug 1330254. Part 4 - let Handle{Audio,Video}Canceled and Handle{Audio,Video}Waited call Request{Audio,Video}Data instead. r=kikuo
...
The same reason as bug 1329897 P3.
MozReview-Commit-ID: AhyFnUmXoOr
2017-01-09 22:25:20 +08:00
JW Wang
570390c355
Bug 1330254. Part 3 - remove some checks from NeedToSkipToNextKeyframe(). r=kikuo
...
1. we assert mSentFirstFrameLoadedEvent in DecodingState::Enter()
2. NeedToSkipToNextKeyframe() is called by EnsureVideoDecodeTaskQueued() when IsVideoDecoding() is true.
MozReview-Commit-ID: O6rkCBVmNu
2017-01-09 22:17:21 +08:00
JW Wang
9f652fce90
Bug 1330254. Part 2 - move NeedToSkipToNextKeyframe() into DecodingState and remove some checks for mState. r=kikuo
...
MozReview-Commit-ID: FTsXX04rk2p
2017-01-09 21:39:22 +08:00
JW Wang
5ea5f78c19
Bug 1330254. Part 1 - move MDSM::Ensure{Audio,Video}DecodeTaskQueued into DecodingState. r=kikuo
...
MozReview-Commit-ID: 9xPNQ9E7R3E
2017-01-09 21:11:01 +08:00
Phil Ringnalda
ac06930b7f
Backed out changeset f69ae549623a (bug 1321198) for being a totally unacceptable thing to have landed on an integration branch
2017-01-11 21:41:57 -08:00
Jan Beich
e34ec1d234
Bug 1330378 - Add missing header after bug 1329891. r=jwwang
...
MozReview-Commit-ID: AcOqT3fVuUA
2017-01-11 18:19:18 +00:00
JW Wang
85de99266a
Bug 1321198 - this is a debugging patch which crashes when test_seek* time out to get the stack trace about what's stuck. r=jya
...
MozReview-Commit-ID: L7Q3Fyapkzf
2017-01-11 11:15:24 +08:00
JW Wang
46c78ffe67
Bug 1329897. Part 4 - inline Ensure{Audio,Video}DecodeTaskQueued for DispatchDecodeTasksIfNeeded is the only caller. r=kaku
...
MozReview-Commit-ID: CrldEKxY9Qg
2017-01-09 20:37:06 +08:00
JW Wang
20533f01c0
Bug 1329897. Part 3 - call Request{Audio,Video}Data instead. r=kaku
...
For HandleAudioCanceled():
1. IsRequestingAudioData() is false because mAudioDataRequest is completed in MDSM::RequestAudioData().
2. IsWaitingAudioData() is false because data promsie and wait promise are mutually exclusive.
3. IsAudioDecoding() is true because we wouldn't have requested audio data otherwise.
Likewise, we can prove EnsureAudioDecodeTaskQueued() can be reduced to mMaster->RequestAudioData()
in HandleAudioWaited.
MozReview-Commit-ID: 1i63IMfZaUh
2017-01-09 20:27:36 +08:00
JW Wang
a23de8fca1
Bug 1329897. Part 2 - we don't want to skip to next key frames when buffering. r=kaku
...
MozReview-Commit-ID: 6Ln73FOVovs
2017-01-09 20:14:01 +08:00
JW Wang
30727b9543
Bug 1329897. Part 1 - copy Ensure{Audio,Video}DecodeTaskQueued into BufferingState. r=kaku
...
Note we remove the checks for mState.
MozReview-Commit-ID: 7uzjzjKDCIj
2017-01-09 20:12:00 +08:00
JW Wang
8c751eea36
Bug 1329891. Part 6 - default HandleWaitingFor{Audio,Video} to crash. r=kikuo
...
States that expect this event should override the function.
MozReview-Commit-ID: AmqktrDyVH5
2017-01-09 19:43:55 +08:00
JW Wang
03ccc3038d
Bug 1329891. Part 5 - default HandleEndOf{Audio,Video} to crash. r=kikuo
...
States that expect this event should override the function.
MozReview-Commit-ID: 5Zhcu1m2MMm
2017-01-09 19:38:10 +08:00
JW Wang
f4a6e669be
Bug 1329891. Part 4 - remove StateObject::HandleNotWaited(). r=kikuo
...
If the wait promise is rejected, we probably won't be able to finish
decoding after seeking. So we should just raise an error immediately.
MozReview-Commit-ID: GKXo9ZooBfV
2017-01-09 19:34:12 +08:00