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

487 Коммитов

Автор SHA1 Сообщение Дата
Kaku Kuo 458f8fcb6e Bug 1371188 P2 - remove MediaDecoderReader::RequestVideoData()'s aSkipToNextKeyframe parameter; r=jya
It is not used.

MozReview-Commit-ID: EDPhN6RzKN0

--HG--
extra : rebase_source : ab743da08760cd4014504528581d935ea9aa6752
extra : source : 3a7f3b90239b4bdf96c25e5df2f0c49a6c326c42
2017-06-12 16:06:11 +08:00
JW Wang 75e01f7b0a Bug 1371202. P1 - plumb the 'loop' attribute into MDSM. r=jya
MozReview-Commit-ID: DtsaXmtQw76

--HG--
extra : rebase_source : 34686d455670975a824dc803a16b8acff97c86ab
extra : intermediate-source : 0de95b1644a365dda9beff4b75d56251da2258c7
extra : source : ba5b2599c949766395bf5b0381023a752bc6e04d
2017-06-08 12:03:10 +08:00
JW Wang 549f9bcf13 Bug 1371515. P5 - remove mIsShutdown which is not read at all. r=kaku
MozReview-Commit-ID: H8MZSoG9wCV

--HG--
extra : rebase_source : e02b3814993cd325520b89866f1e275b62c94fd6
2017-06-09 11:47:53 +08:00
JW Wang b394689f0b Bug 1371515. P4 - remove CanonicalIsShutdown() which has no callers at all. r=kaku
MozReview-Commit-ID: AVWtCVFflho

--HG--
extra : rebase_source : a8a8ac68b03ab45ee086607b5b0ba416ff9bbecf
2017-06-09 11:45:20 +08:00
JW Wang f367b1a0e9 Bug 1371515. P3 - remove IsShutdown() which now has no callers. r=kaku
MozReview-Commit-ID: Te3F7WJ8iF

--HG--
extra : rebase_source : 5ed1fa5537f32d3e340ba61c2e1538ed23c007d7
2017-06-09 11:43:51 +08:00
Jean-Yves Avenard 46f46175a0 Bug 1366362: P3. Have seekToNextFrame properly handle dormant mode. r=jwwang
When coming out of dormant mode, we first perform an accurate seek, that will ensure the MediaDecoderReader has been reinitialised correctly.

MozReview-Commit-ID: 2rWgu9AGAcY

--HG--
extra : rebase_source : c6b045fdd2c9f8d90645c0fcafbe2d35c9fd36a8
2017-05-24 09:11:10 +02:00
JW Wang a80b2eab10 Bug 1365524. P2 - replace use of nsAutoPtr with UniquePtr. r=jya
MozReview-Commit-ID: 8zR7ZRXl1ON

--HG--
extra : rebase_source : 24053b1be0149ffb6e0dc2c1276c487a64787f32
2017-05-18 16:35:49 +08:00
JW Wang 10e2d6434b Bug 1365520. P2 - remove mMetadataTags for we can pass |aMetadata->mTags| without storing it. r=kaku
MozReview-Commit-ID: BcPwBTmXMZS

--HG--
extra : rebase_source : 35b563c330f3b380b81f330d30a8b6b3b144180d
2017-05-17 16:04:33 +08:00
JW Wang be797e327f Bug 1365520. P1 - remove MDSM::mSentLoadedMetadataEvent and MDSM::EnqueueLoadedMetadataEvent(). r=kaku
The current call flow ensures decoding metadata only happens at most once
and therefore EnqueueLoadedMetadataEvent() will only be called at most once.
We don't need the mSentLoadedMetadataEvent flag.

MozReview-Commit-ID: E95jtRrKupw

--HG--
extra : rebase_source : b95887154a2392ca5a6fcb45b4c2dad60fb65b70
2017-05-17 16:00:46 +08:00
Chris Pearce a8d20712d6 Bug 1361629 - Only call timeBeginPeriod/timeEndPeriod when media playback starts/stops. r=jwwang
MozReview-Commit-ID: B3YCoGMY5Ab

--HG--
extra : rebase_source : 1311d2f901c00885695b17746b524115ab72758d
2017-05-04 16:54:19 +12:00
JW Wang 54ae314fcc Bug 1358972. P2 - remove MediaDecoder::mEstimatedDuration and its friends which is never modified. r=kaku
MozReview-Commit-ID: 7W331tookXV

--HG--
extra : rebase_source : 2555fbdb4c5480e6880a67e71827ca06d6857992
extra : intermediate-source : c035bdc6f8e47cc92fa5d6b66421d319d9cd2e92
extra : source : 49ec1fd9914624f5aa4ea87bf4deb8b47017e288
2017-04-17 17:20:06 +08:00
Kaku Kuo 172d429303 Bug 1354465 P1 - dispatch a mozvideoonlyseekbegin event while starting a video-only seek; r=jwwang
MozReview-Commit-ID: 6PjQs88vUV2

--HG--
extra : rebase_source : b0d06e8bd5b5a3e84adaade0ea8f2fa98a2af0c3
2017-04-07 16:11:34 +08:00
JW Wang 519fb03dfd Bug 1353607. P9 - change the underlying type of mCurrentPosition to TimeUnit. r=kikuo
MozReview-Commit-ID: ffquOIFlp3

--HG--
extra : rebase_source : 2f6e383a1995e91f395efb4d037e151a5a656248
extra : intermediate-source : 12403091f9cee42331e12eb13945b40d02dc842f
extra : source : 1149d57835c33231411692e74836fff37b3e74de
2017-03-28 18:13:22 +08:00
JW Wang 88fd9831d4 Bug 1353607. P8 - use TimeUnit in DispatchSetFragmentEndTime(). r=kikuo
MozReview-Commit-ID: IBLT0j7yMLK

--HG--
extra : rebase_source : a441e4f71c7286225deb3cc6719582b912549bd0
extra : intermediate-source : 2b7da6662a5a783e0cb9e574c5a8678c991aa306
extra : source : 0647d6d92deabbc38a22c5e681e71ce92fdd8267
2017-03-28 18:01:23 +08:00
JW Wang 1058fbba54 Bug 1353607. P5 - change the type of mDecodedAudioEndTime/mDecodedVideoEndTime to TimeUnit. r=kikuo
MozReview-Commit-ID: 2bVQD5BViU4

--HG--
extra : rebase_source : bfd903ba579728faee4e52028a475667b4345825
extra : intermediate-source : 7244b47b97aa15dbaea76e39646af208ef49640c
extra : source : 3a568910e2e46d766531407a488a3d825700321c
2017-03-28 17:20:17 +08:00
JW Wang fd5ea35288 Bug 1353607. P4 - change the type of mFragmentEndTime to TimeUnit. r=kikuo
MozReview-Commit-ID: FhUZMpXokSt

--HG--
extra : rebase_source : ad31b3f7efc88c35b94f1131fa4ccd99047e118d
extra : intermediate-source : 4afe1a64d13c7cb35025cc07cefc103132ea4c7c
extra : source : d6b2c91dc8845c718815080b7ce94d729154c3d0
2017-03-28 17:14:01 +08:00
JW Wang a87c5d2b36 Bug 1353607. P3 - use TimeUnit in ScheduleStateMachineIn(). r=kikuo
MozReview-Commit-ID: 5mfquK9TiDa

--HG--
extra : rebase_source : 97cf7b15265befc7b1ff14fbb4a39996a4cfb799
extra : intermediate-source : 0e2a1312d5c807860815ccd53b05d208bd2381de
extra : source : 50a8e1cbb21471033b19702962c9f27df26ae174
2017-03-28 17:10:59 +08:00
JW Wang fde98e4988 Bug 1353607. P2 - let GetDecodedAudioDuration() return a TimeUnit. r=kikuo
MozReview-Commit-ID: 5pLyACshP3e

--HG--
extra : rebase_source : ffc0235f14c12d4d8f44871ae5769a171222aebd
extra : intermediate-source : 422eff08d660192625ccabd4f2f063418ddab460
extra : source : ba186badc48371a0db16a1ffce8f188030558129
2017-03-28 16:54:39 +08:00
JW Wang 613fc16b11 Bug 1353607. P1 - remove the dead code. r=kikuo
MozReview-Commit-ID: 6FPq2ucZde5

--HG--
extra : rebase_source : 1b8b09e11b1cc0f993cca8ad93c7ad609c15fc6c
extra : intermediate-source : 2b8343bf767b81a1682a42c9873a36090414fab8
extra : source : 45d42bdde43465f28b4d5d57781bf37d62259b39
2017-03-28 16:49:31 +08:00
JW Wang 14d7d8bec7 Bug 1352319. P10 - let GetClock() return a TimeUnit. r=kaku
MozReview-Commit-ID: Efl1FemHOmJ

--HG--
extra : rebase_source : 39862017f074d30374c05f861cd360cc4d20aeb0
extra : source : a7363eb07fbef9ecd9a30037da6c9a0f356fadb1
2017-03-28 16:35:24 +08:00
JW Wang 308286b2e3 Bug 1352319. P9 - let GetMediaTime() return a TimeUnit. r=kaku
MozReview-Commit-ID: 7vrIzeMLP4Z

--HG--
extra : rebase_source : fe59f42336ea04d573579d8c6bdb1ecb8849f592
extra : source : 1d26e04ea6f7ad969ae995025d87c8b7836925fe
2017-03-28 16:16:56 +08:00
JW Wang 149633543d Bug 1352319. P8 - use TimeUnit in UpdatePlaybackPosition(). r=kaku
MozReview-Commit-ID: JkopzDG45Bq

--HG--
extra : rebase_source : c9bf356a4b421012f7756841aae8c3ced028c579
extra : source : fb3b140d5a5ecec923e75d11e314f216a88f502a
2017-03-28 16:01:55 +08:00
JW Wang d79d1e4a87 Bug 1352319. P7 - use TimeUnit in UpdatePlaybackPositionInternal(). r=kaku
MozReview-Commit-ID: ASzjKhHlhVA

--HG--
extra : rebase_source : a2fed6debead5ba37574dcc79b8ac7a5e2701064
extra : source : 678b5117a8b9d778e6f785b53cab3c0007061cfe
2017-03-28 15:57:38 +08:00
JW Wang 1b98a1aef1 Bug 1352319. P6 - let AudioEndTime/VideoEndTime return a TimeUnit. r=kaku
MozReview-Commit-ID: 6yyVl2RDrPm

--HG--
extra : rebase_source : c62f1972acb4c4f376fe2a1d689246a02ffb0fd8
extra : source : 9a7b19b5a668270cd9af875dd8b33791f69b542b
2017-03-28 15:50:53 +08:00
JW Wang 747b792884 Bug 1352319. P4 - move AudioPrerollUsecs/VideoPrerollFrames into DecodingState. r=kaku
MozReview-Commit-ID: 3VuDj1TXZV2

--HG--
extra : rebase_source : 53471b886ee48e845e31b70e9e13d82b0620a6a7
extra : source : 383119c9b722b892d300cb56b92116af3285b60a
2017-03-28 15:38:34 +08:00
JW Wang 428f953b53 Bug 1352319. P3 - use TimeUnit in HasLowBufferedData(). r=kaku
MozReview-Commit-ID: HP7M78yKpww

--HG--
extra : rebase_source : 84069608ad345ea248b5584e8847df99d9d030a1
extra : source : 6a5be23e8d7ed332bfbd99717db24f22b0ad4824
2017-03-28 15:09:30 +08:00
JW Wang d4487752ce Bug 1350837. P3 - rename the variable and fix comments. r=kaku
MozReview-Commit-ID: JI1sp6f6Xnb

--HG--
extra : rebase_source : 81342c1c7ce66f41b9c1edc81e1fa8ae2a29d711
extra : source : 7ef12f35a566561375eceb89f4499256f6f49cbe
2017-03-28 14:38:30 +08:00
JW Wang 392f7fe562 Bug 1350837. P2 - change the type of mAmpleAudioThresholdUsecs to TimeUnit. r=kaku
MozReview-Commit-ID: 2de8DrlemaT

--HG--
extra : rebase_source : 8aefbfa66940bacff448dff1733b9741993078af
extra : source : 479fe87b6feb3aa34d8725357bea7eaf12c37ac3
2017-03-28 14:27:26 +08:00
JW Wang d89ec64fed Bug 1350832. P3 - rename variables and fix comments. r=kikuo
MozReview-Commit-ID: 1xA8doM1tAG

--HG--
extra : rebase_source : fdeba5d0006a4875fdb96a620c98bab5dd80b580
extra : source : bcf51727f7416c0fe140b95f5875da6aca8ae0d1
2017-03-27 16:28:02 +08:00
JW Wang faade86218 Bug 1350832. P2 - change the type of mLowAudioThresholdUsecs to TimeUnit. r=kikuo
MozReview-Commit-ID: AurJRSuZkkg

--HG--
extra : rebase_source : 0fd06ad51f35d203c094d26c74a2d098f53bd36b
extra : source : 7ec0cc1999c03a09313c7ef85c90c8537440db8d
2017-03-27 16:22:09 +08:00
Kaku Kuo d1654b9821 Bug 1350852 P1 - add a mozvideoonlyseekcompleted event; r=jwwang
MozReview-Commit-ID: wLMawR9Coz

--HG--
extra : rebase_source : 6eedf8f346cbbe530c01c248c04280348b07e855
2017-03-27 18:12:58 +08:00
JW Wang 5274c2cb96 Bug 1350203. P5 - replace SAMPLE_LOG with LOGV. r=kaku
We often need to turn on both MediaSample and MediaDecoder logs when debugging sample activities.
So it is convenient to merge them into a single log module.

Use `MOZ_LOG=MediaDecoder:4` to show decoder logs.
use `MOZ_LOG=MediaDecoder:5` to show both decoder and sample logs.

MozReview-Commit-ID: JQtyoyrNRmV

--HG--
extra : rebase_source : 85739da85aa4059b058a9baccd5509c8149712d8
2017-03-24 11:58:37 +08:00
JW Wang 713d7a054f Bug 1349145. P3 - use concrete types in MDSM and its friends. Also remove unnecessary casts. r=kaku
MozReview-Commit-ID: C2MZb01XtTC

--HG--
extra : rebase_source : e16735e9f865feb85170abf07996479e3bba026f
2017-03-22 11:59:54 +08:00
JW Wang 4dde56f760 Bug 1349145. P1 - revert the changes in bug 1203047 for MediaDecoderReader and its friends. r=jya
MozReview-Commit-ID: IghzDRwvd9S

--HG--
extra : rebase_source : d686c3a13af56b508c14e81d59417b715ffdd940
2017-03-22 11:28:33 +08:00
Kaku Kuo 062129aebf Bug 1346498 part 6 - remove mHasSuspendTaint cannonical-mirror pair; r=jwwang
MozReview-Commit-ID: BqAfv9CSsv3

--HG--
extra : rebase_source : 61d8ab0494986b780b79ea9350c9d0b52f70a382
extra : source : 6d92d52bdc7688c76fc5f55853a9fa07b3875b44
2017-03-11 15:12:38 +08:00
Kaku Kuo 68c95368f5 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

--HG--
extra : rebase_source : 20f4b0c2e5a34018b3189b4d10dd55e68881c0e7
extra : source : 2eba9a76da70749583125176e8b7c6c959b74d38
2017-03-11 14:06:09 +08:00
Kaku Kuo e9c23fc1ad 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

--HG--
extra : rebase_source : 95977b205f235b6a456d12dfde93fe84f3b12aa7
extra : source : 4382a3c10f30653d5a70abb3bd4b8146a4272784
2017-03-10 16:17:46 +08:00
Kaku Kuo b49796fcdf Bug 1345403 part 4 - Clean up suspend timer canceling; r=jwwang
MozReview-Commit-ID: LuNmrtDl4BR

--HG--
extra : rebase_source : 120a9c7811b6265190a645bd581483119242b676
extra : intermediate-source : 8d4e376e626bb9ffe71621db27053094650ee988
extra : source : bbd1f9644d39d9c935015b8dfad24e790c5a3c7a
2017-03-08 21:28:01 +08:00
Kaku Kuo 3c60cdbdf5 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

--HG--
extra : rebase_source : 31fdddabdc62cb8c59db19c1f466f674ef503ee8
extra : intermediate-source : 906cb039bea3e5ac6c1ec852209db28be60ba201
extra : source : 1ac0f1b9264706f65e04528757bd60028331d31f
2017-03-08 19:28:13 +08:00
Iris Hsiao bdff9504ef 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 1fa35f6899 Bug 1345403 part 4 - Clean up suspend timer canceling; r=jwwang
MozReview-Commit-ID: LuNmrtDl4BR

--HG--
extra : rebase_source : 01a82baa91c4c7d8e1ff6600f615017735313716
extra : source : bbd1f9644d39d9c935015b8dfad24e790c5a3c7a
2017-03-08 21:28:01 +08:00
Kaku Kuo af6e44d1d0 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

--HG--
extra : rebase_source : 1dfdedea63d18918ef7b529a87f3afeb1592b149
extra : source : 1ac0f1b9264706f65e04528757bd60028331d31f
2017-03-08 19:28:13 +08:00
Michael Layzell 1ef7419953 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
Wes Kocher 7e8f316730 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 c53fd0f442 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
JW Wang 553e846993 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

--HG--
extra : rebase_source : 99895cf6f6f13d5f4d698f76db7acda15d8cee77
2017-02-08 18:15:28 +08:00
Jean-Yves Avenard b7844bd5c3 Bug 1319987: P9. More coding style fixes. r=gerald
MozReview-Commit-ID: DhFRqkWQZny

--HG--
extra : rebase_source : 03ed44efc83fe9cab7fc975229ac4e5746aff96b
2017-01-27 13:20:37 +01:00
Carsten "Tomcat" Book f040eda61d Merge mozilla-central to autoland 2017-01-23 11:42:26 +01:00
JW Wang 4fd7502e78 Bug 1331862. Part 3 - remove MDSM::DumpDebugInfo() and call RequestDebugInfo() instead. r=kaku
MozReview-Commit-ID: 4dEe6joFW01

--HG--
extra : rebase_source : 1e1b2ffb2403e1845402cd34cec111e2c5cc912c
extra : source : 984d34111fee30fce68660174afb8b68f515c6b9
2017-01-19 17:20:36 +08:00
JW Wang 4963f39de0 Bug 1331862. Part 2 - add functions to collect debugging info asynchronously. r=kaku
MozReview-Commit-ID: 4btaZqUqyLn

--HG--
extra : rebase_source : 80289bb88f7359062575e2b7f7da06e00f78cd51
extra : source : 7e011787cb911799f47b55aeba986bf05c30ed27
2017-01-19 14:18:41 +08:00