Commit Graph

115 Commits

Author SHA1 Message Date
Jean-Yves Avenard
f1c09e4a82 Bug 1397307 - P9. Pass video frame rate to RemoteVideoDecoder and GPU process. r=mattwoodrow
MozReview-Commit-ID: BDSO332f3B6

--HG--
extra : rebase_source : 1ef2b6d7b1c4e237fa90afa99a446678f0f16e25
2017-09-12 18:29:40 +02:00
Alastor Wu
686b38b20a Bug 1397141 - part5 : update error description from GPU process. r=jya,mattwoodrow
MozReview-Commit-ID: 9aKyYftBnUo

--HG--
extra : rebase_source : a497e12d98e3a2b0e0ec2afa60298cacbe1a5ea9
2017-09-13 15:37:24 +08:00
Sebastian Hengst
7d84900829 Backed out changeset 6dade48b3326 (bug 1397141) 2017-09-13 09:25:39 +02:00
Alastor Wu
45f6a63ccf Bug 1397141 - part5 : update error description from GPU process. r=jya,mattwoodrow
MozReview-Commit-ID: CuBZOtjh4g2

--HG--
extra : rebase_source : 82c68ea3fe54b148b0cf98fe37d954efd4acbcbe
2017-09-13 15:05:59 +08:00
Jean-Yves Avenard
a02e8d83ce Bug 1396643: Fix compilation when warning as error is set. r=cpearce
MozReview-Commit-ID: Ar2Ttk5hkGD

--HG--
extra : rebase_source : 6ebcafbbb3509b8f10f3173092cdead5cbcadfc6
2017-09-04 21:03:57 +02:00
Jean-Yves Avenard
1559f6a705 Bug 1394591 - P5. Remove need for atomic members. r=mattwoodrow
Instead set members after initialising the child decoder, and only ever access the child decoder on the same thread.

MozReview-Commit-ID: 4mfhVWbNLEu

--HG--
extra : rebase_source : 90a8e7bc8975fd08fc6b262c81cbf43a45751a06
2017-09-01 22:51:20 +02:00
Jean-Yves Avenard
19333d8da8 Bug 1394591 - P4. Pass decoder description to RemoteVideoDecoder. r=mattwoodrow
This makes it easier to determine the actual decoder in use within the GPU process.

MozReview-Commit-ID: 5TF6AsyXYWW

--HG--
extra : rebase_source : 0e73dc17206a83006040cf422182da560b3cf70a
2017-09-01 18:22:55 +02:00
Jean-Yves Avenard
f2acd77b7c Bug 1394591 - P1. Use nsCString for decoder description. r=gerald
This will allow to modify the string returned later.

MozReview-Commit-ID: Giw1JyukE4v

--HG--
extra : rebase_source : d126b8b956ff1f54c33a838834aee9cc6340de95
2017-09-01 14:25:28 +02:00
Sebastian Hengst
94169d21f8 Backed out changeset 409dbe62d0ea (bug 1394591) for asserting GLBlitHelper requires vertex_array_object in dom/media/mediasource/test/test_FrameSelection.html on Android 4.3. r=backout 2017-09-04 00:08:33 +02:00
Sebastian Hengst
c6ac74c855 Backed out changeset b741cbca23bd (bug 1394591) 2017-09-04 00:07:02 +02:00
Sebastian Hengst
239e4df31a Backed out changeset ba1a3d16916b (bug 1394591) 2017-09-04 00:06:56 +02:00
Jean-Yves Avenard
e23a2d9405 Bug 1394591 - P5. Remove need for atomic members. r=mattwoodrow
Instead set members after initialising the child decoder, and only ever access the child decoder on the same thread.

MozReview-Commit-ID: 4mfhVWbNLEu

--HG--
extra : rebase_source : 90a8e7bc8975fd08fc6b262c81cbf43a45751a06
2017-09-01 22:51:20 +02:00
Jean-Yves Avenard
ec392e67b8 Bug 1394591 - P4. Pass decoder description to RemoteVideoDecoder. r=mattwoodrow
This makes it easier to determine the actual decoder in use within the GPU process.

MozReview-Commit-ID: 5TF6AsyXYWW

--HG--
extra : rebase_source : 0e73dc17206a83006040cf422182da560b3cf70a
2017-09-01 18:22:55 +02:00
Jean-Yves Avenard
15e988718f Bug 1394591 - P1. Use nsCString for decoder description. r=gerald
This will allow to modify the string returned later.

MozReview-Commit-ID: Giw1JyukE4v

--HG--
extra : rebase_source : d126b8b956ff1f54c33a838834aee9cc6340de95
2017-09-01 14:25:28 +02:00
Jean-Yves Avenard
eccbe26070 Bug 1396428 - Fix end of lines. r=jya
MozReview-Commit-ID: 3reYozTMKk0

--HG--
extra : rebase_source : 1b9d259eca5609ffa68cf6a0d269dfa44aace038
2017-09-03 21:28:52 +02:00
Jeff Gilbert
e8ed9905f9 Bug 1322746 - Expose DXGI HANDLEs for GPU_VIDEO. - r=mattwoodrow
MozReview-Commit-ID: Aea0xGesaQi
2017-09-02 21:52:10 -07:00
Kaku Kuo
15e39cee1b Bug 1393399 P2 - keep the GPU process crash time and send back to MFR; r=gerald
We keep the GPU crash time and send back to MFR through MediaResult.

We cannot save the information in VideoDecoderChild as a static member because we are going to read it in MFR's task queue and the data was written in VideoDecoderManager's thread. This is going to be racing.

MozReview-Commit-ID: FXqOgelWY6e

--HG--
extra : rebase_source : 5c0561e009ad16983e1ff910216f9cf7901b5542
2017-08-31 17:21:28 +08:00
Kaku Kuo
d7d6aaab9d Bug 1393392 P4 - report telemetry when we shutdown a remote HW decoder; r=gerald,mattwoodrow
MozReview-Commit-ID: HEgv9s3JsXB

--HG--
extra : rebase_source : 1b30e4908048f7aa59dd7c8364763520ba6c1c33
2017-08-29 15:51:22 +08:00
Kaku Kuo
9b6ce81f30 Bug 1393392 P3 - keep DXVA driver information in VideoDecoderChild; r=mattwoodrow
MozReview-Commit-ID: 3uFTC1U5g76

--HG--
extra : rebase_source : 1092f7ce1463e57eaa3345bf617cbe96814b746b
2017-08-29 15:19:05 +08:00
Chris Pearce
ec0ac75c45 Bug 1394648 - Switch from nsInt{Point,Rect,Size} to gfx::Int{Point,Rect,Size} in dom/media. r=jwwang
The nsRect.h and nsSize.h headers typedef nsIntRect to gfx::IntRect etc, so the
rect/size objects we use will be the same, just under a different name.
However the old headers #include a bunch of things we don't use, so we if we
use the gfx objects directly we end up with a smaller include graph.

MozReview-Commit-ID: 7S4OSqBJK9m

--HG--
extra : rebase_source : 7cc48507356ce754e8395af957fa68a28711e00a
2017-08-29 14:00:33 +12:00
Tom Ritter
ae930caa79 Bug 1393535 Fix unused variable warnings in dom/ r=cpearce
MozReview-Commit-ID: 1Ql20AHx1Jz

--HG--
extra : rebase_source : 21105b4fc70953ecdccd4c1e7fe9c9d5564795c4
2017-08-24 11:52:36 -05:00
Kaku Kuo
d824321d11 Bug 1388309 - let VideoDecoderChild::InitIPDL() return false if we don't want to decode video on GPU process; r=mattwoodrow
MozReview-Commit-ID: DD7xVkXT6fk

--HG--
extra : rebase_source : 0db172786e24d358640112e6a3461e8308103665
extra : intermediate-source : ce7e905e0ef5fdbc584c1e63cc6b62df9d566ec4
extra : source : 546c8abe515b4fc887d355c165643862346aff78
2017-08-14 18:03:12 +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
Carsten "Tomcat" Book
8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Sylvestre Ledru
cdd7e1eeda Bug 1339027 - remove useless declaration in VideoDecoderManagerParent.cpp d?dvander r=dvander
MozReview-Commit-ID: 8w1oYKQud9K

--HG--
extra : rebase_source : a5e6003a74badd2acd116b25ec8dd8d143742078
2017-02-13 11:57:56 +01:00
Andrew Osmond
a3d11c8688 Bug 1365927 - Part 1. Add missing headers and other build housekeeping. r=dvander 2017-06-14 11:39:59 -04: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
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
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
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
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
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
David Anderson
b7031d637d Don't create TextureClients if the video bridge has shut down. (bug 1345735 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : 7b8379ff9dac1fa11c1d22470c63d4d280281eda
2017-04-19 07:24:43 -07:00
JW Wang
6359124d70 Bug 1355756. P3 - let CreateAndCopyData() and its friends take TimeUnit for duration. r=gerald
MozReview-Commit-ID: ES0on9VCuu3

--HG--
extra : rebase_source : 8d3e80ec2e1923587b5865516a16bfff9009397d
extra : intermediate-source : 3e59c61b1ccef78e3e8fe52791d7104aade7930c
extra : source : 46fd639ea6a2219bbed70f6555a2acf03ec01a7a
2017-04-12 17:46:09 +08:00
JW Wang
464497b945 Bug 1355756. P1 - change the type of MediaData::mDuration to TimeUnit. r=gerald
MozReview-Commit-ID: 3d4bUYtSuMI

--HG--
extra : rebase_source : 94c821b6d381421035e6a12cbe038436055c5822
extra : intermediate-source : 9a06beffc736486f47b9cf05e7f482e726d53068
extra : source : fdbdcd5c1474f04dc1dbde66fcf3a9ecec953053
2017-04-12 17:27:34 +08:00
John Lin
a5d3bc8a18 Bug 1344649 - part 2: let VideoData::CreateFromImage() accept only neccessary parameters. r=jya
VideoData doesn't care what's in aInfo but display size and aPicture are unused.

MozReview-Commit-ID: IBqq8Rm8dM4

--HG--
extra : rebase_source : 10e2390f87925ef9179d28d86240f68a35c6c6d4
2017-03-09 12:06:24 +08:00
Matt Woodrow
9fcf5f626a Bug 1329369 - Initialize the decoded video frame to the pixel size of the buffer. r=jya
MozReview-Commit-ID: ChfGNFxjJpc

--HG--
extra : rebase_source : 06c162f43a1ef2740bdc0cc2b4873ed4b377f54f
2017-02-17 15:01:25 +13:00
Jean-Yves Avenard
572d9a0a80 Bug 1339748: P2. Let the MediaDataDecoder tells the format it wants. r=cpearce
MozReview-Commit-ID: 22GEUnwEacd

--HG--
extra : rebase_source : 019627d3ff0ef0430bcaf83a4098ffd62fc53b05
2017-02-17 22:19:55 +01:00
Sebastian Hengst
955ce77a9f Backed out changeset f508a675e8dc (bug 1339748) 2017-02-18 17:36:21 +01:00
Jean-Yves Avenard
1aee5fb0ac Bug 1339748: P2. Let the MediaDataDecoder tells the format it wants. r=cpearce
MozReview-Commit-ID: 22GEUnwEacd

--HG--
extra : rebase_source : ce57fbd3028333485368267955b2645057f54805
2017-02-17 22:19:55 +01:00
Jean-Yves Avenard
52e09e4b68 Bug 1340129: P1. Allow empty raw frames. r=gerald
MozReview-Commit-ID: AU0QrahHtYe

--HG--
extra : rebase_source : 34604298e01db1b7b481fc55c25cb5f23e806fa2
2017-02-16 23:41:44 +01:00
Jean-Yves Avenard
16bf821b42 Bug 1325707: P3. Fix coding style. r=gerald
Fixed coding style of files encountered in P1 and P2.

MozReview-Commit-ID: LApVu9K2oto

--HG--
extra : rebase_source : e3bb296baaec9df2011ff312fec2eda19dd125e6
2017-02-07 09:15:59 +01:00
Jean-Yves Avenard
ec59353902 Bug 1325707: P2. Handle OOM conditions when creating MediaRawData object. r=gerald
MozReview-Commit-ID: HtkhrT36Kf4

--HG--
extra : rebase_source : febe0c4114d8d888b152db3f7b5331c0fb32f442
2017-02-07 09:03:36 +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
Gerald Squelart
2a5f2b5c10 Bug 1321051 - Override Supports(TrackInfo) in RemoteDecoderModule - r=jya
With e10s enabled, RemoteDecoderModule is used as a proxy, but it was not
overriding Supports(TrackInfo), meaning that some of the extra information
carried in TrackInfo (e.g.: resolution) was lost when falling back to
SupportsMimeType(nsACString). So further along, WMFDecoderModule was not able
to reject too-high resolutions.

Overriding Supports(TrackInfo) to just forward the TrackInfo data is enough to
re-enable resolution checks on Windows.

MozReview-Commit-ID: 3OsPmILItH7

--HG--
extra : rebase_source : 26699634f5d2af8e83e9f99e5725846f5b75681c
2017-02-01 12:18:59 +11:00
Matt Woodrow
2f00b8ce05 Bug 1329386 - Fallback to WMF decoding if the OOP decoder fails. r=jya
--HG--
extra : rebase_source : 126e76c97538c429660f6e34a718c8dd57fb4a41
2017-01-19 12:35:44 +13:00
Ryan VanderMeulen
e8f15d975e Backed out changeset 94e48b834d82 (bug 1329386) for bustage on a CLOSED TREE. 2017-01-11 21:49:18 -05:00
Matt Woodrow
fd9309fe71 Bug 1329386 - Fallback to WMF decoding if the OOP decoder fails. r=jya 2017-01-12 15:35:10 +13:00