Commit Graph

34 Commits

Author SHA1 Message Date
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
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
Jean-Yves Avenard
10d2da1b08 Bug 1374596: P7. Fix includes as per coding style. r=padenot
MozReview-Commit-ID: 5WfOWcOoxg0

--HG--
extra : rebase_source : 988c09623e83a0d9188d9ff5d705314e2c43e756
2017-06-20 17:56:55 +02:00
Jean-Yves Avenard
9346079e8d Bug 1374596: P2. Fix Benchmark required headers. r=padenot
MozReview-Commit-ID: JMiYDkkkNQB

--HG--
extra : rebase_source : 40fbfc7d5f878351dcaf08621816488b25d97645
2017-06-20 17:28:34 +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
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
Kaku Kuo
f3d9573ece Bug 1351263 - Label runnables in dom/media/Benchmark.cpp; r=jwwang
MozReview-Commit-ID: LZygjhx2A7i

--HG--
extra : rebase_source : 738e11624ba9144f87f2db2bc7260480095877d7
2017-03-28 18:12:49 +08:00
Vedant Sareen
7d4bd52fae Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter
Changed |print("enum ID : uint32_t {", file=output)| to |print("enum HistogramID : uint32_t {", file=output)| at line 53 of the file |toolkit/components/telemetry/gen-histogram-enum.py|, and then replaced all the textual occurrences of |Telemetry::ID| to |Telemetry::HistogramID| and |ID| to |HistogramID| in 43 other files.
2017-02-16 00:45:15 +05:30
Jean-Yves Avenard
7ea5b8ca6d Bug 1319987: P11. Fix MediaDataDecoder gtest. r=gerald
They appear to have been broken for a while. Several months at least.

MozReview-Commit-ID: I71xE91UMOZ

--HG--
extra : rebase_source : 80d179d207c2ae2f808aec573ab47f54f6df4a1d
2017-01-31 20:43:07 +01:00
Jean-Yves Avenard
73fd84bc5d Bug 1319987: P5. Promisify MediaDataDecoder. r=cpearce,gerald,mattwoodrow,snorp
This is a big change, and unfortunately impossible to break down with independently functional commits.

There are four main changes being applied here:

* Code cleanup, including making all MediaDataDecoder related code mozilla coding style compliant
* Make MediaDataDecoder use MozPromise
* Making Flush and Shutdown processes fully asynchronous
* Fixing few data races encountered across the code, in particular in the Android PDM

MozReview-Commit-ID: DpiZucGofJT

--HG--
extra : rebase_source : 80bd6c6f9726d536b6f306c40d9af6df27333be9
2017-01-26 13:56:46 +01:00
Wes Kocher
5856ed7acc Backed out changeset c429f0a0040e (bug 1316282) for timing out Windows PGO builds a=backout CLOSED TREE
MozReview-Commit-ID: K88JI9UiHqU
2017-01-25 16:59:20 -08:00
Andi-Bogdan Postelnicu
6a8fbda077 Bug 1316282 - do not expose sWebMSample in XUL. r=jya
MozReview-Commit-ID: CVQpk5n4RrQ

--HG--
extra : rebase_source : 5e40b43778b5cf91e5cb9fcd13c15c022f7ef2b7
2017-01-25 12:33:26 +02: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
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
Jean-Yves Avenard
a2a9333721 Bug 1319277: P2. Bump VP9 benchmark version to force a new run. r=gerald
ffvp9 3.2 added IDCT AVX2 optimisations. Perfs show up to 65% speed improvement over the AVX1/SSE3 versions.

MozReview-Commit-ID: 4asJVb6FFYI

--HG--
extra : rebase_source : fd2be4bd62d7fdb8492c739f51783e3578133dc3
2016-11-22 17:26:57 +11:00
bechen
24016416cb Bug 1286738 - part3-mediasource: Enable fennec vp9 only if we have hw deocder. r=jya
MozReview-Commit-ID: BwAZTrgXcaP

--HG--
extra : rebase_source : 85ed47735c51281053b409d25bdebd6dad3aa1bc
2016-10-26 17:08:21 +08:00
Jean-Yves Avenard
70ed5282de Bug 1299072: P18. Use MediaResult with InitPromise. r=gerald
MozReview-Commit-ID: JiLgiyxvfNC

--HG--
extra : rebase_source : 4cc453a5fe7b1e4f4b865c31a24a5feed64df7e4
2016-09-13 13:06:18 +10:00
Jean-Yves Avenard
20dc9102e8 Bug 1299072: P12. Use MediaResult for MediaDataDemuxer promises. r=gerald
MozReview-Commit-ID: JeQrmoHbb8m

--HG--
extra : rebase_source : 1f4581e5789f18b358a6f5bb5f8595cc7a75110b
2016-09-12 12:22:20 +10:00
Jean-Yves Avenard
f4efa8be06 Bug 1299072: P4. Return extended failure details to reader. r=gerald
We provide even further details for the GMP decoder. Other decoders to follow.

MozReview-Commit-ID: 7NxJPec8xWv

--HG--
extra : rebase_source : f44120983070e5c107ecd5cafc762da90aab44bf
2016-09-10 09:56:53 +10:00
Dan Glastonbury
1b2a65cfc3 Bug 1281632 - P1: Extract creation parameters and pass via struct. r=gerald
Extract all the parameters passed to CreateAudioDecoder/CreateVideoDecoder and
place them into a structure that is passed down to the creation of the actual
decoder, where the relevant parameters can be extracted.

This makes it easier to add more arguments to the Create*Decoder calls in future.

MozReview-Commit-ID: 9LZlcfRVz6A

--HG--
extra : rebase_source : ce3f0c7d0784b96267728697ff5d535ccb8ee7a6
2016-06-28 17:56:55 +12:00
Alfredo Yang
68adb6b579 Bug 1068151 - keep decoding a corrupted video. r=jya 2016-05-30 18:24:00 +02:00
JW Wang
1f7b60118b Bug 1275807 - Remove remaining use of FlushableTaskQueue. r=cpearce.
MozReview-Commit-ID: L12wxh7GPIr

--HG--
extra : rebase_source : 745ae8240326246050513c96300eba1e32d84130
2016-05-24 16:48:26 +08:00
Jean-Yves Avenard
cc8c8725df Bug 1271491: P6. Remove the need to call PDMFactory::Init(). r=cpearce
PDMFactory will automatically load and initialize the required frameworks upon first use.
Also fix constness of some methods.

MozReview-Commit-ID: HFbvTMRFAey

--HG--
extra : rebase_source : ce3e7ff6cefc35b32674c9a81c3488fe21b48626
2016-05-12 18:54:35 +10:00
James Willcox
cbf30986b7 Bug 1266102 - Don't run VP9 benchmark on Android r=jya 2016-04-25 10:06:03 -05:00
Gerald Squelart
ecfb205472 Bug 1248507 - p1. Pass DecoderDoctorDiagnostics to PDMs&more - r=jya
Pass declared-but-yet-undefined DecoderDoctorDiagnostics pointer to various
routines that contribute to deciding if a media format can be played, and
those that create decoders.

Points where a DecoderDoctorDiagnostics can be injected are currently marked
with "/* DecoderDoctorDiagnostics* */ nullptr", and some will be used in
following patches.

MozReview-Commit-ID: 7u37bvY4CpW
2016-04-19 17:36:19 +10:00
Jean-Yves Avenard
2d5d30672a Bug 1263839: P2. Force re-run of VP9 benchmark based on a version check. r=kentuckyfriedtakahe
The version number is to be manually updated when we want to re-run the test (like improvement in ffvp9 or libvpx)

MozReview-Commit-ID: 9KzYCGWvIpp

--HG--
extra : rebase_source : a5c06065d3e174f3a4cb5ca0fbe2b08b8728f083
2016-04-13 12:44:29 +10:00
Jean-Yves Avenard
132b94460d Bug 1256626: P2. Use NotifyBenchmarkResult to save VP9 result. r=jimm
MozReview-Commit-ID: privnKY1zB

--HG--
extra : rebase_source : 051fecb7960515567db4f06cae2819d8927396bb
2016-03-17 17:20:21 +11:00
Jean-Yves Avenard
fc53bc2dc2 Bug 1257211: Exit early if already shutting down. r=gerald
MozReview-Commit-ID: 1Oi4m2AIByw

--HG--
extra : rebase_source : cc044bdb48952885d982833b9ec91e932ed77d2b
2016-03-17 12:58:21 +11:00
Jean-Yves Avenard
dcfa9621c9 Bug 1254858: P10. Return early when error. r=me
Quick follow up.

MozReview-Commit-ID: Jl7qTpYGzXK
2016-03-11 10:00:12 +11:00
Jean-Yves Avenard
a9dd4d1f04 Bug 1254858: P3. reorganise Benchmark classes declarations to only expose usable members. r=kentuckyfriedtakahe
Additionally, allows Benchmark to be run on any threads; it is up to the caller to ensure that Init() has been called at least once on the main thread.

MozReview-Commit-ID: 5bAx2rgdjQD

--HG--
extra : rebase_source : c0ba0c7c7a066146317434988b0eaade14236880
2016-03-09 21:38:49 +11:00
Jean-Yves Avenard
69cc2f7a9f Bug 1254858: P2. Properly dispatch task on the right thread. r=kentuckyfriedtakahe
We were dispatching a task on the main thread, only to redispatch it immediately.

MozReview-Commit-ID: 4Hl6C5UEA82

--HG--
extra : rebase_source : 1053aa395d6abde6031cd6dfb113262de04d74e3
2016-03-09 21:14:01 +11:00
Jean-Yves Avenard
d5b11db943 Bug 1230265 - Add codec agnostic benchmark; r=kentuckyfriedtakahe
The Benchmark class is now taking a MediaDataDemuxer argument. Options allow to decode any videos and measure the decoding speed.

MozReview-Commit-ID: C017I1cGqPL
2016-03-09 15:43:57 +11:00
Anthony Jones
c8300ee73e Bug 1230265 - Add VP9 benchmark telemetry; r=bsmedberg
MozReview-Commit-ID: 6ofvNqvkg0U
2016-03-09 15:43:39 +11:00
Anthony Jones
d00c420b2c Bug 1230265 - Benchmark VP9 decoder performance and enable VP9 on fast machines; r=jya
MozReview-Commit-ID: 4GhSLun9x6Z
2016-03-09 15:43:38 +11:00