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

64 Коммитов

Автор SHA1 Сообщение Дата
Matt Woodrow d3bab17663 Bug 1319251 - Add more current thread assertions in VideoDecoderParent so it's more obvious about which code runs where. r=jya
--HG--
extra : rebase_source : 03abb6a3f8f0e635032ac19ea0b4168483867cb1
2016-11-22 21:48:21 +13:00
Matt Woodrow f9ca04b579 Bug 1319251 - Ensure that our decoder pointer hasn't be revoked when we get the Init callback. r=jya
--HG--
extra : rebase_source : 5409c452a045a4d3a544371985bce80844534cdd
2016-11-22 21:47:34 +13:00
Matt Woodrow 61b46ea20c Bug 1319251 - Check Init promise in VideoDecoderChild before trying to resolve it. r=jya
--HG--
extra : rebase_source : b628ac151502806d7682294ce55949c0b87ccc5f
2016-11-22 21:47:00 +13:00
Matt Woodrow f79cf83a6f Bug 1316506 - Initialize mFlushTask. r=bustage CLOSED TREE 2016-11-22 17:43:45 +13:00
Matt Woodrow db4bd4aa1a Bug 1318854 - Null check the right pointer in RecvReadback. r=dvander 2016-11-22 15:51:19 +13:00
Matt Woodrow 6c7788b023 Bug 1319190 - Make sure we release the last VideoDecoderChild ref on the video manager thread. r=dvander
--HG--
extra : rebase_source : 52450808793a3be6abd04fe7be345d3ac1b608d3
2016-11-22 15:51:18 +13:00
Matt Woodrow 1c5f147c9f Bug 1318999 - Revoke MediaDataDecoder callback after RemoteVideoDecoder has been shut down. r=jya
--HG--
extra : rebase_source : 095eebbd7e2457a52aa7679d666ca10da3459259
2016-11-22 15:51:18 +13:00
Matt Woodrow 89ee34ca75 Bug 1316506 - Make RemoteVideoDecoder::Flush synchronous. r=billm
--HG--
extra : rebase_source : 1e0b6991a629de72248ac80dd64c30126d0c10fd
2016-11-22 15:50:46 +13:00
Matt Woodrow 50c5379ac8 Bug 1318083 - Make PVideoDecoder's ctor sync and fail if CreateVideoDecoder fails on the GPU process side. r=jya,dvander
--HG--
extra : rebase_source : 60a1e6686feaa1a841f5f822dfb0c91e220fe34f
2016-11-22 15:44:38 +13:00
Kan-Ru Chen f8100451db Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.

MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Andi-Bogdan Postelnicu aaf2063029 Bug 1317241 - Replace default bodies of special member functions with = default in dom/. r=baku
MozReview-Commit-ID: 12AHOhrpaNO

--HG--
extra : rebase_source : 7881277a13fe7389b95635ee9b94f1686f56d142
2016-11-14 11:40:37 +02:00
Andi-Bogdan Postelnicu 4df235170d Bug 1317241 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in dom/. r=baku
MozReview-Commit-ID: CST7fV4h20h

--HG--
extra : rebase_source : 663d24e9c15d7b42023f1557b75fb8dabfc9b6a9
2016-11-14 11:35:58 +02:00
Matt Woodrow f5f8e37990 Bug 1316506 - Make Shutdown block on the manager thread so that we clear the callback pointer immediately. r=dvander 2016-11-13 16:09:35 +13:00
Matt Woodrow a9d4c7433e Bug 1316771 - Don't hold a KnowsCompositor ref on the video manager thread since we don't want it to outlive the main thread ref. r=dvander 2016-11-13 14:19:02 +13:00
Matt Woodrow ab12db3032 Bug 1316221 - Null check mDecoder in RecvShutdown. r=dvander 2016-11-11 15:03:04 +13:00
Matt Woodrow 77e78d9558 Bug 1316221 - Force VideoBridge shutdown to happen before the compositor thread is destroyed. r=dvander 2016-11-11 15:02:32 +13:00
Matt Woodrow 808b23cf14 Bug 1316221 - Make sure we call Close on VideoBridgeChild before shutting down. r=dvander 2016-11-11 15:01:36 +13:00
Matt Woodrow 815b1ded77 Bug 1315144 - Add new non-fatal media error so that we recreate decoders when the GPU process crashes. r=jya 2016-11-08 15:22:37 +13:00
Matt Woodrow f880884b57 Bug 1315510 - Automatically recreate VideoDecoderManager if the GPU process crashes. r=dvander 2016-11-08 15:21:35 +13:00
Bill McCloskey b47737ed9f Bug 792652 - Move FatalError to IProtocol (r=dvander)
This patch moves FatalError to IProtocol. I had to make a few changes.
- I added a ProtocolName() method to find the name of the protocol.
- I gave the two-argument version of FatalError its own name. Otherwise
  C++ doesn't like there to be two virtual methods with the same name
  in cases where one is overridden and the other isn't (as happens
  in IToplevelProtocol).
2016-11-08 15:22:45 -08:00
Bill McCloskey 4e78a26c74 Bug 792652 - Simplify IPDL type hierarchy (r=dvander)
Currently all our protocols inherit from IProtocolManager<IProtocol>. I have
no idea why. This patch switches everything over to IProtocol, without any
templates. I had to move ReadActor to the .cpp file to avoid redefinition
errors.
2016-11-08 15:22:34 -08:00
Wes Kocher 4b3d16605a Backed out 18 changesets (bug 792652) for build bustage on linux64 a=backout CLOSED TREE
Backed out changeset 90eaf6aec002 (bug 792652)
Backed out changeset ddd915ab4a48 (bug 792652)
Backed out changeset 95eff6c45cae (bug 792652)
Backed out changeset 75855b5a9ab9 (bug 792652)
Backed out changeset b658ebaad5d7 (bug 792652)
Backed out changeset 2ba36b8ac60c (bug 792652)
Backed out changeset 94fcd3bf3f34 (bug 792652)
Backed out changeset cf9c4164eb43 (bug 792652)
Backed out changeset 59e6d0a4f35b (bug 792652)
Backed out changeset bdf86b8b9c43 (bug 792652)
Backed out changeset 8edf4b247250 (bug 792652)
Backed out changeset 63a3c8e4016e (bug 792652)
Backed out changeset e3e496eab991 (bug 792652)
Backed out changeset 5a1e3136323a (bug 792652)
Backed out changeset dbbe3a8c00e7 (bug 792652)
Backed out changeset 1829d5358808 (bug 792652)
Backed out changeset 004cd692ba6d (bug 792652)
Backed out changeset 92e7fee81fa2 (bug 792652)
2016-11-08 12:05:28 -08:00
Bill McCloskey 35fc224b71 Bug 792652 - Move FatalError to IProtocol (r=dvander)
This patch moves FatalError to IProtocol. I had to make a few changes.
- I added a ProtocolName() method to find the name of the protocol.
- I gave the two-argument version of FatalError its own name. Otherwise
  C++ doesn't like there to be two virtual methods with the same name
  in cases where one is overridden and the other isn't (as happens
  in IToplevelProtocol).
2016-11-08 11:32:30 -08:00
Bill McCloskey 2dc5f495db Bug 792652 - Simplify IPDL type hierarchy (r=dvander)
Currently all our protocols inherit from IProtocolManager<IProtocol>. I have
no idea why. This patch switches everything over to IProtocol, without any
templates. I had to move ReadActor to the .cpp file to avoid redefinition
errors.
2016-11-08 11:32:24 -08:00
Phil Ringnalda 27a5b8d2ae Backed out changeset d537051ade6a (bug 1315510) for nsTArray_base leaks and a fondess for crashing
CLOSED TREE

MozReview-Commit-ID: KD3jAkCg0O7
2016-11-07 22:18:21 -08:00
Phil Ringnalda 6c8fce2953 Backed out changeset 9ee070ee6dad (bug 1315144) to get at the patch below it
CLOSED TREE

MozReview-Commit-ID: 3d5vSfNXqO4
2016-11-07 22:17:28 -08:00
Matt Woodrow f75e8a0868 Bug 1315144 - Add new non-fatal media error so that we recreate decoders when the GPU process crashes. r=jya 2016-11-08 15:22:37 +13:00
Matt Woodrow 7afb98ff2b Bug 1315510 - Automatically recreate VideoDecoderManager if the GPU process crashes. r=dvander 2016-11-08 15:21:35 +13:00
Matt Woodrow 6dad1a961a Bug 1300676 - Part 3 - Implement readback for GPU videos. r=dvander,nical 2016-11-04 13:28:28 +13:00
Matt Woodrow 4f998dbe2b Bug 1300676 - Part 1: Allow asynchronous deletion of Shmem for VideoDecoderManagerChild. r=dvander 2016-11-04 13:28:28 +13:00
Matt Woodrow 3b4d158ee3 Bug 1314189 - Only create a RemoteVideoDecoder if the current LayerManager is using the GPU process. r=dvander 2016-11-03 09:57:15 +13:00
Matt Woodrow f884ec26e9 Bug 1300675 - Rebuild VideoDecoderManager when we restart the GPU process. r=dvander 2016-11-03 09:55:07 +13:00
James Cheng 87cb5936b6 Bug 1313315 - Do construct CreateDecoderParams only on Windows build in VideoDecoderParent::RecvInit r=mattwoodrow
MozReview-Commit-ID: 8BQHZU8e3nV

--HG--
extra : rebase_source : 6f6546cf3e4feb67e343486991385e0485e7a288
2016-10-27 17:43:36 +08:00
Matt Woodrow 67cd537af3 Bug 1300682 - Part 6: Use SharedThreadPool for GPU process decoders. r=dvander 2016-10-07 21:13:33 +13:00
Matt Woodrow a36eef926a Bug 1300682 - Part 5: Use KnowsCompositor to initialize decoders and create one for VideoDecoderParent to use. r=nical,jya 2016-10-07 21:13:33 +13:00
Matt Woodrow 52a583a261 Bug 1300682 - Part 1: Make sure we create a TextureClient for VideoBridge even if the layers::Image doesn't support GetTextureClient. r=nical 2016-10-07 21:13:32 +13:00
Matt Woodrow 6b75399b35 Bug 1297826 - Override FatalError for IPDL protocols that access the GPU process and make it non-fatal. r=billm 2016-10-04 21:31:27 +13:00
Matt Woodrow 185b59256e Bug 1300677 - Implement IsHardwareAccelerated for RemoteVideoDecoder. r=dvander 2016-10-03 21:21:07 +13:00
Matt Woodrow 8ea736c85f Bug 1300677 - Implement SetSeekThreshold for RemoteVideoDecoder. r=dvander 2016-10-03 21:20:54 +13:00
Matt Woodrow c449d80543 Bug 1305361 - Notify media if the GPU process crashes during video playback. r=dvander 2016-10-03 21:20:35 +13:00
Andi-Bogdan Postelnicu 423f5ce8c1 Bug 1301333 - mark InitIPDL as initialisation function for VideoDecoderChild. r=cpearce
MozReview-Commit-ID: 7xkkoS5Q7t
2016-09-27 15:02:43 +03:00
James Cheng f3c8ec8fd7 Bug 1305679 - Fix CID 1373350: Uninitialized members (UNINIT_CTOR) in VideoDecoderChild r=mattwoodrow
MozReview-Commit-ID: 80fdud44CmE

--HG--
extra : rebase_source : 3be759c4dedbe6b1a8cd5bee87e20721bea0b074
2016-09-27 18:29:49 +08:00
Carsten "Tomcat" Book 5bdd2876ae merge mozilla-inbound to mozilla-central a=merge 2016-09-27 11:21:25 +02:00
Matt Woodrow 204ff6e189 Bug 1305320 - Check if the PVideoDecoderManagerChild enpoint is valid before using it. r=dvander 2016-09-27 14:11:31 +13:00
Jean-Yves Avenard c169e0a2d2 Bug 1297311: P2. Remove redundant virtual keyword. r=mattwoodrow
MozReview-Commit-ID: D78jszKQrev

--HG--
extra : rebase_source : 6459fcb09401b0c4fa45304664671de636c18d5b
2016-09-26 12:33:49 +10:00
Jean-Yves Avenard dd2a72e7cc Bug 1297311: P1. Always recreate a decoder when SPS changes. r=cpearce
This allow consistency between platforms. A decoder will now always be shutdown and another one created if the video configuration changes.

MozReview-Commit-ID: 1SPzhVuBrip

--HG--
extra : rebase_source : f4d0347c4686d2f3ec0e4cf065a6c3fa36b7ea06
2016-09-26 12:28:07 +10:00
Matt Woodrow cedd3bc438 Bug 1302918 - Add PVideoBridge to share textures with the compositor. r=dvander,nical 2016-09-23 09:44:26 +12:00
Matt Woodrow d57dae2c04 Bug 1288618 - Part 15: Add media code interface RemoteVideoDecoder. r=cpearce,dvander 2016-09-21 21:25:41 +12:00
Matt Woodrow a64365e7ad Bug 1288618 - Part 14: Add PVideoDecoder protocol for individual decoders. r=cpearce,dvander 2016-09-21 21:25:41 +12:00
Matt Woodrow 7756c8a512 Bug 1288618 - Part 13: Add VideoDecoderManager protocol. r=dvander 2016-09-21 21:25:33 +12:00