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

358 Коммитов

Автор SHA1 Сообщение Дата
JW Wang da66e5c214 Bug 1392919. P2 - remove MediaResource::IsSuspendedByCache(). r=gerald
MozReview-Commit-ID: E1lkfLARMhS

--HG--
extra : rebase_source : 354adbb22db9bdacec74a824bf04bfce0775faad
2017-08-23 14:38:00 +08:00
Chris Pearce 344a04e025 Bug 1390748 - Remove some unnecessary includes. r=jwwang
MozReview-Commit-ID: J3viRI4Q6LF

--HG--
extra : rebase_source : b2e3f66a20f431b8a2b0dc88b65dd5da9433da2f
2017-08-16 17:18:39 +12:00
Carsten "Tomcat" Book a16900ac51 Backed out changeset 9172b8d6ce3e (bug 1390748)
--HG--
extra : rebase_source : 44c2361c7247fe7d1948ff3e7f47f165e8368483
2017-08-17 08:35:23 +02:00
Chris Pearce bd4996facd Bug 1390748 - Remove some unnecessary includes. r=jwwang
MozReview-Commit-ID: J3viRI4Q6LF

--HG--
extra : rebase_source : 0f2ff9241c643d49c8293bdbfb4ec6adb1e2cd30
2017-08-16 17:18:39 +12:00
Phil Ringnalda 38ce1ea2a0 Backed out 10 changesets (bug 1390748) for build bustage
Backed out changeset 02b36ee5fb17 (bug 1390748)
Backed out changeset 84e8bf01c856 (bug 1390748)
Backed out changeset fc8989be30f3 (bug 1390748)
Backed out changeset 14d421ace6cc (bug 1390748)
Backed out changeset 7dadac869038 (bug 1390748)
Backed out changeset 0e77809e7bc2 (bug 1390748)
Backed out changeset bf78a8dce9c5 (bug 1390748)
Backed out changeset 5fa77990472e (bug 1390748)
Backed out changeset 5d3b637d2485 (bug 1390748)
Backed out changeset 634fe076d134 (bug 1390748)

MozReview-Commit-ID: Dxio8vXDCHg
2017-08-16 21:33:10 -07:00
Chris Pearce e927f10587 Bug 1390748 - Remove some unnecessary includes. r=jwwang
MozReview-Commit-ID: J3viRI4Q6LF

--HG--
extra : rebase_source : 6661db3a00fc8b378aedd456950fb819f699507b
2017-08-16 17:18:39 +12:00
JW Wang 32951f4824 Bug 1388604 - move SetReadMode() from MediaResource to BaseMediaResource. r=gerald
It would be less accurate to call SetReadMode(MediaCacheStream::MODE_PLAYBACK)
in ChannelMediaDecoder::MetadataLoaded() instead of DecodeMetadataState::OnMetadataRead()
because MDSM might have started decoding by the time 'metadata loaded' event arrives
in the main thread. However this little inaccuracy should be fine since it only
affects a small amount of data concerning the eviction algorithm.

MozReview-Commit-ID: JoQMGr5Fvge

--HG--
extra : rebase_source : 3663a028522cc8b973964f62e59d7568a5eba10a
extra : source : 359b4454633432d3334a106aedb267a2451afb45
2017-08-09 11:06:29 +08:00
JW Wang cf112f4b88 Bug 1388228. P6 - following P5, we are now able to move some methods that are related to nsIChannel to BaseMediaResource. r=gerald
So we reduce the number of unimplemented methods in the sub-classes of MediaResource.

MozReview-Commit-ID: EAmUEv9WQk8

--HG--
extra : rebase_source : deed5fd089e8c42a5a6ab0546e0781d0061591e5
2017-08-07 18:09:56 +08:00
JW Wang aa4fe7edda Bug 1385155. P2 - move MP4Stream into ContainerParser.cpp which is the only user. r=gerald
MozReview-Commit-ID: 4IguqbJn1xd

--HG--
extra : rebase_source : 881a27a24b11e05033e4ae9c9dbfe93f6ec34141
2017-07-27 17:43:09 +08:00
Bryce Van Dyk 3ef050dcc4 Bug 1382718 - Update video encoder gtest to use appropriate image objects. r=jesup
The image objects used in the TestVideoTrackEncoder.cpp for NV12 and NV21 were
not suitable for storage of these formats. As such the new format detection
code introduced in previous changesets was not correctly be exercised.

MozReview-Commit-ID: 9Tn7Ub4GfeG

--HG--
extra : rebase_source : c40731e0e98fde4ec55e05c899cebf96751317fa
2017-07-25 10:04:57 +12:00
Bevis Tseng a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
JW Wang 87a7705558 Bug 1316211. P16 - remove MediaDecoderReader completely and fix includes. r=gerald
MozReview-Commit-ID: AGNyyh4kt3e

--HG--
extra : rebase_source : 48bfd7c681693a965848078c19ac81707ac19540
extra : source : 093ff5fe2ab6dd7551453b10b480fa3553ec135d
2017-07-20 09:56:08 +08:00
Gerald Squelart 7866e6fdb6 Bug 1377015 - MediaCodecs::ContainsPrefix implementation and tests - r=rillian
Many video codecs use a suffix to specify level, profile and optional features,
like "avc1.42E001" or "vp09.00.41.08".
MediaCodecs::ContainsPrefix() can be used to facilitate codec identification
from their prefix alone, e.g.: "avc1" or "vp09".

MozReview-Commit-ID: D6kcjggXptS

--HG--
extra : rebase_source : 3a60c01da1d91adf29f51ce3c32f8df60282c90a
2017-06-29 11:17:56 -07:00
JW Wang c6e43291cb Bug 1376363. P3 - remove MediaResource::GetContentType() and its friends. r=gerald
Note we remove the call to mChannel->SetContentType() from RecreateChannel().

The hint never works as expected for [1] is the only caller to
nsIChannel::GetContentType() and MediaResource::Create() always happens
before any reads from the resource.

[1] http://searchfox.org/mozilla-central/rev/b425854d9bbd49d5caf9baef3686e49ec91c17ec/dom/media/MediaResource.cpp#1500

MozReview-Commit-ID: 1n4yHEouCjC

--HG--
extra : rebase_source : 9a7345c29b985ddee7a90a94191e9d526e2a0a67
extra : source : 054d9ffaf21eb937a6349df76228269ad2d7dc2c
2017-06-26 21:39:16 +08:00
JW Wang a05b9a90ee Bug 1376360. P1 - give CloneData() a default implementation for most resource types don't support clone. r=gerald
Also remove CanClone() overrides that are identical to that of the base class.

MozReview-Commit-ID: A0Q5ychQtso

--HG--
extra : rebase_source : 3369558a8e6bc9f86ab6dcdc39fe40f686041001
2017-06-23 16:26:30 +08:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
JW Wang 4bc2a74510 Bug 1374566 - remove methods that have no callers. r=gerald
MozReview-Commit-ID: 7Ze0q32VS0h

--HG--
extra : rebase_source : 470fdf5d480b9115039faeb519756e05787011af
extra : source : be2cd2df4469cec5ded0f9d07977f8f09ba60cb6
2017-06-20 16:47:03 +08:00
Jan Henning 0b677ecf4b Bug 1168435 - Part 3 - Remove separate MP3 name space. r=jya
MozReview-Commit-ID: D876PpLd93C

--HG--
extra : rebase_source : cd65b9ed78674e601493f7d0145bf038e0e48d0b
2017-06-15 15:32:20 +02:00
Bill McCloskey 5066de8593 Bug 1366072 - MozPromise tests (r=jwwang)
MozReview-Commit-ID: 69OQb1f3UTd
2017-06-13 14:51:07 -07:00
Ralph Giles 79deabf94b Bug 1370976 - Add webm MediaMIMEType gtest. r=gerald
Make sure we test the other major container we
need to parse correctly.

MozReview-Commit-ID: AnrGADFXPkw

--HG--
extra : rebase_source : 5e20580d0900a62f923b96089410845c187ac2a7
2017-05-31 13:35:15 -07:00
Gerald Squelart caaa280433 Bug 1369322 - MediaResource::ShouldCacheReads to indicate usefulness of caching - r=cpearce
This hint will inform readers if caching is discouraged (e.g., for
SourceBufferResource) or recommmended (e.g., for MediaCache-backed
ChannelMediaResource).

MozReview-Commit-ID: 7hopNS0s5tE

--HG--
extra : rebase_source : 681646cc904229e8513adb148baa085254508049
2017-06-02 14:27:17 +12:00
JW Wang 7348b1e4b3 Bug 1367679. P5 - add a gtest to test chaining between different promise types. r=gerald
MozReview-Commit-ID: 8l3clGN3pWd

--HG--
extra : rebase_source : 5c3a7d74649a44e9d86738942bfe58a34f63332f
extra : intermediate-source : 4811c6b4d7c4fb241c633e3c81cc8b032c69386e
extra : source : 620a6593190dbb97df105a5bb1ca5fa48d1c73be
2017-05-27 22:03:57 +08:00
JW Wang ea2f8c0d3a Bug 1370005. P1 - backout bug 1367679. r=gerald
MozReview-Commit-ID: 4SUCinaz3Cj

--HG--
extra : rebase_source : 2d6f7fec44a8fb4dd3a526ec6bd2cd5737c93727
2017-06-05 14:03:34 +08:00
JW Wang 30ad12db3a Bug 1367679. P5 - add a gtest to test chaining between different promise types. r=gerald
MozReview-Commit-ID: 8l3clGN3pWd

--HG--
extra : rebase_source : 5c3a7d74649a44e9d86738942bfe58a34f63332f
extra : intermediate-source : 4811c6b4d7c4fb241c633e3c81cc8b032c69386e
extra : source : 620a6593190dbb97df105a5bb1ca5fa48d1c73be
2017-05-27 22:03:57 +08:00
Gerald Squelart 5c90401225 Bug 1368837 - MockMediaResource should fread individual bytes - r=cpearce
`fread(buf, count, 1, f)` meant that exactly one object of size `count` could
be read.
Changing that to `fread(buf, 1, count, f)` now reads up to `count` size-1
objects (aka bytes) up to `count` and returns that number of bytes read, which
is usually what we want from a read, i.e. as much as possible even if it's less
than requested.

MozReview-Commit-ID: 3Lgvws19SFd

--HG--
extra : rebase_source : e5b89a7073d2a5a0365c6fe6aa938bd17cf37935
2017-05-26 15:15:14 +12:00
Gerald Squelart 9f7cafca97 Bug 1368837 - MockMediaResource::GetCachedDataEnd should return the offset if out of range - r=cpearce
If the requested cached-data offset is out of range, we should just return the
same offset, as it signals that the actual cached range is 0 bytes, without
having to deal with -1.

MozReview-Commit-ID: D0rXO0S0mss

--HG--
extra : rebase_source : 39784ff39d12d416358a181f0245ec2129c6992d
2017-05-29 15:13:15 +12:00
JW Wang a86c1434a6 Bug 1338635 - Declare |holder| before |atq| to ensure the destructor is run after |holder.Disconnect()|. r=gerald
Otherwise we might fail the assertion |!mRequest| in the destructor of MozPromiseRequestHolder.

MozReview-Commit-ID: HsVD2re0R7e

--HG--
extra : rebase_source : c023899d92501dd3e275000c9ef0eb50df117236
2017-05-29 09:38:14 +08:00
Nathan Froyd c1d1748428 Bug 1359490 - add an event loop spinning abstraction function; r=gerald
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
JW Wang 2c2b5b8639 Bug 1362910. P3 - add a gtest to test move-only types with MozPromise. r=gerald
MozReview-Commit-ID: 5LP7POyxNt3

--HG--
extra : rebase_source : a394993f55180c115c8f5ea7192dfa5ee75b69ea
extra : source : 531a38af11fcb704c1b3c5f5e0856b11b0cc2da3
2017-05-11 11:51:58 +08:00
JW Wang 5ad2189944 Bug 1363676. P2 - add a gtest to ensure we don't break ResolveOrRejectValue during refactoring. r=gerald
MozReview-Commit-ID: A1ftwJMYgGw

--HG--
extra : rebase_source : 7d85b6b17363af64466bb937f671ddb019ce6be2
2017-05-10 17:41:08 +08:00
Ralph Giles 708b853aaa Bug 1363500 - Remove TestMP4Reader. r=jya
The MP4Reader class was removed in bug 1163486, replaced
by MediaFormatReader combined with MP4Demuxer. Bug 1175752
disabled the corresponding gtest, but as the underlying
object is gone, the test should be removed instead.

MozReview-Commit-ID: 7mU4Q98LtKA

--HG--
extra : rebase_source : 10b20e749321a50bac708c493badbdf32b41f859
2017-05-09 12:03:07 -07:00
Ralph Giles f56cb16c14 Bug 1336153 - Remove MOZ_RUST. r=ted
We now have code that unconditionally requires the rust
compiler and are committed to adding more. Remove this
last vestige of conditional support.

MozReview-Commit-ID: EK6FBnAbR

--HG--
extra : rebase_source : 6efda10a74f9ca0482304c2b1ffe6941e42138f8
2017-05-09 11:36:13 -07:00
JW Wang 20f3ad9f2f Bug 1362912. P2 - fix the callers. r=gerald
MozReview-Commit-ID: LdYcIWAFDUn

--HG--
extra : rebase_source : eb943f7e5b7674c3397fce3ad0e8193b4c0ddc01
extra : source : fdfd468b6edbabf3830eb78fc705f6d6682b7126
2017-05-09 23:31:32 +08:00
JW Wang 55f471732b Bug 1361305. P2 - add a gtest to test an rvalue lambda is moved instead of copied when adding a listener. r=gerald
MozReview-Commit-ID: 8YM0iJxk6er

--HG--
extra : rebase_source : b7556abd70b5c185a7cae14ebd94f1783c092cc0
extra : source : d01696f770c7d4787942a3fbfc681d9fdaa99793
2017-05-02 17:33:23 +08:00
JW Wang a1108d032e Bug 1361259. P4 - enforce copy in NonExclusive mode for each listener must get a copy. r=gerald
MozReview-Commit-ID: Mqt0N2erP6

--HG--
extra : rebase_source : 29c5a468401cd8926d5bd636caa7f63ab50e00aa
extra : source : c685f9768d516ffac538cb7fc240aaf5e4844693
2017-04-28 17:56:57 +08:00
Michael Layzell 31c0dfca22 Bug 1339537 - Part 3: Pass IntIntervals by const reference in TestIntervalSet, r=jya
MozReview-Commit-ID: BGg1yS2Ovhz
2017-04-27 12:44:51 -04:00
JW Wang f2ea37e57b Bug 1357986 - Use helper functions of TimeUnit to make code more readable. r=kaku
1. using media::TimeUnit to save some typing.
2. replace TimeUnit() with TimeUnit::Zero().
3. replace TimeUnit::FromXXX(0) with TimeUnit::Zero().
4. replace TimeUnit::FromMicroseconds(std::numeric_limits<int64_t>::max()) with TimeUnit::FromInfinity().
5. replace some uses of int64_t with TimeUnit.
6. replace t > TimeUnit() with t.IsPositive().

MozReview-Commit-ID: 6hC94PXx86i

--HG--
extra : rebase_source : 1ea3b409e6ec12915f3e1a00359d6ff4152c8917
extra : intermediate-source : e31a12ad0e7a4840119036f261ed17eaaff85734
extra : source : ae07ee48000c4a52da0e4fd502b4d690ec51ce1f
2017-04-17 16:35:04 +08:00
JW Wang d2ca2106c9 Bug 1357983 - remove media::Microseconds. r=gerald
media::TimeUnit can take its place. We don't want 2 things for the same purpose to cause confusion.

MozReview-Commit-ID: 3z6hbgXFsxP

--HG--
extra : rebase_source : 0b472e351abdc48e337aaf645ae8be467e8a300f
extra : intermediate-source : 4e2156ec04fd30af6cf59adfd1390cf67f411d4c
extra : source : bf5b035c7041a892517373dd566d2a7d7ec60c72
2017-04-17 14:34:36 +08:00
JW Wang 302d82c85a Bug 1356530 - Change the type of MediaData::mTime to TimeUnit since int64_t is ambiguous. r=kaku
MozReview-Commit-ID: 4bVeqIuWO2O

--HG--
extra : rebase_source : d504ac15a6dc59ad42f3ab80faf23f629d74315f
extra : intermediate-source : 6e52995b6c8146451d98dffc62f6907755dc856e
extra : source : 82d2649cdafb5a6389f6858c23578811933580c9
2017-04-14 17:13:36 +08:00
JW Wang 235f1f55ed Bug 1356506 - change the type of MediaData::mTimecode to TimeUnit since int64_t is ambiguous. r=gerald
MozReview-Commit-ID: 7dO5OOUuORz

--HG--
extra : rebase_source : 1c1c020700d9180ef9f85d7e2e679f498ab71fce
extra : intermediate-source : d173c820bef7a113e28e9732c42e8c1af36160ab
extra : source : 04c08a780526ca3a5ac4d1a6f9b7ae30d9957e92
2017-04-14 14:52:14 +08:00
Kaku Kuo b06e8a5370 Bug 1344357 P1 - move the MediaDecoder::mSeekDOMPromise to HTMLMediaElement; r=jwwang
There was a cycle amoung a window object -> a HTMLMediaElement -> a MediaDecoder -> a Promise (-> back to the window object).
And we have no way to break the cycle since the MediaDecoder does not participate into the collection.

By moving the Promise form MediaDecoder to HTMLMediaElement, we will be able to break the cycle since the HTMLMediaElement is in the collection.

We'll implement the cycle collection in the next patch.

MozReview-Commit-ID: CyVXBl6IMI3

--HG--
extra : rebase_source : 195a322ce3e6fe933e72be4aec5d2ebfa1f54865
2017-04-17 18:25:26 +08:00
James Cheng ba6513e929 Bug 1349129 - Fix CID 1403176 and CID 1403178 for memory leak. r=jwwang
MozReview-Commit-ID: ClAcLgztPZ4

--HG--
extra : rebase_source : 3f00022cf2ca8dfec78cc1e8cc8f48fcbb220feb
2017-03-21 16:25:29 +08:00
Kaku Kuo 229d7c8d86 Bug 1348237 part 3 - add a gtest to test the overflow case; r=jwwang
MozReview-Commit-ID: Fv6MjKjoRxd

--HG--
extra : rebase_source : acdf3e6799819a3664294fa125a88c3d3a41aec4
2017-03-17 16:54:05 +08:00
Kaku Kuo 0d5f3a200f Bug 1347402 part 5 - create MediaElementGMPCrashHelper in HTMLMediaElement.cpp; r=cpearce,jwwang
Move the creation of MediaElementGMPCrashHelper out from MediaDecoder.cpp
which reduces the dependency of MediaDecoder to HTMLMediaElement.

MozReview-Commit-ID: E60aMfcFr7V

--HG--
extra : rebase_source : f50a8ee6f2fbec0bdf117eb1217066bc9c701745
extra : source : dd4e52da6d0d6205fe61d0caba44bbff008fd21a
2017-03-16 11:16:15 +08:00
Kaku Kuo b7fee84e84 Bug 1347402 part 4 - move ConstructMediaTracks/RemoveMediaTracks to HTMLMediaElemnt; r=jwwang
ConstructMediaTracks and RemoveMediaTracks are actually HTMLMediaElement's responsibilities.

MozReview-Commit-ID: 8lOdzD4pN7N

--HG--
extra : rebase_source : 7159d2c62b77429e5b2305b9e3eb7a0020a3b52c
extra : source : 0467c059be3cd8f066da5fc912b7738a5b9c4dd9
2017-03-15 17:33:21 +08:00
Kaku Kuo a71c156f34 Bug 1347402 part 2 - open a GetOwnerDoc() interface at the MediaDecoderOwner; r=jwwang
Open a GetOwnerDoc() method to the MediaDecoderOwner interface and then we can get the
owner document via a pointer to MediaDecoderOwner in MediaDecoder.

MozReview-Commit-ID: JCzQDLx1MsU

--HG--
extra : rebase_source : e194c95cb1513046ec7aa19d6c6e9f8231971a2d
extra : source : 1b9c45911a036e3677b6636cda84a636681d71de
2017-03-15 11:40:37 +08:00
JW Wang 00339296c7 Bug 1345313 - Label runnables under dom/media/gtest. r=gerald
MozReview-Commit-ID: Fp7Rcn6JsXf

--HG--
extra : rebase_source : beb0e871d459f616a41f617d092e86938cf5c997
extra : source : 6081536de4c4c2dc7e191eeb87df50f879e44a86
2017-03-07 16:06:59 +08:00
Jeff Walden d73ce21741 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
--HG--
extra : rebase_source : 176a2afde5772bbdf43f0f6dc8082201acadcf4f
2017-02-13 09:07:40 -08:00
Gerald Squelart 6a13464498 Bug 1339924 - Remove unneeded [queue] lambda capture - r=dholbert
'queue' is not used inside that lambda, so we can drop it.

Another option would have been to simulate its use through `Unused <<`.
But I think that it's a useful test, *not* to capture the queue here, to verify
that it is correctly captured in the enclosing MozPromise::Then.

MozReview-Commit-ID: LUQGPJzDcTb

--HG--
extra : rebase_source : 8a539816b8c3ce16ea7af2fed0d6b2b68bd3900b
2017-02-16 10:17:32 +11:00
Chris Pearce 302ca1dbee Bug 1332530 - Remove GMP enum storage names. r=gerald
Note: Only the Adobe GMP used enum storage, so not that it's unused we may
as well remove this.

MozReview-Commit-ID: JtmQ69eJzaI

--HG--
extra : rebase_source : 29929e680dc1692b957b34ce274c4944743768e8
2017-01-20 15:06:00 +13:00
Chris Pearce 6b15c34475 Bug 1332530 - Remove librlz and EME/GMP device binding code. r=gerald
MozReview-Commit-ID: FzJ220XlrJi

--HG--
extra : rebase_source : 0945a3b46bcc90de9b48f56da46090cb2f777411
2017-01-20 13:47:48 +13:00
Andreas Pehrson 6308603b30 Bug 1333341 - Add gtest for per-frame rounding error. r=jesup
MozReview-Commit-ID: KEG3ewlMmTN

--HG--
extra : rebase_source : f1ea0444250a245ac0be728facf120c42c1faf14
2017-01-24 09:26:51 +01:00
Gerald Squelart 9c41bb7d24 Bug 1333314 - MediaCodecs::operator==(ascii literal) - r=jya
Instead of `...Codecs().AsString().EqualsASCII("...")`, one can just type
`...Codecs() == "..."`.

MozReview-Commit-ID: JS0yXhs0mz1

--HG--
extra : rebase_source : 40947ca3975ae5390d5dae5add7ed35460235545
2017-01-24 15:42:48 +11:00
Andreas Pehrson 15e55f2046 Bug 1332619 - Add gtest for skipped frames. r=jesup
MozReview-Commit-ID: G5BkNVayJOV

--HG--
extra : rebase_source : f9ff73a6f86e7d85f4ff8d78d8af87a4b1bc8e80
extra : intermediate-source : f9688b01d725caadb64486d299a6a38a421b560b
extra : source : f06f4ff1d49007e0d6a2506f87df3c365f3a2c5f
2017-01-23 15:32:24 +01:00
Ryan VanderMeulen 340794d0a9 Backed out 2 changesets (bug 1332619) by request.
Backed out changeset 08d0dccfb2c3 (bug 1332619)
Backed out changeset a406da1d258c (bug 1332619)

--HG--
extra : rebase_source : 0b6a5f2623967fe35eaa60941571feb3e91fecb5
2017-01-23 11:25:11 -05:00
Andreas Pehrson 762080ae3d Bug 1332619 - Add gtest for skipped frames. r=jesup
MozReview-Commit-ID: G5BkNVayJOV

--HG--
extra : rebase_source : c2aef01ea7b2c9e61576af3b13b1a10b794e253d
extra : source : f06f4ff1d49007e0d6a2506f87df3c365f3a2c5f
2017-01-23 15:32:24 +01:00
Bevis Tseng f2bdbd8fd1 Bug 1314833 - Part 2.1: Factor out AbstractThread::MainThread() used in Media Playback. r=billm,jwwang
MozReview-Commit-ID: 9yJi3iDtVZG

--HG--
extra : rebase_source : 39c720ccc576ed9247b5e8abb70d99d7873b3ad6
2016-11-29 13:03:36 +08:00
Phil Ringnalda 0fae2ed52a Backed out 2 changesets (bug 1332619) for frequent Win8 gtest failures in VP8VideoTrackEncoder.SkippedFrames
Backed out changeset 9ea8e4f2edae (bug 1332619)
Backed out changeset 123099d23df5 (bug 1332619)
2017-01-20 20:02:57 -08:00
Andreas Pehrson 12bae8d7f9 Bug 1332619 - Add gtest for skipped frames. r=jesup
MozReview-Commit-ID: G5BkNVayJOV

--HG--
extra : rebase_source : 522a754f70bff7525c5f9e8fdc4343360783c356
extra : source : f06f4ff1d49007e0d6a2506f87df3c365f3a2c5f
2017-01-20 15:30:29 +01:00
Andreas Pehrson 2bca25c1da Bug 1332585 - Add gtest for starting a track with null frames. r=jesup
MozReview-Commit-ID: FxJUFNZ3TDn

--HG--
extra : rebase_source : caf2c39e07d8e1664e419ef83971f7b1a5eee73b
extra : source : 42db20a8898443376c0e0aeea62befa23eb52e93
2017-01-20 12:27:32 +01:00
Andreas Pehrson c42cf251e0 Bug 1332585 - Add gtest for passing multiple instances of one frame to the vp8 encoder. r=jesup
MozReview-Commit-ID: ellNhSDWGh

--HG--
extra : rebase_source : e224edbec125e39e7175fffb3d8ff933fdf48a02
extra : source : e369214fb173e8325c352075dd10466a9f90b03f
2017-01-20 12:26:56 +01:00
Andreas Pehrson 9197ca6ccc Bug 1332585 - Check that encoder completed after EOS in existing test. r=jesup
MozReview-Commit-ID: FFLyGhggDyM

--HG--
extra : rebase_source : 0ef19f642b65dbfc502a116449de78c5fde67a9f
extra : source : 3b4820bc1fc83dba9f621cb0ba0bafe09c2f303f
2017-01-20 12:25:48 +01:00
Andreas Pehrson 50321cf606 Bug 1332585 - Add gtest for encoding a single frame. r=jesup
MozReview-Commit-ID: DAEG4hO34G6

--HG--
extra : rebase_source : 7655cd44597ea01e3702cfb6e30128570a555475
extra : source : d3480dc22e30c6a0aa28a9122b9289bf50703985
2017-01-20 12:24:36 +01:00
Andreas Pehrson 152163deeb Bug 1332585 - Make VP8TrackEncoderTest's buffer generator more explicit. r=jesup
MozReview-Commit-ID: DZbF6vRMug6

--HG--
extra : rebase_source : 508ed10df6594101d068b6363f1258d6b4d8692b
extra : source : 41debe52a3e32820eb33a18ad86e794a3efdc6c6
2017-01-20 11:48:59 +01:00
Chris Pearce fe31d4bd44 Bug 1332149 - Don't expose plugin-container or sandbox vouchers to GMPs. r=gerald
MozReview-Commit-ID: JZBoEptskf0

--HG--
extra : rebase_source : c2de46c71eced8fc9ad00f9fbb95f9dc9f5ee6ba
2017-01-19 14:57:30 +13:00
Andreas Pehrson 15b7f07b21 Bug 1330918 - Set timestamp in VP8TrackEncoder GTest. r=jesup
MozReview-Commit-ID: 4LeR1iUZBgs

--HG--
extra : rebase_source : 5ce54384a32f306eb4f52ba5771eb9dd0f3d94a1
2017-01-19 10:51:52 +01:00
Chris Pearce abf5ab3771 Bug 1331829 - Remove async shutdown GMP API. r=gerald
Now that we're not supporting Adobe EME anymore, we don't need to
provide a mechanism for GMPs to block browser shutdown.

MozReview-Commit-ID: KUC94IBQiod

--HG--
extra : rebase_source : ed521f28e272de11b2d0c4546b98baf6bd7c6e72
2017-01-18 15:01:56 +13:00
Gerald Squelart f17dd305d6 Bug 1331289 - Use MediaContainerType in MediaResource, SourceBuffer, TrackBuffersManager, and dependencies - r=jya
Continuing the work of replacing MIME strings with MediaContainerType, starting
from MediaResource and following the dependencies.

Most changes are mechanical: Just change ns*String into MediaContainerType, and
MIME string literals into MEDIAMIMETYPE("a/b").
Some checks for empty/invalid strings and lowercase comparisons can go, thanks
to the always-valid always-lowercase-MIME invariants of MediaContainerType.

One special case in is MediaSourceResource, which used to have an empty string
as its type (because its own type is not relevant, but its SourceBuffers carry
types). Because the inherited GetContentType *must* be overridden, and must
return a MediaContainerType, we needed a valid type even though it should not
be seen in the real world. I've chosen "application/x.mediasource" for that.

MozReview-Commit-ID: 1aCH75Kh2e6

--HG--
extra : rebase_source : 0d9cd9b69c264e5dcfc3845f80ee107f4bcbcd9a
2016-12-28 18:59:02 +11:00
Gerald Squelart 5745998021 Bug 1331770 - Rename 'MediaContentType' to 'MediaContainerType' - r=jya
MozReview-Commit-ID: F0BWai8vPyo

--HG--
rename : dom/media/MediaContentType.cpp => dom/media/MediaContainerType.cpp
rename : dom/media/MediaContentType.h => dom/media/MediaContainerType.h
extra : rebase_source : 640ada96750b4496055087e80ae3f600c9df31c9
2017-01-18 11:59:03 +11:00
Gerald Squelart f3a92fa0a6 Bug 1330284 - Use MediaContentType in MP4Decoder - r=jya
MozReview-Commit-ID: 9Npl40Iicjc

--HG--
extra : rebase_source : 27df1df1cdf8eb8b608e155c0146c8b09d655de4
2017-01-01 12:27:45 +11:00
Gerald Squelart 843031e2a5 Bug 1330284 - Use MediaContentType in WebMDecoder - r=jya
MozReview-Commit-ID: 5tcc9of73WR

--HG--
extra : rebase_source : 38ef74afdf27fec45f84f33f539717b3595358f2
2017-01-01 12:16:38 +11:00
Gerald Squelart e0f7233057 Bug 1329568 - gtest for MediaMIMEType and family - r=jya
MozReview-Commit-ID: BhQR490Tn7U

--HG--
extra : rebase_source : 21313dfd4d86ae0e4c7d5de4f4f59cc96f79fec6
2016-12-30 17:41:17 +11:00
JW Wang 4f5754ca55 Bug 1328130. Part 2 - remove MozPromiseRequestHolder::Begin(). r=gerald
MozReview-Commit-ID: JL27n0Era6E

--HG--
extra : rebase_source : e6de76db3fb35b110370497f4060ea1c3f527f23
extra : intermediate-source : 5bc39a45ef042b895a5abda59cc0796e8cfb4be3
extra : source : a7f7faded7b112e8a971ca96b091a9a22214a2bb
2017-01-11 16:33:29 +08:00
Wes Kocher e7af9d37e0 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 1X0vSt6PtFn
2017-01-12 16:20:57 -08:00
Wes Kocher 48f75e3c03 Backed out 13 changesets (bug 1329568) for wpt-11 failures in mediasource-addsourcebuffer.html a=backout CLOSED TREE
Backed out changeset 8f37ee96bd78 (bug 1329568)
Backed out changeset 706da9f85272 (bug 1329568)
Backed out changeset c316c8d24d32 (bug 1329568)
Backed out changeset 90a091e65db3 (bug 1329568)
Backed out changeset da855d6a78bb (bug 1329568)
Backed out changeset 3a49367220e3 (bug 1329568)
Backed out changeset 453851b40e3e (bug 1329568)
Backed out changeset 662529436cc4 (bug 1329568)
Backed out changeset 7c62078beb88 (bug 1329568)
Backed out changeset 99758b5f7918 (bug 1329568)
Backed out changeset 2ce9dcf0c274 (bug 1329568)
Backed out changeset 644f206d06d6 (bug 1329568)
Backed out changeset e1ed12f057c8 (bug 1329568)

MozReview-Commit-ID: FhJlySehxHi
2017-01-12 15:10:52 -08:00
Andrea Marchesini 359ae91eac Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
Gerald Squelart bd202b4535 Bug 1329568 - gtest for MediaMIMEType and family - r=jya
MozReview-Commit-ID: BhQR490Tn7U

--HG--
extra : rebase_source : c128443b631300d26083141afe2b844c340d1dde
2016-12-30 17:41:17 +11:00
Gerald Squelart c0cf767767 Bug 1329564 - Option to process empty items in StringListRange - r=jya
By default StringListRange skips empty items.
Two new template options allow handling empty items:
- ProcessEmptyItems: Process all, *except* if string is empty.
- ProcessAll: Process all, including 1 empty item in an empty string.

MozReview-Commit-ID: WNRHU5iCHt

--HG--
extra : rebase_source : 994bf1364a705c8280473635a2a6a685d267ec44
2016-11-28 22:45:58 +11:00
Chris Peterson 4b28bd3f34 Bug 1329547 - Remove EME checks for Vista. r=cpearce
MozReview-Commit-ID: J1ww70KMQuw

--HG--
extra : rebase_source : 8cbf795562a02469ce1c5629c5c693700ee8fcea
2017-01-08 00:56:45 -08:00
Gerald Squelart b3e89a3af9 Bug 1322964 - MozPromise.Then() taking only one resolve+reject function - r=jwwang
Then and ThenPromise can now be given only one function object, which takes a
`const MozPromise::ResolveOrRejectValue&`.

MozReview-Commit-ID: BEtc3spK9Yh

--HG--
extra : rebase_source : 1b16ad15ebfcdfb653d8d98073adee0f8b27b46e
2017-01-03 16:15:14 +11:00
Markus Stange 692210bd80 Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj
MozReview-Commit-ID: 7W1dt2BBKJZ

--HG--
extra : rebase_source : c7e335dac2e0f02782f0eb229a7181c8d01317a2
2016-12-21 11:43:50 +01:00
Chris Pearce 80a5e71248 Bug 1325185 - Fix operator precedence in GMPUtils' ToHexString(). r=gerald
MozReview-Commit-ID: 41KoItfOYts

--HG--
extra : rebase_source : b42a325a00f5939ee3c4945c1a5cee826f89c385
2016-12-22 09:20:17 +13:00
Eugen Sawin e586fb1608 Bug 1324789 - [1.0] Add MP3 demuxer test for a file with partial optional XING header fields. r=jya 2016-12-20 22:21:00 +01:00
Jean-Yves Avenard 7569b21aa8 Bug 1324381: P1. Add gtest. r=gerald
Invalid videos with negative duration. Exception had been added to handle 32 bits encoded duration, not 64 bits one.

MozReview-Commit-ID: 8jwDwpMREmc

--HG--
extra : rebase_source : 0304db69d06590b65f5c64ae481be6a75b53a24e
2016-12-19 21:04:22 +11:00
JW Wang d4d5d4d5bb Bug 1321744. Part 3 - remove ThenPromise and replace its use with Then. r=gerald
MozReview-Commit-ID: AsmePdCp2tC

--HG--
extra : rebase_source : e08ac48584375d2bc12f5b73a1e60f2800359ed9
extra : intermediate-source : 94e727f7cd11bb04812da3662a0ee1fd461cc832
extra : source : 5307716231f93b01c0357011f8849015d4d97d0a
2016-12-04 08:51:25 +08:00
Andrea Marchesini f7f5990527 Bug 1317927 - Media caching needs to use origin attributes, r=cpearce, r=jesup 2016-12-07 07:07:09 -10:00
JW Wang c1ec600a1a Bug 1321471. Part 1 - Use of MozPromise::ThenPromise() in place of CompletionPromise(). r=jya.
MozReview-Commit-ID: INbGpzwK4f9

--HG--
extra : rebase_source : 76942aa9741f2ce59f6208cfb0699ad3718a25d4
extra : intermediate-source : 61f3ade0fb73f6318ae616393d66e3dc21d68323
extra : source : 92e78c9b199b252da5d219f8d68902ce353aa4c7
2016-11-30 18:19:26 +08:00
James Cheng ca86869cd0 Bug 1318225 - Part1 - Remove Test Case. r=jya
MozReview-Commit-ID: 8rtS6jlIV3d

--HG--
extra : rebase_source : 3c123b85aaaa2ecaa8859d782c86a0fdf9ca742f
2016-11-17 14:58:35 +08:00
Carsten "Tomcat" Book 59bb309e38 merge mozilla-inbound to mozilla-central a=merge 2016-11-21 15:44:20 +01:00
Gerald Squelart c22dcadd40 Bug 1318228 - Replace nsAutoPtr with UniquePtr in GMPCDMProxy - r=cpearce
MozReview-Commit-ID: Hy4rag5UbsZ

--HG--
extra : rebase_source : d3802b3e0e22cb1ef982eecc4c1a5b016f0ff6aa
2016-11-17 18:40:28 +11:00
James Cheng 01e09b0a7f Bug 1317660 - Fix CID 1394336: Resource leaks in TestAudioPacketizer.cpp r=padenot
MozReview-Commit-ID: GAKgI6JVm52

--HG--
extra : rebase_source : d682b06c1d07bb089b73ff4d1473ff6b58b223d0
2016-11-15 18:20:32 +08:00
Carsten "Tomcat" Book 8cfa5253e8 merge mozilla-inbound to mozilla-central a=merge 2016-11-15 12:26:41 +01:00
Chris Pearce b430a8a481 Bug 1306314 - Add an ID to GMPDecryptor instances, reflect that on CDMProxy. r=gerald
This enables us to identify GMPDecryptor instances in the child process, so that
in a later patch when we create a GMPVideoDecoder instance, we can associate it
with a GMPDecryptor. Then the cdm::ContentDecryptionModule8 instance that these
two actors are adapted to can know whom it's supposed to respond to.

We use the IPDL PGMPDecryptorChild actor ID as the GMPDecryptor's ID. This is unique
per GMP process, which is sufficient.

MozReview-Commit-ID: 7NKND9VjPUW

--HG--
extra : rebase_source : da14d9a8a7313a609e30649af1a23e79b3e401fe
2016-11-11 12:10:43 +13:00
Iris Hsiao d9a1a0a083 Backed out changeset 9e9727bdc484 (bug 1306314) 2016-11-14 11:07:39 +08:00
Chris Pearce ec543ad267 Bug 1306314 - Add an ID to GMPDecryptor instances, reflect that on CDMProxy. r=gerald
This enables us to identify GMPDecryptor instances in the child process, so that
in a later patch when we create a GMPVideoDecoder instance, we can associate it
with a GMPDecryptor. Then the cdm::ContentDecryptionModule8 instance that these
two actors are adapted to can know whom it's supposed to respond to.

We use the IPDL PGMPDecryptorChild actor ID as the GMPDecryptor's ID. This is unique
per GMP process, which is sufficient.

MozReview-Commit-ID: 7NKND9VjPUW

--HG--
extra : rebase_source : 6ea7dfa358f8d13f7d36db5a581fc075268038b7
2016-11-11 12:10:43 +13:00
Nicholas Nethercote 7f263d232a Bug 1317221 - Used vector delete where required in TestAudioSegment.cpp. r=padenot. 2016-11-14 17:20:05 +11:00
Nicholas Nethercote 5daac04ccf Bug 1316792 - gtestify toolkit/components/places/tests/cpp/test_IHistory.cpp. r=mak.
This is a most minimal gtest conversion possible. It leaves in place
significant amounts of non-typical-for-gtest code.

Notable changes:

- All the mock Link and URLSearchParams method definitions are no longer
  needed.

- The changes adds a new constructor for Link that doesn't set mHistory.
  Without that, leaked URLs occur at shutdown.

- The output printed by the test is slightly streamlined, mostly by omitting
  the test filename.

- It disables TestMediaFormatReader.cpp, which was causing problems. That test
  is slated for removal in bug 1318225 anyway.

--HG--
rename : toolkit/components/places/tests/cpp/mock_Link.h => toolkit/components/places/tests/gtest/mock_Link.h
rename : toolkit/components/places/tests/cpp/moz.build => toolkit/components/places/tests/gtest/moz.build
rename : toolkit/components/places/tests/cpp/places_test_harness.h => toolkit/components/places/tests/gtest/places_test_harness.h
rename : toolkit/components/places/tests/cpp/places_test_harness_tail.h => toolkit/components/places/tests/gtest/places_test_harness_tail.h
rename : toolkit/components/places/tests/cpp/test_IHistory.cpp => toolkit/components/places/tests/gtest/test_IHistory.cpp
extra : rebase_source : b7def3f9afce3a44e99f5ed35cb220f7814551cd
2016-11-12 06:22:01 +11:00
Nicholas Nethercote bea3aefea7 Bug 1315561 - gtestify dom/media/compiledtest/*.cpp. r=padenot.
The only complication was that I had to add namespaces to TestAudioMixer.cpp
and TestAudioSegment.cpp to avoid multiple definitions of a few small helper
functions like GetLowValue().

--HG--
rename : dom/media/compiledtest/TestAudioBuffers.cpp => dom/media/gtest/TestAudioBuffers.cpp
rename : dom/media/compiledtest/TestAudioMixer.cpp => dom/media/gtest/TestAudioMixer.cpp
rename : dom/media/compiledtest/TestAudioPacketizer.cpp => dom/media/gtest/TestAudioPacketizer.cpp
rename : dom/media/compiledtest/TestAudioSegment.cpp => dom/media/gtest/TestAudioSegment.cpp
extra : rebase_source : f42a1209b98a344c77e1245815eebc86a16866c0
2016-11-09 08:47:23 +11:00
Chris Pearce d5c366c045 Bug 1314445 - Remove unused ParseKeySystem(). r=gerald
MozReview-Commit-ID: KdIpvet73LR

--HG--
extra : rebase_source : aed95e2b024af6fa36f0da96f564966c8d7f3a7d
2016-11-02 13:56:23 +13:00
Kilik Kuo 55bf555b74 Bug 1303922 - Part 2: Remove KeyStatusChanged/ForgetKeyStatus IPDL messages. r=cpearce
MozReview-Commit-ID: Flx2SQI7lM0

--HG--
extra : transplant_source : %40p%5C%C3%06%D0m%0C/%7B%0C%5B%A2%93o%F6%A1%1B%00%7D
2016-10-04 17:19:53 +08:00