Commit Graph

10814 Commits

Author SHA1 Message Date
Gerald Squelart
42e3e6f1db Bug 1365534 - In non-e10s, open temp file in FileBlockCache thread - r=cpearce
In a parent process, the temporary file was created and opened by calling
NS_OpenAnonymousTemporaryFile() from Init, which was called from the main
thread.
In addition to being called at least once when the first media file is fetched,
it may also be called if caches need to be emptied.

So it should help to move this operation on the FileBlockCache thread, if only
to remove potential background-hang reports from non-e10s configurations.

MozReview-Commit-ID: CjPsHEsL3Ch

--HG--
extra : rebase_source : beaa2793dea82d853669d87c9434139d88562da9
2017-05-17 15:30:32 +12:00
Gerald Squelart
1173cd8973 Bug 1365534 - Remove unneeded IsMainThread assertions - r=cpearce
SetCacheFile, Init, Close, and MoveBlock all had NS_IsMainThread() assertions.
However they all use Monitor's to access member data, so they should be thread-
safe.
(Upcoming patches will actually start using some of these functions from non-
main-threads.)

MozReview-Commit-ID: E1auNEXuoF9

--HG--
extra : rebase_source : 41af7d16f8a9bde5492e864712981a208f3b47be
2017-05-18 16:17:08 +12: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
Alfredo Yang
1382d87d13 Bug 1363647 - reduce MIN_SUCCESSIVE_FRAMES to 3 for a very short mp3 file. r=JanH
MozReview-Commit-ID: LwO9aMglPNP

--HG--
extra : rebase_source : feb12610b5699e6e86f48c168df6f2ab1896293b
2017-05-10 15:34:11 +08:00
Wes Kocher
f79e5f62ee Merge m-c to autoland, a=merge UPGRADE_NSS_RELEASE
MozReview-Commit-ID: BKdEYXMvOS8
2017-05-17 15:08:03 -07:00
Nils Ohlmeier [:drno]
9f2f58316a Bug 1365081: added data channel test function for maxPacketLifeTime. r=jesup
MozReview-Commit-ID: KXSvIxBcLMB

--HG--
extra : rebase_source : 85c5b500a2096a0bce1e7a6b241aab171cb3a728
2017-05-15 18:22:27 -07:00
Carsten "Tomcat" Book
845d4f803d Merge mozilla-central to mozilla-inbound 2017-05-17 12:27:56 +02:00
JW Wang
39a57b5d00 Bug 1365484 - Remove the call to AbstractThread::GetCurrent() in Benchmark.cpp. r=gerald
See bug 1365483 for the rationale.

MozReview-Commit-ID: ITKtWISQ3A3

--HG--
extra : rebase_source : 0bc0521ad8a00e643dcd762c495b6fb5f4ae3ecb
2017-05-17 13:56:40 +08:00
David Anderson
95253e5ab3 Don't use out-of-process video decoding with software compositors. (bug 1356448, r=mattwoodrow)
--HG--
extra : rebase_source : 58620b7a014b7a05acb3228af5456355f93d4425
2017-05-17 00:40:56 -07:00
John Lin
d888243796 Bug 1363276 - discard video output buffers according to presentation time rather than size. r=esawin
This works around an Android 4.2.2 bug that reports incorrect sizes for hardware buffers.

MozReview-Commit-ID: 4rAu8d1RwOJ

--HG--
extra : rebase_source : f63ad96427b90dc24e0cb84319f256d1ec354b5e
2017-05-05 16:19:47 +08:00
Alastor Wu
62a2ec73a8 Bug 1364296 - enable dom/media/test/test_unseekable.html on Android. r=jwwang
Now the fragent mp4 is seekable, so we should remove "street.mp4" from unseekable test.

MozReview-Commit-ID: 9S18yj7rOjA

--HG--
extra : rebase_source : 12e01834df75257c0999aa186c1a825c7b13af48
2017-05-15 17:21:34 +08:00
JW Wang
4b91acd0b1 Bug 1364834 - Fix rounding error in WaveDataDecoder::ProcessDecode(). r=jya
The duration is rounded down to 0 if |frames| is smaller than |mInfo.mRate|.
We should call FramesToTimeUnit() instead.

MozReview-Commit-ID: E7eOQuD48x2

--HG--
extra : rebase_source : 1edabb9a9fe495f89a13df71d73d3b9aef49fa9d
2017-05-15 17:25:26 +08:00
Wes Kocher
274ba1a154 Merge inbound to central, a=merge
MozReview-Commit-ID: AFMOzsYBEjc
2017-05-15 16:22:21 -07:00
James Willcox
4649c2acf0 Bug 1322650 - Don't use AndroidBridge to get API version in media stack r=jolin
AndroidBridge is not available in child processes.

MozReview-Commit-ID: KlBs8F1Bu1O
2017-05-15 09:37:57 -05:00
James Willcox
cf48e4bebd Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
This is needed to support Flash on Android

MozReview-Commit-ID: 5yNIoZHonla
2017-05-15 09:37:50 -05:00
James Willcox
b69402b0ba Bug 1322650 - Make video decoding work with new SurfaceTexture API r=jolin 2017-05-15 09:37:49 -05: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
ea364d4336 Bug 1364001. P2 - throttle download when we can play through. r=cpearce
MozReview-Commit-ID: HqRtwCAr7k3

--HG--
extra : rebase_source : 15a5613eeb3723eaab2dfb1bba46a1d9828962ac
extra : intermediate-source : 131b22046bc32f01786911369cd58066f46c1adc
extra : source : 6521cb0faee565a0bb7b71ccb60a5106196d6a1d
2017-05-11 17:26:20 +08:00
JW Wang
c6c155a08e Bug 1364001. P1 - add an API to throttle download. r=cpearce
MozReview-Commit-ID: HdmAgvo1GE3

--HG--
extra : rebase_source : 97f0aa3e40c6c774ad7681ee2aae69393c47e741
extra : intermediate-source : 9f2e1751e19f88625d2a89dba0b1648f97d2478f
extra : source : b68fed514292e5e8c7815633052daeee24f64a95
2017-05-11 16:49:36 +08:00
Ralph Giles
cfe9afb991 Bug 1363857 - Add missing includes to FFmpegLibWrapper. r=gerald
This was working because of the unified build, but passing
--enable-av1 changed the source partitioning in such a way
that the referenced defines and symbols were no longer available.

MozReview-Commit-ID: CRjyhLtOhoM

--HG--
extra : rebase_source : bce3810fcff39669c4578f1b545fb619be691e38
2017-05-10 14:57:25 -07:00
Alastor Wu
9868cfdd56 Bug 1364374 - don't test flac on Android. r=jwwang
Now we don't support flac on fennec, only need to test it on non-android platforms.

MozReview-Commit-ID: 9Qli9zSlNe9

--HG--
extra : rebase_source : 4cc96bc25d499b27f745b20e5ca8bb961a4632dd
2017-05-12 18:20:08 +08:00
Sebastian Hengst
484d2b7f51 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Jduo3F6TzgF
2017-05-14 18:04:29 +02:00
Kris Maglione
b588cdc5bb Bug 1361900: Part 1 - Make CDMProxy.h compatible with mozilla::Result. r=JamesCheng
MozReview-Commit-ID: DiO7IPFYKbE

--HG--
extra : rebase_source : 500e32854c50e2381fd9de3a3533611be1426329
extra : source : 9e3064aec4bb16542f9cc93a89f7a257b6716a98
2017-05-12 12:08:43 -07:00
Sebastian Hengst
7b52c82b67 Backed out changeset 9e3064aec4bb (bug 1361900) for crashing Marionette's test_timeouts.py TestTimeouts.test_reset_timeout on Linux debug with e10s. r=backout 2017-05-13 18:56:06 +02:00
Kris Maglione
49ed37ac3d Bug 1361900: Part 1 - Make CDMProxy.h compatible with mozilla::Result. r=JamesCheng
MozReview-Commit-ID: DiO7IPFYKbE

--HG--
extra : rebase_source : defeef269706ba81ee35272818e468e3ae0b2b19
2017-05-12 12:08:43 -07:00
Nils Ohlmeier [:drno]
264b79ba3d Bug 1359854: added test with b=TIAS. r=jesup
MozReview-Commit-ID: 5xFTFVkO7AZ

--HG--
rename : dom/media/tests/mochitest/test_peerConnection_basicVideo.html => dom/media/tests/mochitest/test_peerConnection_restrictBandwidthWithTias.html
extra : rebase_source : 4c287304e8cf9470313ad59bf24febce7265bafe
2017-05-11 21:01:48 -07:00
Chun-Min Chang
5061c392f0 Bug 1331763 - part2: Test cases; r=cpearce
MozReview-Commit-ID: 6dXLYq4unxa

--HG--
extra : rebase_source : dc3335935881bfcf5c3f9e70a48a35a7acb6eb72
2017-05-15 13:20:50 +08:00
Chun-Min Chang
da52aad1f7 Bug 1331763 - part1: Support EME content for AudioContext::CreateMediaElementSource; r=cpearce
MozReview-Commit-ID: 1OMySAPCH4i

--HG--
extra : rebase_source : abd014ffc19976abbfdb523b6a172e42a3a80521
2017-05-15 13:21:28 +08:00
Jean-Yves Avenard
0f30c92978 Bug 1363618: Only parse blob starting with ADTS marker. r=kamidphish
Will also significantly speed up sniffing in general as this code is called quite often.

MozReview-Commit-ID: KLjpRwynv2J

--HG--
extra : rebase_source : 2b0b652ab8f8e856cb5e7e755ef62480c6b7d281
2017-05-11 11:43:06 +02:00
Bryce Van Dyk
308b77f727 Bug 1364776 - Relax the restrictions on when MediaRecorder.requestData can be called. r=pehrsons
MozReview-Commit-ID: JnTwtTQP8M

--HG--
extra : rebase_source : 1dbfde4a37f5f13f175e3c8dc769a8dfcc5db588
2017-05-15 08:53:06 +12:00
Chris Pearce
8be5473cac Bug 1362212 - Implement HTMLMediaElement.reportCanPlayTelemetry. r=gerald
Defer determining whether we have usable decoders to an off-main thread in
order to avoid janking the main thread.

MozReview-Commit-ID: Ape5zEBBMrz

--HG--
extra : rebase_source : 1b77046ebb7bb2d4ff1ba53afce904d3de45c335
2017-05-10 11:31:16 +12:00
Michael Froman
e832594e26 Bug 1361139 - pt 1 - remove mozSelectSsrc Chrome-only API for test-related ssrc filtering. r=qdot
After changes from Bug 1358224 to add test-related RID filtering, we no longer
need the test-related SSRC filtering (which only partially worked).

MozReview-Commit-ID: 4A6slqOTjbU

--HG--
extra : rebase_source : 6e36e4fdaab46b44fadadd7f55eb60c6c89ac106
2017-05-05 16:52:33 -05:00
Ryan VanderMeulen
ff1d6f6f88 Merge m-c to autoland. a=merge 2017-05-11 11:30:47 -04:00
Sebastian Hengst
db8f56dd23 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HWYxZeNWish
2017-05-11 16:50:12 +02:00
Benjamin Peterson
d7205479b1 No bug - fix indentation DONTBUILD
--HG--
extra : rebase_source : 98b121a221b63f701e65536c602504d702945e0a
2017-05-09 22:19:23 -07: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
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
4018e22ad9 Bug 1362910. P2 - fix callers. r=gerald
Since RefPtr<T>&& can't be converted to T* implicitly, we need to change
T* to RefPtr<T> in resolve/reject callbacks to make it compile again.

We should review the changes later to look for the opportunity to
optimize away unnecessary AddRef/Release pairs.

MozReview-Commit-ID: 22rHQ8dhxJv

--HG--
extra : rebase_source : 1b09f353d6e86d60c93a2746333585ec0dba8526
2017-05-11 08:30:39 +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
Carsten "Tomcat" Book
d66b9f27d5 merge mozilla-inbound to mozilla-central a=merge 2017-05-10 15:07:28 +02:00
Bill McCloskey
c197e07ff2 Bug 1363560 - Name more runnables (r=mccr8)
MozReview-Commit-ID: 3hxZDA4JlTV
2017-05-09 21:53:25 -07:00
bechen
172da9b6e3 Bug 1360718 - Render the webvtt cues when hiding the control bar. r=alwu
"video.controls = false" will remove the binding of videocontrols which is a xul element.
In vtt.jsm, we need to remember the last show/hide status of videocontrols, then render cues when status changed.

MozReview-Commit-ID: 30rebAuqmxy

--HG--
extra : rebase_source : e011ec0679ab03071e01b91c124c5b72e481a8da
2017-05-09 17:49:42 +08:00
David Anderson
efabd88473 Wait for VideoDecoderManagerParents to shut down before destroying the VideoParent thread. (bug 1360697, r=billm) 2017-05-09 16:51:07 -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
Chris Pearce
59c8ad9b72 Bug 1363605 - Widevine should support SW_SECURE_CRYPTO video robustness. r=gerald
Turns out that Chrome treats the robustness values as SW_SECURE_DECODE to mean
that SW_SECURE_CRYPTO is also supported. So we'd better follow suit...


MozReview-Commit-ID: 6J68IsSQhyL

--HG--
extra : rebase_source : 08baf83f0812f52670f1643e7e86ced0a0972f64
2017-05-10 16:00:21 +12:00
Wes Kocher
e2902f93a3 Merge inbound to m-c a=merge
MozReview-Commit-ID: Fp2oBAcru51
2017-05-09 14:34:34 -07:00
Munro Mengjue Chiang
c8de52fd2d Bug 1363261 - Remove a callId from mCallIds when the corresponding GetUserMediaTask is removed from mActiveCallbacks. r=jib
MozReview-Commit-ID: DcSQ8O9MoCb
2017-04-24 15:11:51 +08:00
Carsten "Tomcat" Book
76ca853e3e Merge mozilla-central to mozilla-inbound 2017-05-09 14:40:11 +02:00
Joel Maher
5e10562ae6 Bug 1360452 - Intermittent dom/media/test/test_background_video_resume_after_end_show_last_frame.html. disable on win/debug. r=kaku
MozReview-Commit-ID: Gtte0SbVEj2
2017-05-09 06:22:49 -04:00
Jean-Yves Avenard
ab282a14d4 Bug 1357040: P2. Don't rely on NotifyDataArrived to resolve MSE init promise. r=gerald
MozReview-Commit-ID: KUxVqfU9umw

--HG--
extra : rebase_source : c6f11109490fbb6fbfbda1b0fe2be1c8088ca4a2
2017-04-27 19:53:53 +02:00
Jean-Yves Avenard
f0cabce941 Bug 1357040: P1. Abort if demuxer initialisation isn't complete. r=jwwang
MozReview-Commit-ID: 9SSgQq272My

--HG--
extra : rebase_source : a9d0abfaefaf2861dfca58b328fdef46505a7aaf
2017-04-25 15:28:31 +02:00
JW Wang
ed2b1d901a Bug 1362927 - handle AddBlocker() failure in MediaShutdownManager::InitStatics(). r=gerald
AddBlocker() could fail during main thread shutdown. We should clear sInstance
on failure so next Register() calls can fail gracefully.

MozReview-Commit-ID: KiRRhO9ymbf

--HG--
extra : rebase_source : ed514f71f85c3d2f7ed6a8ee6f701ae131ec5962
extra : source : 1f379bcfc15b77cc89ee7a3a9e12e85f63a83524
2017-05-08 16:09:03 +08:00
JW Wang
5803056b70 Bug 1361756 - don't reset decoders when entering dormant. r=kaku
Resetting decoders somehow cause the WebM demuxer to seek and initiate
network download which is blocked by the site for invisible media elements.

See comment 5 for how this blocks playback.

We work around this issue by not resetting decoders when entering dormant
since we will reset them anyway during seeking when exiting dormant.

This change is a workaround for this bug though. However it is also an
improvement for the dormant state in general since it removes unnecessary
works to improve performance.

MozReview-Commit-ID: KtbpQlrO8J

--HG--
extra : rebase_source : 6e773879126ed447fdceb565d3fffa3b546b4a48
2017-05-05 11:14:46 +08:00
Sebastian Hengst
0f3dde8a14 Backed out changeset 5f263d6fb16d (bug 1362212) for build bustage on Linux - fails testing/xpcshell/selftest.py | XPCShellTestsTests.testAddTaskStackTrace. r=backout 2017-05-07 23:12:35 +02:00
Chris Pearce
aa3f97c3ef Bug 1362212 - Move canPlayType telemetry to an idle service observer off main thread. r=gerald
Currently we call HTMLMediaElement.canPlayType() in a JS function called
shortly after startup in order to collect telemetry as to how many of our users
don't have functioning decoders.

Unfortunately, HTMLMediaElement.canPlayType() checks whether we can play a
codec by instantiating a decoder, and this requires us to load the system
decoding libraries from disk. This requires disk I/O, which can cause jank. We
have some BHR reports showing that canPlayType can hang for > 8 seconds to back
this up.

So move the collection of this telemetry to an idle service observer, so that
we only collect this when the user is idle, and do it on a non-main thread so
it is less likely to cause jank.


MozReview-Commit-ID: HJQawmRxz

--HG--
extra : rebase_source : f5a8596fd9de770abd20e1a3e8ac0bcbb5b48599
2017-05-05 13:55:14 +12:00
Andreas Pehrson
7b778ab6a6 Bug 1320994 - Improve SourceListener logging. r=jib
MozReview-Commit-ID: 1xuLwpMHMQB

--HG--
extra : rebase_source : 9276fc7db3566cf0d46a37811a044a25a19bfcbc
2017-03-29 12:07:45 +02:00
Andreas Pehrson
1fc0f176be Bug 1320994 - Unify MediaManager logging macros. r=jib
MozReview-Commit-ID: 14b6cXgOqP8

--HG--
extra : rebase_source : 0170fb2dcf5856e04cb198eaeb7cbd6b296857b4
2017-03-29 12:06:49 +02:00
Andreas Pehrson
57c8cc22d0 Bug 1320994 - Refactor MediaManager's window management. r=jib
This in large does the following:

* Changes the model in MediaManager to align with that of chrome code, namely:
 - One GetUserMediaWindowListener *per window*, containing N SourceListeners for N gUM requests, and
 - GetUserMediaWindowListener replaces GetUserMediaStreamListener
 - So if two SourceListeners stop we can still send only one event
* Breaks a special event specific to B2G chrome

MozReview-Commit-ID: 3wbPFmc9yWj

--HG--
extra : rebase_source : dff76a1fa604962b45446d632ffb4da58853cfa0
2017-04-26 11:13:40 +02:00
Ralph Giles
e12f75bc3f Bug 1314147 - Recognize AV1 in WebMDemuxer. r=jya
Call AOMDecoder to handle AV1 video tracks from the WebM container.
The new decoder is very similar to VPXDecoder so we can use parallel
calls. This codec is still build-time conditional.

MozReview-Commit-ID: 5cexCZiNBqo

--HG--
extra : rebase_source : 992687c0d589bef75b6b77a1cc4137d61267472c
2017-04-19 14:41:37 -07:00
Ralph Giles
dcaee36bbc Bug 1314147 - Add AOMDecoder to AgnosticDecoderModule. r=jya
Conditionally enable the AV1 decoder as part of the
agnostic PlatformDecoderModule factory.

MozReview-Commit-ID: ApZ1CMvdLE

--HG--
extra : rebase_source : 33cedc6bd6243ccd2019ea40dc9b989921c63b98
2017-04-19 13:30:32 -07:00
Ralph Giles
76e68522c8 Bug 1314147 - Add AOMDecoder. r=jya
Port the VPXDecoder interface to libaom which uses
the same api with the names changed. I've removed
the alpha support for now.

MozReview-Commit-ID: IdxcVWhNgVl

--HG--
extra : rebase_source : 5f3a84fb9a827f01c80057eb520bde184c41f0b9
2017-04-19 13:19:32 -07:00
JW Wang
5d7a4ae4c9 Bug 1362258 - Reduce ref-counting overhead of TrackBuffersManager::AppendData(). r=jya
http://searchfox.org/mozilla-central/rev/6580dd9a4eb0224773897388dba2ddf5ed7f4216/dom/media/mediasource/TrackBuffersManager.cpp#127

We can pass already_AddRefed<MediaByteBuffer> to InvokeAsync to avoid unnecessary AddRef/Release pairs.

MozReview-Commit-ID: ErXompyX8ua

--HG--
extra : rebase_source : f086e4ef5fda9f0dca8bfb0e2b4c74967e3f8323
2017-05-05 10:27:51 +08:00
JW Wang
240b996f12 Bug 1361964 - WebMBufferedState::UpdateIndex() should read from cache. r=jya
We don't want to trigger download when calculating buffer ranges since download
changes buffer ranges.

MozReview-Commit-ID: Be8qFUQ5PpR

--HG--
extra : rebase_source : 4fd77e031577332d9d112faef869cd935275b1af
2017-05-04 21:32:13 +08:00
Iris Hsiao
541787d3f9 Backed out changeset 763cc804a25d (bug 1361944) for causing crashtest perma failure on Android 2017-05-05 15:12:51 +08:00
JW Wang
0b67e0ea16 Bug 1361944. P1 - add a crash test. r=cpearce
The crash happens when:
1. there are multiple <source> children.
2. decode error happens on the 1st child.

MozReview-Commit-ID: 60UXaQ475Nh

--HG--
extra : rebase_source : b7e61ae909cfa10fb2db3c41b278449de41b9450
2017-05-04 14:23:23 +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
Sebastian Hengst
498b61d523 Backed out changeset a39a98ffb29b (bug 1359058) for failing mochitest dom/canvas/test/webgl-conf/generated/test_conformance__textures__misc__texture-npot-video.html on Windows. r=backout 2017-05-05 00:34:05 +02:00
Sebastian Hengst
64ea535650 Backed out changeset fe9ac1176159 (bug 1359058) 2017-05-05 00:32:36 +02:00
Jean-Yves Avenard
d9c615a36e Bug 1359058: P2. Rely on container flags when seeking in plain MP4. r=gerald
This reverts part of bug 1300296. In the worse case we'll get a decoding error. But we're only trading a bad behaviour for another.

MozReview-Commit-ID: H0gF3FqZsU6

--HG--
extra : rebase_source : 3886b757f3476060067811dcb385967769a67023
2017-04-26 16:43:54 +02:00
JW Wang
31366d9151 Bug 1359058: P1. handle EOS during seeking. r=jya
MozReview-Commit-ID: DPT3t1pi6o1

--HG--
extra : rebase_source : e961bc069095c83db4afab4037a88ca89e1bc7ac
2017-04-26 11:32:50 +08:00
Ralph Giles
d785a282a3 Bug 1362107 - Add missing includes to WebMDemuxer. r=jya
This was working because of our unified build, but having
the correct definitions for all types used by the header
helps editor navigation tools.

MozReview-Commit-ID: LuWEeTIikla

--HG--
extra : rebase_source : 0046ec17ac45270adc771bd0cf77c8381f99737b
2017-05-04 09:53:34 -07:00
Andreas Pehrson
e2702a6458 Bug 1093835 - Turn unnecessary array.map to array.forEach in pc.js. r=jib
MozReview-Commit-ID: 1oqXtncwUQ1

--HG--
extra : rebase_source : 2aad2e3c19c664ba61a26beb43ef75ee5f05bd03
2017-04-28 11:22:18 +02:00
Andreas Pehrson
845373e84c Bug 1093835 - Check video flow in test_pc_videoRenegotiationInactiveAnswer.html. r=jib
MozReview-Commit-ID: G9JIcAXuiWX

--HG--
extra : rebase_source : e36ca4f5045db7669ce119233150b331c25dad32
2017-04-28 11:15:11 +02:00
Andreas Pehrson
8ef263241b Bug 1093835 - Check video flow in test_pc_replaceVideoThenRenegotiate.html. r=jib
MozReview-Commit-ID: 5zUioH6Q4jw

--HG--
extra : rebase_source : 188cde695bc534c5608057728373553691dbda94
2017-04-28 14:55:26 +02:00
Andreas Pehrson
b10edab2e1 Bug 1093835 - Check video flow in test_pc_removeThenAddVideoTrackNoBundle.html. r=jib
MozReview-Commit-ID: IKO31455iCU

--HG--
extra : rebase_source : fcc58d46e29724576e2274fa1fb69e12ded7ad6e
2017-04-28 14:55:15 +02:00
Andreas Pehrson
de02fa8eea Bug 1093835 - Check video flow in test_pc_removeThenAddVideoTrack.html r=jib
MozReview-Commit-ID: 1zbTbzMwJH3

--HG--
extra : rebase_source : 2777e0f4e0349ccb0e2435e9fd2a54d606e21a46
2017-04-28 14:55:03 +02:00
Andreas Pehrson
920a2ccbe7 Bug 1093835 - Check video flow in test_pc_addSecondVideoStreamNoBundle.html. r=jib
MozReview-Commit-ID: KnhRdWNZvhs

--HG--
extra : rebase_source : 5ae8e91645b746f20d5db02cb4fe1d5e33323289
2017-05-04 13:25:01 +02:00
Andreas Pehrson
e851a86b89 Bug 1093835 - Check video flow in test_pc_addSecondVideoStream.html. r=jib
MozReview-Commit-ID: Aqd4VYhlbBb

--HG--
extra : rebase_source : ec3433b97e99ddc761bf0a8b149b1160acc1504e
2017-05-02 12:01:04 +02:00
Andreas Pehrson
c41610f6b8 Bug 1093835 - Commoditize checkVideoPlaying/checkVideoPaused. r=jib
This moves those two functions from a single test to a VideoStreamHelper in a
common file, so they can be used when checking video flow in multiple tests.

It also implements a VideoFrameEmitter that provides tests with an easy to
access video source where VideoStreamHelper can verify flow on the sink.

MozReview-Commit-ID: Fin9eiVmBe

--HG--
extra : rebase_source : 8b62124b0182d7e7bd78788e031b2d2259db9e57
2017-05-04 15:23:36 +02:00
Andreas Pehrson
0fb77b5e31 Bug 1093835 - Check video flow stopping after removing video track and renegotiating. r=jib
MozReview-Commit-ID: Hp3YOki9O5E

--HG--
extra : rebase_source : c7b17cae6cff4dbcfc97f1f24f2e742423284cb1
extra : source : a374c207b11cfdc711da13c71c93c38570d6eb2a
2017-05-04 12:46:20 +02:00
Andreas Pehrson
5a779840a7 Bug 1093835 - Check audio flow in test_pc_removeThenAddAudioTrackNoBundle.html. r=jib
MozReview-Commit-ID: ABkqFUfsoyu

--HG--
extra : rebase_source : 5c33263065d6ab189d578c2bf4330841f64bb86e
2017-05-04 12:44:04 +02:00
Andreas Pehrson
5515940e8a Bug 1093835 - Check audio flow in test_pc_removeThenAddAudioTrack.html. r=jib
MozReview-Commit-ID: 59JXOnjNGyd

--HG--
extra : rebase_source : ef0fb293d5d538b1131b0c2826377abea8bcfbe3
2017-05-04 12:43:53 +02:00
Andreas Pehrson
463b638edc Bug 1093835 - Check audio flow in test_pc_addSecondAudioStreamNoBundle.html. r=jib
MozReview-Commit-ID: I7ZpshtPgAA

--HG--
extra : rebase_source : f0b089653e6e0dc31aaedca6db4def1f637af1c8
2017-05-04 11:38:19 +02:00
Andreas Pehrson
ddd79a635f Bug 1093835 - Check audio flow in test_pc_addSecondAudioStream.html. r=jib
MozReview-Commit-ID: AzCeaL5wKLV

--HG--
extra : rebase_source : e48f155330e22a26cf261741b932e91b56449d5c
2017-05-04 11:38:06 +02:00
Andreas Pehrson
2827d03e31 Bug 1093835 - Check audio flow stopping after removing audio track and renegotiating. r=jib
MozReview-Commit-ID: 2lx6jUON3jU

--HG--
extra : rebase_source : 4caee72edbc678ba9bb5d7a35c04a4eadfe6005d
extra : source : bb77023e0e7f4399e57dd2be2f331ee19c1a874a
2017-05-04 11:37:02 +02:00
Paul Adenot
16a32f974b Bug 1361475 - Remove proprietary constructor on AudioContext. r=baku
This was used only for B2G, was proprietary, and is causing issues, because
`AudioContext` can now have a parameter that is a property bag, per spec
(although we haven't implemented it at the moment).

MozReview-Commit-ID: 6LOlNp0cbfV

--HG--
extra : rebase_source : 48aa342213dba201c1062a08c7453acd16b8baea
2017-05-04 13:43:14 +02:00
JW Wang
316a8afe47 Bug 1361942 - Store ActualArgTypes instead of ArgTypes for we are sending data of ActualArgTypes types to another thread. r=gerald
This allows more use of the implicit version of InvokeAsync() without specifying the storage types explicitly.

MozReview-Commit-ID: 40WisaVX8Jy

--HG--
extra : rebase_source : ba34515788f0bc8264fac9a6897e234966d8b762
extra : source : b651963fe562755c0b2998ae6a95ffad400060ad
2017-05-03 12:34:50 +08:00
Wes Kocher
21203b47b5 Merge inbound to m-c a=merge
MozReview-Commit-ID: JgXkqrOwl3N
2017-05-03 13:40:24 -07:00
Nathan Froyd
695eedecbc Bug 1361445 - convert MediaEngineSource to use NS_DECL_OWNINGTHREAD; r=jesup
The pattern we're using here has a name, so let's use that instead.
2017-05-03 11:48:54 -04:00
Ralph Giles
1e2cce29f2 Bug 1358662 - Call VPXDecoder libvpx wrappers for WebM. r=jya
Use the new helper functions instead of calling libvpx directly.
This simplifies adding other codecs in the future.

MozReview-Commit-ID: 8VX0d5S50EE

--HG--
extra : rebase_source : 34be2118bc5d1bfcb6237d7fbe67d8fbc5ef1508
2017-04-24 15:08:50 -07:00
Ralph Giles
dcb3a85e19 Bug 1358662 - Implement keyframe and framesize VPXDecoder helpers. r=jya
Encapsulate code from WebMDemuxer to query keyframe and frame
resolution inside VPXDecoder, so we have a clean wrapper for
all the libvpx functions we use.

MozReview-Commit-ID: ASRRhNl0A41

--HG--
extra : rebase_source : e0a27e946a60e0c33ecf4908f1e09436f836e123
2017-04-24 15:05:01 -07:00
Ralph Giles
e7a03fe937 Bug 1358662 - Add Span support to MediaRawData. r=jya
MozReview-Commit-ID: A3bHPlk0MQi

--HG--
extra : rebase_source : 4d6bafa6e744d1dce2884a6fa25dd907739e66db
2017-04-21 16:12:55 -07:00
Ralph Giles
318e6f6af0 Bug 1358662 - Store VPXDecoder codec as an enum. r=jya
Use the enum we already have here instead of converting
to an int when we pass it around, giving us better
type checking.

MozReview-Commit-ID: Gj4xmtQnzw2

--HG--
extra : rebase_source : fc7769c9650c59f52bfd8611e6cabb8e5b6d7068
2017-04-24 15:02:54 -07:00
Ralph Giles
9032567bba Bug 1358662 - Store LastSeenFrame dimensions as an nsIntSize. r=jya
This simplifies the comparison and update logic.

MozReview-Commit-ID: A6YII8tlEUn

--HG--
extra : rebase_source : e225b34f91e12591d5872121e024ef29c63a11e0
2017-04-21 18:05:46 -07:00
Sebastian Hengst
82e2afb73a Backed out changeset b17aaf7a8689 (bug 1320994) 2017-05-03 13:14:18 +02:00
Sebastian Hengst
7211725673 Backed out changeset c60c97633ac8 (bug 1320994) 2017-05-03 13:14:09 +02:00
Sebastian Hengst
23ee24c08b Backed out changeset cf74f8bacbc1 (bug 1320994) 2017-05-03 13:14:05 +02:00
Gerald Squelart
b7520a7dec Bug 1349595 - Check GMP i420 frame size computations. r=cpearce
MozReview-Commit-ID: 9HdCbOKah28
2017-03-31 12:21:22 +11:00
Gerald Squelart
848c8517bc Bug 1349604 - Check CDM black-frame size computations. r=cpearce
MozReview-Commit-ID: BnnQn5PZPaB
2017-03-31 10:20:32 +11:00
Chris Pearce
12f8d2203e Bug 1352556 - Validate output of MFGetAttributeSize. r=gerald
MozReview-Commit-ID: J1NirhKfTK6
2017-05-01 16:12:27 +12:00
Bob Clary
6d0f228a31 Bug 1358876 - Autophone - disable additional perma orange tests on Android 5.1, r=jmaher 2017-05-03 04:13:03 -07:00
Andreas Pehrson
ade3807eea Bug 1320994 - Improve SourceListener logging. r=jib
MozReview-Commit-ID: 1xuLwpMHMQB

--HG--
extra : rebase_source : 0e964f4b41ff53c678fa015001156f3af27563db
2017-03-29 12:07:45 +02:00
Andreas Pehrson
7bd84f27d8 Bug 1320994 - Unify MediaManager logging macros. r=jib
MozReview-Commit-ID: 14b6cXgOqP8

--HG--
extra : rebase_source : cb702280e9b3fcfcd09a11feeb9f8dfbdf115580
2017-03-29 12:06:49 +02:00
Andreas Pehrson
5db9427abb Bug 1320994 - Refactor MediaManager's window management. r=jib
This in large does the following:

* Changes the model in MediaManager to align with that of chrome code, namely:
 - One GetUserMediaWindowListener *per window*, containing N SourceListeners for N gUM requests, and
 - GetUserMediaWindowListener replaces GetUserMediaStreamListener
 - So if two SourceListeners stop we can still send only one event
* Breaks a special event specific to B2G chrome

MozReview-Commit-ID: 3wbPFmc9yWj

--HG--
extra : rebase_source : 4ad324f6bb1be637da584f323a3e039c5b4f664d
2017-04-26 11:13:40 +02: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
524f4b0e37 Bug 1361305. P1 - use forwarding reference for the ListenerImpl constructor to enable move whenever possible. r=gerald
MozReview-Commit-ID: AFsbYtx0xMR

--HG--
extra : rebase_source : e822a686003d37a9d5ab21c16b460ac21b2e8864
extra : source : 1e0441900550645f0c9db82ac6119642cd53c3b9
2017-05-02 17:11:51 +08:00
JW Wang
47f3443d87 Bug 1361263 - allow InvokeAsync() to accept a member function which is pass-by-reference. r=gerald
StoreCopyPassByRRef<> ensures a copy is stored in the runnable.
We don't have to worry about the concern of bug 1300476.

MozReview-Commit-ID: DHqlzlVLBFV

--HG--
extra : rebase_source : 77f2175611aa6fad88207a771de75fd28fd46f21
extra : source : 429c62928fd43185da45c905a150cfbe84cb3cf7
2017-04-30 15:37:19 +08:00
JW Wang
1fe207329e Bug 1361259. P5 - fix MediaEventSource::CopyEvent2 which is broken by P2. r=gerald
We avoid passing event data to the listener function to save copies
if it doesn't take any arguments at all.

MozReview-Commit-ID: 7Hkzxrluemm

--HG--
extra : rebase_source : 22b894a58e2bc3836d37b7fd6aaa1f09d82eaeee
extra : source : 67a57b8eaebd355f73b0f10fb99afeaf2ccdb89e
2017-04-29 00:17:57 +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
JW Wang
2b44a55d99 Bug 1361259. P3 - remove unused code. r=gerald
MozReview-Commit-ID: 5svcAzJfGMS

--HG--
extra : rebase_source : 485b3868194932d54778701dc24c0bb202dfcf7a
extra : source : 8141c8cfad1bcf13fdda48a1039e2e96842e75cd
2017-04-28 17:18:50 +08:00
JW Wang
56feb1362b Bug 1361259. P2 - use NewRunnableMethod() to pass event data to the listener function. r=gerald
Note this breaks the MediaEventSource::CopyEvent2 gtest since there is always
one copy or move when storing the event data in the runnable created by
NewRunnableMethod() even when the listener function takes no arguments at all.

We will fix it later.

MozReview-Commit-ID: J9T63yxXko2

--HG--
extra : rebase_source : f15fa78129e562fb3a65027114095b205791d4c7
extra : source : e734b4d950c415be18e2fbc30e26e617758aa556
2017-04-28 16:28:47 +08:00
JW Wang
93fb1e26e2 Bug 1361259. P1 - let ListenerBase inherit RevocableToken. r=gerald
This is needed by P2 where |Listener| must be ref-counted so we can use
NewRunnableMethod() to pass event data to the listener function.

MozReview-Commit-ID: CpAgOmxcijc

--HG--
extra : rebase_source : f80a302788f6312a912d710262322b30b2bce4c0
extra : source : 4ce544aacca4897bc3d2bb25fd415df93dc940b4
2017-04-28 14:18:38 +08:00
Andreas Pehrson
06cde897a7 Bug 1348381 - Handle VideoFrame::CreateBlackImage returning nullptr. r=jesup
MozReview-Commit-ID: LWon0cx5hAK

--HG--
extra : rebase_source : 76db5d68bbfd5ec207ee72fd357f08bcc564fab0
2017-04-28 13:58:22 +02:00
Andreas Pehrson
c8c613c355 Bug 1348381 - Add crashtest. r=jesup
MozReview-Commit-ID: Df2tymv7IiY

--HG--
extra : rebase_source : 49bc487088b80e1130bd607a86da0825db71763f
2017-04-28 13:49:21 +02:00
Andreas Pehrson
3bc708da64 Bug 1342950 - Assert false, not true, on failure in debug. r=jesup
MozReview-Commit-ID: EQ9NESBhRdK

--HG--
extra : rebase_source : 83c6ea79dc1233b4d2567d8f58357e4072732260
2017-04-26 14:02:09 +02:00
Munro Mengjue Chiang
fe3c2d3e77 Bug 1359668 - update mSettings.mWidth and mSettings.mHeight when there is a frame size change. r=jib
MozReview-Commit-ID: GGagmRai3YP

--HG--
extra : rebase_source : 59424be217afd4bea89b0ab3366a8fd26086174d
2017-04-28 17:54:42 +08:00
JW Wang
b4ee0ecebf Bug 1360423 - backout P5 and P2 from bug 1281090. r=gerald
It turns out that sync notification is a bad idea which is easy
to be misused and could results in unexpected reentrant call flow.
Since it has no users after the mass media code refactoring, it is
good to remove it now to prevent future users.

Backed out changeset fb5b05298007
Backed out changeset 9e1fb308cf51

MozReview-Commit-ID: 9WGvRCbvJhQ

--HG--
extra : rebase_source : 748cae9449636c68f3fffbaed0e08347fe63cd91
2017-04-28 11:28:13 +08:00
Chris Pearce
784ad22feb Bug 1360959 - Only assert our buffer is shmem backed if we have a buffer in ChromiumCDMChild. r=gerald
MozReview-Commit-ID: CapowbADccy

--HG--
extra : rebase_source : 63261b8288dce9e3ccd01196b308db907cb0ce8e
2017-05-01 11:09:21 +12:00
Michael Froman
efa82b57bc Bug 1358224 - pt 2 - change to RTP stream id filtering on simulcast mochitests. r=drno
The simulcast mochitests setup the receiving PeerConnection to receive
simulcast video streams which Firefox doesn't really support.  Without
a test media server, this is about the best we can do and still test
simulcast.

Unfortunately the two simulcast streams arriving with different ssrcs
(as expect) exercises code we have to deal with some services switching
ssrcs midstream.  In the tests, this causes intermittent failures
because the test is waiting to receive a certain ssrc, and the receiving
VideoConduit has switched to the other ssrc.

This change adds the ability to filter on RID at the MediaPipeline level,
which we can setup prior to media flowing.  This avoids the ssrc switching
issue since the VideoConduit only receives one ssrc until we change the
RID filter to the second RID.  At that point, the VideoConduit sees a new
ssrc and the switching code works as intended.

The modified mochitests setup the RTP stream id header extension, and then
filter on each of the RTP stream ids in turn.

MozReview-Commit-ID: KApfaxMX8rl

--HG--
extra : rebase_source : d7ae88d9675acd7b3700f342ca6a68d0bbb0ced5
2017-04-26 10:51:00 -05:00
Michael Froman
c526c139fc Bug 1358224 - pt 1 - addRIDExtension and addRIDFilter chrome-only API for RID (RTP Stream Id) filtering of receive tracks. r=qdot
The simulcast mochitests exhibit an intermittent failure due to ssrc-based
filtering that can be solved by filtering by RID.  The RTP header parser
used in MediaPipeline also needs to have the RID RTP header extension
specified in order for it to properly parse the RTP header and allow
filtering on RID.

MozReview-Commit-ID: E54HCGLVYDk

--HG--
extra : rebase_source : b53085f23cb6558611aa7622f55637e19439c9c3
2017-04-26 10:01:07 -05:00
Carsten "Tomcat" Book
99ad79fa44 Merge mozilla-central to autoland 2017-04-28 10:46:26 +02:00
Carsten "Tomcat" Book
1045b9730a merge mozilla-inbound to mozilla-central a=merge 2017-04-28 10:36:11 +02:00
Chris Pearce
873955b81f Bug 1360389 - Have ChromiumCDMParent inform CDMProxy of shutdown. r=gerald
The ChromiumCDMParent is informed of the shutdown of its plugin, so we can
use that to inform the CDMProxy that its connection to the CDM has been
severed. This means we shutdown cleanly if the browser closes while playing.

MozReview-Commit-ID: HphQ2exu1gj

--HG--
extra : rebase_source : ff9ee3699915e8b7527570e839eb3bb0a0ab46bc
2017-04-28 12:02:14 +12:00
Chris Pearce
5fe1464d84 Bug 1357133 - Recover from incorrectly guessing the CDM's shmem sizes. r=gerald
We are pre-allocating shmems in the content process for use by the CDM in the
GMP process. We guess the size of shmem required. However if we guess wrong,
currently we always end up taking the non-shmem path for video frames to
return to the content process, which results in us sending another shmem
(of the wrong size) to the CDM, and this continues until we hit the limit
on the number of shmems that we tolerate the CDM asking for.

So in this patch, I change our behaviour to detect when we're allocating
shmems that are too small, whereupon we purge the existing shmems and switch
to allocating them at the size being requested by the CDM.

This means we recover from incorrectly guessing the size of shmems required
by the CDM. The overhead of an incorrect guess should be one video frame
transferred via the nsTArray path.


MozReview-Commit-ID: 8o1s7FI2UBd

--HG--
extra : rebase_source : 0612d199686278612e8c58dc97e96a9304ea3ee9
2017-04-28 08:55:28 +12:00
Kaku Kuo
d8f3ff3172 Bug 1358057 P2 - add a mochitest; r=jwwang
MozReview-Commit-ID: 4xa1GojEnX0

--HG--
extra : rebase_source : b7585b7cf0ffd0dafede1823f138ac53fa160885
2017-04-25 16:03:47 +08:00
Kaku Kuo
4f05a2cbd0 Bug 1358057 P1 - don't use fastseek while resuming video decoder to the last frame; r=jwwang
MozReview-Commit-ID: Luat2cPO33F

--HG--
extra : rebase_source : 9387cc56e5ca41db1a9e6efa2bc34eb8f617968f
2017-04-25 16:01:43 +08:00
Wes Kocher
9528ad9a03 Merge m-c to inbound, a=merge
MozReview-Commit-ID: DaH1djmEY5A
2017-04-27 13:29:07 -07:00
Kaku Kuo
b249c9b732 Bug 1360123 P3 - while shutting down a MediaDecoder, ask its owner to remove all media tracks; r=jwwang
MozReview-Commit-ID: 6s84iyXJQ9k

--HG--
extra : rebase_source : 443d6fafd8c17d02dba6ba0054abbb473079545a
2017-04-18 15:46:05 +08:00
Kaku Kuo
dab014bd99 Bug 1360123 P2 - move ConstructMediaTracks/RemoveMediaTracks to HTMLMediaElemnt; r=jwwang
MozReview-Commit-ID: 3S63JeXAX2w

--HG--
extra : rebase_source : ef807247a5042fa23ba6b6f5c907035bd8d64199
2017-04-18 15:43:55 +08:00
Carsten "Tomcat" Book
e1e203f1f5 Merge mozilla-central to autoland 2017-04-27 16:36:41 +02:00
JW Wang
aab9f27e0f Bug 1359309. P1 - give mozilla::TaskQueue a name which will be useful in debugging Dispatch() failures. r=jya
MozReview-Commit-ID: 5FAVNo32fl7

--HG--
extra : rebase_source : 761fca752429d95e97be699976283baa35c64abb
extra : intermediate-source : 83282a7a5adbe7046212da85f9d16e39faa4bd5c
extra : source : 924af3ea0aa86888fd2745020be7900e6eb614f0
2017-04-25 14:57:55 +08:00
Carsten "Tomcat" Book
eff0fbf63b Backed out changeset e0bab3ab79ff (bug 971528) for asan mda failures on a CLOSED TREE 2017-04-27 13:02:47 +02:00
Carsten "Tomcat" Book
d5910216dc Backed out changeset b1eaf2cd0068 (bug 971528) 2017-04-27 13:02:02 +02:00
Alex Chronopoulos
fcd72ab331 Bug 971528 - Expect stereo input in MediaEngineWebRTCMicrophoneSource. r=padenot
MozReview-Commit-ID: 4W1TsogHQnL

--HG--
extra : rebase_source : 7fa552fcf4c159f5c65f33336ab2031761332a03
2017-04-27 10:24:36 +03:00
Alex Chronopoulos
e79da75180 Bug 971528 - Allow stereo capture in AudioCallbackDriver. r=padenot
* * *
[mq]: graph-driver-comments

MozReview-Commit-ID: JnU3opk8X5K
* * *
[mq]: tmp

MozReview-Commit-ID: 73CtZw4CRG

--HG--
extra : rebase_source : bca0932ccffc6348260039fc7ec829245a9b2236
2017-04-27 10:24:25 +03:00
JW Wang
1915d358a7 Bug 1359725 - add timeout to LoadInitData() in eme.js. r=gerald
So we can cancel the bad test as soon as possible and give a better description about the error.

MozReview-Commit-ID: ExKIK2HqJkN

--HG--
extra : rebase_source : 26391dfea33ab792cc5f0dc58fa42e6309e0c699
extra : source : 138125800895658a6feb88e3f90487d62b955f6a
2017-04-26 16:22:08 +08: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
JW Wang
381be5ed72 Bug 1358972. P1 - remove unused code. r=kaku
We can remove AbstractMediaDecoder::UpdateEstimatedMediaDuration() which
has no callers at all.

MozReview-Commit-ID: Eub12jQ25KK

--HG--
extra : rebase_source : f564b84a147252bd98c13fe475af971808880c8c
extra : intermediate-source : 4c0870a71b2091c39f5fc67c5cf21dea0a4cc459
extra : source : 1bfe40324a3801f8d60384b247d85f04b8971bbe
2017-04-17 17:10:09 +08:00
JW Wang
f6a893a644 Bug 1358969 - let MediaDecoder::CurrentPosition() return a TimeUnit. r=kikuo
We want to replace the use of int64_t for microseconds by TimeUnit
whenever possible since int64_t is ambiguous which could be microseconds
or milliseconds.

MozReview-Commit-ID: K3Bz3uEXLDK

--HG--
extra : rebase_source : ade3cbd61c764b73a22c360572a525127dbadbc5
extra : intermediate-source : 013227a4aa645fc34a82c44130db6c847d74960b
extra : source : 1ab7ce426b557e4ce9979e023f9e84b4690eeaaa
2017-04-17 17:04:39 +08:00
Chris Pearce
ce7bb69227 Bug 1358373 - Handle underestimating how many shmems the CDM needs to return decoded video frames to Gecko. r=gerald
The CDM process can't allocate shmems itself because it's sandboxed, so we
pre-allocate shmems in the content process and send them to the GMP process for
the CDM to use. Some sites seem to have encoded their content in such a way as
to cause the CDM to allocate and hang onto more frames than we pre-allocate; so
we run out of shmems in the GMP process, and the CDM can't allocate further
buffers to return output, and we fail.

So change the ChromiumCDMChild to allocate non-shmem-backed buffers if it runs
out of shmems, and return the result to the content process as an nsTArray.
Upon receiving that, the parent will send an extra shmem to the child, to
hopefully avoid the slow path again.

Also increase media.eme.chromium-api.video-shmems to 4, so that we're less
likely to hit this slow path in the wild. I've seen that Lightbox.co.nz and
Microsoft's EME test-drive require 4 shmems.

MozReview-Commit-ID: ISQYDkTj5uY

--HG--
extra : rebase_source : 92870f1adc7ae68e58b15443e4223012bdf0e39a
2017-04-26 15:46:09 +12:00
Iris Hsiao
c43c229375 Backed out changeset 0b8bf5cb743f (bug 1358373) for build bustage. a=backout
CLOSED TREE

--HG--
extra : amend_source : f6fd0c93b8b1ff9cc111cc4bc7776dd8e2a383d0
2017-04-27 10:10:47 +08:00
Chris Pearce
ecfe3c34c4 Bug 1358373 - Handle underestimating how many shmems the CDM needs to return decoded video frames to Gecko. r=gerald
The CDM process can't allocate shmems itself because it's sandboxed, so we
pre-allocate shmems in the content process and send them to the GMP process for
the CDM to use. Some sites seem to have encoded their content in such a way as
to cause the CDM to allocate and hang onto more frames than we pre-allocate; so
we run out of shmems in the GMP process, and the CDM can't allocate further
buffers to return output, and we fail.

So change the ChromiumCDMChild to allocate non-shmem-backed buffers if it runs
out of shmems, and return the result to the content process as an nsTArray.
Upon receiving that, the parent will send an extra shmem to the child, to
hopefully avoid the slow path again.

Also increase media.eme.chromium-api.video-shmems to 4, so that we're less
likely to hit this slow path in the wild. I've seen that Lightbox.co.nz and
Microsoft's EME test-drive require 4 shmems.

MozReview-Commit-ID: ISQYDkTj5uY

--HG--
extra : rebase_source : 4beba0212411a0f5867feb506bbf732f5a934fa9
2017-04-26 15:46:09 +12:00
Wes Kocher
2768cd5d15 Backed out 5 changesets (bug 1320994) for browser_downloads_panel_block.js permafails on Win7VM a=backout
Backed out changeset b744a070cafb (bug 1320994)
Backed out changeset 5766ba7143b4 (bug 1320994)
Backed out changeset 31afc3fcd61f (bug 1320994)
Backed out changeset 78e5f8775727 (bug 1320994)
Backed out changeset 6d4e1736fd69 (bug 1320994)

MozReview-Commit-ID: 9tPD6gwXttd

--HG--
extra : rebase_source : 56cb2ac6d2e057b171d74cd529b53e617c716b4c
2017-04-26 15:21:54 -07:00
Andreas Pehrson
0dcc290a85 Bug 1320994 - Improve SourceListener logging. r=jib
MozReview-Commit-ID: 1xuLwpMHMQB

--HG--
extra : rebase_source : 0e964f4b41ff53c678fa015001156f3af27563db
2017-03-29 12:07:45 +02:00
Andreas Pehrson
3294058c0a Bug 1320994 - Unify MediaManager logging macros. r=jib
MozReview-Commit-ID: 14b6cXgOqP8

--HG--
extra : rebase_source : cb702280e9b3fcfcd09a11feeb9f8dfbdf115580
2017-03-29 12:06:49 +02:00
Andreas Pehrson
edff555cf5 Bug 1320994 - Refactor MediaManager's window management. r=jib
This in large does the following:

* Changes the model in MediaManager to align with that of chrome code, namely:
 - One GetUserMediaWindowListener *per window*, containing N SourceListeners for N gUM requests, and
 - GetUserMediaWindowListener replaces GetUserMediaStreamListener
 - So if two SourceListeners stop we can still send only one event
* Breaks a special event specific to B2G chrome

MozReview-Commit-ID: 3wbPFmc9yWj

--HG--
extra : rebase_source : 4ad324f6bb1be637da584f323a3e039c5b4f664d
2017-04-26 11:13:40 +02:00
Sebastian Hengst
e2b326b729 Backed out changeset a5cb0de6bdb2 (bug 1357040) for failing various media-related wpt tests, e.g. mediasource-activesourcebuffers.html. r=backout 2017-04-26 11:17:12 +02:00
Carsten "Tomcat" Book
3b4328e578 Merge mozilla-central to autoland
--HG--
extra : rebase_source : bc4cd926477775ac802f400a79f553034d569a18
2017-04-26 09:08:31 +02:00
Wes Kocher
5e8bdb175d Merge inbound to m-c a=merge
MozReview-Commit-ID: A85cs7Yriqj
2017-04-25 13:53:00 -07:00
JW Wang
80c9f230f3 Bug 1359715 - let functions in MediaData.h take TimeUnit instead of int64_t. r=kaku
We want to replace the use of int64_t for microseconds by TimeUnit
whenever possible since int64_t is ambiguous which could be microseconds
or milliseconds.

MozReview-Commit-ID: LRz9d4yKBYJ

--HG--
extra : rebase_source : 1f73f1f338142b3183491d04726821a881ccabbe
extra : intermediate-source : 88e167b7b06303d10d92cd5317502f405d1c553e
extra : source : 98deb30ec93d395f9951f5fc488170ae35e29675
2017-04-24 17:33:05 +08:00
Jean-Yves Avenard
ad655988c9 Bug 1357040: Abort if demuxer initialisation isn't complete. r=jwwang
MozReview-Commit-ID: 9SSgQq272My

--HG--
extra : rebase_source : 2910cdbbb33bf6386243d6dd6eb4a2a62a87475f
2017-04-25 15:28:31 +02:00
JW Wang
0af5a6c95e Bug 1358399. P7 - remove unused code. r=gerald
1. The 'onlyLoadFirstFragments' flag is not used anymore.
2. The 'noEndOfStream' flag is never set to true.
3. EMEPromiseAll has no callers.

MozReview-Commit-ID: BH3r5AvMOSN

--HG--
extra : rebase_source : dbe002d18d448d63e5b9e869f194cfbb54a498f8
extra : intermediate-source : d6a8bf58e8e29e726986d0c8e6159231dfe8aac4
extra : source : 5a899425c326ff63365a99e314a728e6a0125a7f
2017-04-22 08:22:11 +08:00
JW Wang
c71c3df555 Bug 1358399. P6 - rewrite SetupEME() using the new helper functions and fix its callers. r=gerald
MozReview-Commit-ID: KUXhvPIuXry

--HG--
extra : rebase_source : b067b139dd536fb84bd6b89705efae920fa5b44b
extra : intermediate-source : a36fea44e27326b83af292f23bed7ba48c3d3ab9
extra : source : 3ec2d58a8a10d1eb0f32f16bcb7835762519b4c9
2017-04-21 18:06:31 +08:00
JW Wang
116b20a522 Bug 1358399. P5 - rewrite test_eme_stream_capture_blocked_case1.html using the new helper functions. r=gerald
Note we don't need to pass the 'onlyLoadFirstFragments' flag
since we ensure the test won't finish until LoadTest() is resolved.

MozReview-Commit-ID: 2cFDGhqWkrP

--HG--
extra : rebase_source : 6c647f2238e9a73297c8ec449a965129e9ad47db
extra : intermediate-source : 8562a1de41a9ce008f862611a31c4f1f014e891d
extra : source : 1aaad490dc44b9a33c92e724dedf4d4ca600febb
2017-04-21 17:37:30 +08:00
JW Wang
3aba8d4512 Bug 1358399. P4 - rewrite test_eme_playback.html using the new helper functions. r=gerald
MozReview-Commit-ID: HUQcM7If6IQ

--HG--
extra : rebase_source : 733c419fde0ee8fef58b4d044565ffa0aed6ca8f
extra : intermediate-source : d5bcaa3617b41d6946737556828fc91fd4150b4f
extra : source : 1cd3ca11c04a9d17fb2146ce3a31771da508a499
2017-04-21 17:10:32 +08:00
JW Wang
d73ad878ae Bug 1358399. P3 - rewrite test_eme_waitingforkey.html using the new helper functions. r=gerald
MozReview-Commit-ID: 5os3dUhTN5v

--HG--
extra : rebase_source : c9feb41635e669e185068db46025cc3afa89ec93
extra : intermediate-source : 44d35cde9e82fa8c9abe431a6a0ec23ab448655f
extra : source : 1727f52de8446d6cfb2185c8c929a2efcd8e9451
2017-04-21 17:10:13 +08:00
JW Wang
4054b9864b Bug 1358399. P2 - split SetupEME() into small functions which will be useful in next patches. r=gerald
MozReview-Commit-ID: 7IZUYZaSlIr

--HG--
extra : rebase_source : 57a4556b4ce0bb6e5f2fd04b812de4613bd4c31a
extra : intermediate-source : 5a336b709abeeaace6167b52d7d8c67c0c27218b
extra : source : f4e04d207b81793218d231cbec4aa8d4a0101318
2017-04-21 17:05:18 +08:00
JW Wang
c351b765ff Bug 1358399. P1 - move "elem.crossOrigin = test.crossOrigin || false" from SetupEME() to LoadTest() to improve cohesion. r=gerald
The attributes are used by MaybeCrossOriginURI() which is called by LoadTest() indirectly.

MozReview-Commit-ID: LH2STpONuCE

--HG--
extra : rebase_source : 5762de80943d30064df0d4a69ebe7d36a12f308b
extra : intermediate-source : 73e455a974c9bc3609b72d3ffbbcbc6f1077f62b
extra : source : 7802185d9bcaec4f7377de94e4876d995a8ab019
2017-04-21 14:29:25 +08:00
Alastor Wu
c03792963c Bug 1358061 - remove moz-audiochannel codes for media element and web audio. r=baku
MozReview-Commit-ID: KPuhxCVezOZ

--HG--
extra : rebase_source : 74a9c9a9746d0add26f279c6dd5ddc30681be901
2017-04-26 12:02:32 +08:00
Phil Ringnalda
6b3d58414b Backed out changeset 6e7efb9115fd (bug 1358061) for build bustage
CLOSED TREE

MozReview-Commit-ID: F9FSciVgynw
2017-04-25 20:55:30 -07:00
Alastor Wu
da6126aa49 Bug 1339449 - Re-enable video-replay-after-audio-end.html crashtest. r=jya
MozReview-Commit-ID: Eknt8O0HEfv

--HG--
extra : rebase_source : 83894debf8784cd0db5048d67320c29497324704
2017-04-25 12:38:47 +08:00
Alastor Wu
222377e8ac Bug 1358061 - remove moz-audiochannel codes for media element and web audio. r=baku
MozReview-Commit-ID: BwZ6vHUPnSB

--HG--
extra : rebase_source : c92556cf92ff96b8014281396b28e1e232aa8576
2017-04-25 12:19:28 +08:00
Sebastian Hengst
7349ffcf3d Backed out changeset 555b0322f776 (bug 1358662) for failing mda, crashtests and reftests. r=backout
Android 4.3: mda: test_EndedEvent.html, test_FrameSelection.html
OS X 10.10 debug: mda: test_BufferingWait.html

Linux x64 asan&pgo:
crashtest: video-replay-after-audio-end.html
reftest: bug686957.html
2017-04-25 22:36:21 +02:00
Sebastian Hengst
388d65b332 Backed out changeset 20e051241152 (bug 1358662) 2017-04-25 22:36:21 +02:00
Sebastian Hengst
7b18dee274 Backed out changeset a3284ad8a14c (bug 1358662) 2017-04-25 22:36:21 +02:00
Sebastian Hengst
22303ff8eb Backed out changeset 5da7e883ba70 (bug 1358662) 2017-04-25 22:36:20 +02:00
Sebastian Hengst
303542221f Backed out changeset 377615a0cf70 (bug 1358662) 2017-04-25 22:36:20 +02:00
Ralph Giles
9960954550 Bug 1358662 - Call VPXDecoder libvpx wrappers for WebM. r=jya
Use the new helper functions instead of calling libvpx directly.
This simplifies adding other codecs in the future.

MozReview-Commit-ID: 8VX0d5S50EE

--HG--
extra : rebase_source : c870b32bac6b924188dd722c052fb88156ad96c8
2017-04-24 15:08:50 -07:00
Ralph Giles
20c544fb86 Bug 1358662 - Implement keyframe and framesize VPXDecoder helpers. r=jya
Encapsulate code from WebMDemuxer to query keyframe and frame
resolution inside VPXDecoder, so we have a clean wrapper for
all the libvpx functions we use.

MozReview-Commit-ID: ASRRhNl0A41

--HG--
extra : rebase_source : a1421462f6fc66a2abd965782ec408a8bcf7fe1f
2017-04-24 15:05:01 -07:00
Ralph Giles
ebeeb5aa45 Bug 1358662 - Add Span support to MediaRawData. r=jya
MozReview-Commit-ID: A3bHPlk0MQi

--HG--
extra : rebase_source : 7d6de44693c3de089800ecfd4ab6c00570311d30
2017-04-21 16:12:55 -07:00
Ralph Giles
83de6e82b7 Bug 1358662 - Store VPXDecoder codec as an enum. r=jya
Use the enum we already have here instead of converting
to an int when we pass it around, giving us better
type checking.

MozReview-Commit-ID: Gj4xmtQnzw2

--HG--
extra : rebase_source : 95f582e655f1a942dfb68cbba588c44afbb8a38f
2017-04-24 15:02:54 -07:00
Ralph Giles
afff134a91 Bug 1358662 - Store LastSeenFrame dimensions as an nsIntSize. r=jya
This simplifies the comparison and update logic.

MozReview-Commit-ID: A6YII8tlEUn

--HG--
extra : rebase_source : ddf4304298209e515eb44962e8bc9ccd38c9956f
2017-04-21 18:05:46 -07:00
Jonathan Watt
c8124fabe7 Bug 1359155, part 2 - Convert MediaEngineTabVideoSource::Draw to use Moz2D's StrideForFormatAndWidth. r=mstange
MozReview-Commit-ID: 17XoZDOPRuN
2017-03-30 15:58:31 +01:00
Munro Mengjue Chiang
699799aeb9 Bug 1358030 - add mochitest for webrtc android remote h/w encoder. r=jib
MozReview-Commit-ID: JCtWTNg89io

--HG--
extra : rebase_source : 8cd05b1b1fa270bf0fb9dbee9b899ee24d4b0d69
2017-04-20 14:54:55 +08:00
Iris Hsiao
1548482ea5 merge mozilla-inbound to mozilla-central a=merge 2017-04-25 11:21:30 +08:00
Wes Kocher
0c551a1721 Merge inbound to central, a=merge
MozReview-Commit-ID: 2tbIf1rfy0p
2017-04-24 15:53:30 -07:00
Sebastian Hengst
38b7615ab3 Backed out changeset df17c800d8f2 (bug 1358876) for crash test bustage. r=backout
"AndroidVersion is not defined"
2017-04-24 17:35:37 +02:00
Bob Clary
33ee94b632 Bug 1358876 - Autophone - disable perma orange tests on Android 5.1, r=jmaher. 2017-04-24 08:02:59 -07:00
Carsten "Tomcat" Book
8e84189916 Merge mozilla-central to mozilla-inbound 2017-04-24 16:07:21 +02:00
Andrea Marchesini
f8288de597 Bug 1353629 - PBlob refactoring - part 15 - FileMediaResource is used for in-process blobURL, r=jwwang 2017-04-24 12:09:41 +02:00
Andrea Marchesini
70d3bbfdb9 Bug 1353629 - PBlob refactoring - part 12 - nsInputStreamPump should use BufferedStreams, r=smaug
nsInputStreamPump should use the stream as nsIAsyncInputStream if available.
In order to do so, we need to wrap a BufferedStream around it.

MediaResource cannot use a simple sync nsIInputStream when BlobURL are involved
in the content process.
2017-04-24 12:09:41 +02:00
Bob Clary
e0fcc0bc36 Bug 1358876 - Autophone - disable perma orange tests on Android 5.1, r=jmaher. 2017-04-24 08:02:59 -07:00
Andreas Pehrson
9c513ae0c5 Bug 1332845 - Remove direct listeners before ending track in TrackUnionStream. r=jesup
There was a race where ending the track before removing the direct listener here,
allowed the source to append more data (notifying the direct listener)
after the consumer had been notified of the ending track.

MozReview-Commit-ID: E08UeMNQhGx

--HG--
extra : rebase_source : 740c4fde40b9e19974922cd893618032c683493d
2017-04-07 17:35:26 +02:00
Andreas Pehrson
5835686871 Bug 1332845 - Remove listeners before other cleanup in MediaRecorder. r=jesup
There was an indirect race from destroying this MediaInputPort before removing
the direct listener.

MozReview-Commit-ID: 7rPzsLL4EvG

--HG--
extra : rebase_source : 6271778593079609119153ce8b81587a9188d8ba
2017-04-07 16:50:55 +02:00
JW Wang
02369ea1a2 Bug 1357987 - make MediaDecoder::DEFAULT_NEXT_FRAME_AVAILABLE_BUFFERED a TimeUnit to avoid ambiguous int64_t for microseconds. r=kaku
MozReview-Commit-ID: 9JC4zPEc6or

--HG--
extra : rebase_source : 8001ba3924f4bdb2ffb4143f1a22e2c4bf697ce3
extra : intermediate-source : 02bc62f83a7af3059b819c2bbb9fd887e2593043
extra : source : 5af753b1192f36ebf84279ff011617587ede613b
2017-04-17 16:58:44 +08:00
Jan-Ivar Bruaroey
aa0a07c837 Bug 1354642 - Add MakeRefPtr<> helper class. r=Ehsan
MozReview-Commit-ID: es34uMTZ00

--HG--
extra : rebase_source : 8738a70a47cceece1b56b66f741e29275c066d92
2017-04-07 15:08:42 -04:00
JW Wang
69b3ff3c30 Bug 1358726 - fix the assertion failure in AllocateAndWriteBlock(). r=gerald
block->mOwners might be empty if all streams for the resource id are
closed. We don't bother write the data to the cache since there is no
stream to use it.

MozReview-Commit-ID: KKiyZqLBjim

--HG--
extra : rebase_source : 7fa0a6d841dff91dd7142aac5a336b950342ac67
2017-04-23 21:18:07 +08:00
Nils Ohlmeier [:drno]
cded42efc3 Bug 1342579: remove js version from threeUnbundledConnections test (really bug 1342144). r=mt
MozReview-Commit-ID: 7IQ0uFD55GE

--HG--
extra : rebase_source : efb2ef5468928c330a3ae416e9ce52de8b1287cc
2017-04-27 10:03:07 -07: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
bbfc0ddbdc Bug 1358401. P4 - reject the promise with an error string in UpdateSessionFunc(). r=gerald
MozReview-Commit-ID: 2bFb9NBQPxk

--HG--
extra : rebase_source : 63954ce39889fcd9b5eba6a36907c6e88493b870
2017-04-21 15:35:41 +08:00
JW Wang
6ba104e8e5 Bug 1358401. P3 - reject the promise in LoadTest() when AppendTrack() fails. r=gerald
MozReview-Commit-ID: 2TijR5hwyLH

--HG--
extra : rebase_source : 1e162f7544a32d9543c45330d4b48884d96b37c7
extra : intermediate-source : 570e3e387db034bd9bbb782590112ce975338bf0
extra : source : 7fb31935f05579bb3b29640845284c1b32cc7e51
2017-04-19 15:30:32 +08:00
JW Wang
5e8497b518 Bug 1358401. P2 - use the 'once' handler to remove the |firstOpen| check. r=gerald
MozReview-Commit-ID: Ezp0dM1VXco

--HG--
extra : rebase_source : c2057a95ee851f6f6ea56799c5cda4d4f13c48b0
extra : intermediate-source : 1292faea67b556651ee2c4c43ec30eed61f8078f
extra : source : 9d0e54ec0097de7f394095fb61401cfc5ce543b8
2017-04-19 15:19:33 +08:00
JW Wang
fb2674118c Bug 1358401. P1 - reject the promise when failing to fetch the buffer. r=gerald
MozReview-Commit-ID: 2ANLUx8JuFe

--HG--
extra : rebase_source : 4b003cc9149ef51987d8f4561acf709e67047ac9
extra : intermediate-source : 0b2640fad8cd7f86f636d0d75699faf381959a12
extra : source : 1dfca1cd8866065ed403d54c01234bd162addec0
2017-04-19 15:16:47 +08:00
Carsten "Tomcat" Book
975e251aff merge mozilla-inbound to mozilla-central a=merge 2017-04-21 10:57:02 +02:00
Iris Hsiao
7aacf33d10 Backed out 9 changesets (bug 1353689) for web platform reftest failures
Backed out changeset 80ac3ea1427e (bug 1353689)
Backed out changeset 9a5b36fefb22 (bug 1353689)
Backed out changeset 44c5f4b4cdfc (bug 1353689)
Backed out changeset 7f2790b4c963 (bug 1353689)
Backed out changeset 8d8d2824a763 (bug 1353689)
Backed out changeset d3ced5751998 (bug 1353689)
Backed out changeset 5179ebf1e982 (bug 1353689)
Backed out changeset ebf24732e9b3 (bug 1353689)
Backed out changeset e81924e4cff3 (bug 1353689)
2017-04-21 13:38:28 +08: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
bechen
d116c9373e Bug 1353689 - selectors/cue : Enable testcases under */selector/* . Fix the padding and overflow issue. r=rillian
MozReview-Commit-ID: 6jdlx01hEv7

--HG--
extra : rebase_source : 93a63954d5b64cb8a33de1ce560da8f97a5a2001
2017-04-17 17:27:23 +08:00