Martin Stransky
a37d672244
Bug 1617575 [Wayland] Don't pass invalid file descriptors to SurfaceDescriptorDMABuf, r=jhorak
...
Differential Revision: https://phabricator.services.mozilla.com/D63850
--HG--
extra : moz-landing-system : lando
2020-02-25 13:48:39 +00:00
Martin Stransky
905e0e97e8
Bug 1614568 [Wayland] Implement fence sync to dmabuf surfaces for WebGL rendering, r=jgilbert
...
Use ANDROID_native_fence_sync to synchronize WebGL renderin. It's similar to KHR_fence_sync
but it the fence can be exported to file descriptor and shared among processes so we can create
the fence by WebGL producer and then wait in renderer.
Use glFinish() as a fallback when ANDROID_native_fence_sync is not available.
Differential Revision: https://phabricator.services.mozilla.com/D62712
--HG--
extra : moz-landing-system : lando
2020-02-19 15:13:28 +00:00
Martin Stransky
66d3858441
Bug 1613364 [Wayland] Update SurfaceDescriptorDMABuf to export YUV surfaces, r=sotaro
...
We need to export more planes in SurfaceDescriptorDMABuf and also YUV color space.
Differential Revision: https://phabricator.services.mozilla.com/D62000
--HG--
extra : moz-landing-system : lando
2020-02-12 22:34:20 +00:00
Martin Stransky
8df4dc66e5
Bug 1608800 [Wayland] Implement DMABUF modifiers, r=jhorak
...
Differential Revision: https://phabricator.services.mozilla.com/D59677
--HG--
extra : moz-landing-system : lando
2020-01-14 13:13:51 +00:00
David Parks
4dc38ba6aa
Bug 1577336: Part 7 - Move DXGI async plugin operations to compositor process r=jmathies,mattwoodrow,sotaro,mccr8
...
Previously, we created TextureD3D11 objects in the content process to back surfaces created for the plugin process. Those objects were then composited by the async ImageBridge. In order to remove Win32 kernel operations from content (including DX/GDI operations), this patch bounces the requests from content to the compositor process. The compositor process maintains 2 textures to be used for all plugin composition -- one for the plugin process and one for display. The plugin process can freely write to its texture and request composition when it is done, which triggers a blit to the display texture. This mirrors pre-existing behavior.
Differential Revision: https://phabricator.services.mozilla.com/D46086
--HG--
extra : moz-landing-system : lando
2019-11-20 21:49:35 +00:00
David Parks
18e50987a5
Bug 1577336: Part 6 - Make SurfaceDescriptorGPUVideo a union that contains SurfaceDescriptorRemoteDecoder r=mattwoodrow,jolin
...
SurfaceDescriptorGPUVideo, which currently only represents RemoteDecoder video, switches from being a struct to a union that holds a SurfaceDescriptorRemoteDecoder struct. SurfaceDescriptorRemoteDecoder is a new name for the old SurfceDescriptorGPUVideo. This is done so that we can later add SurfaceDescriptorPlugin as another type of SurfaceDescriptorGPUVideo.
Differential Revision: https://phabricator.services.mozilla.com/D52400
--HG--
extra : moz-landing-system : lando
2019-11-20 21:55:06 +00:00
Dan Glastonbury
45381819c6
Bug 1561179 - P1: Enable the creation of multiple VideoBridgeParent actors. r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D50398
--HG--
extra : moz-landing-system : lando
2019-11-04 03:41:45 +00:00
Razvan Maries
cdb80ead85
Backed out 6 changesets (bug 1561179) for perma fails on browser_timeout_throttling_with_audio_playback.js. CLOSED TREE
...
Backed out changeset 5d8059472045 (bug 1561179)
Backed out changeset 90c207dd2cc2 (bug 1561179)
Backed out changeset e90af73ef3c4 (bug 1561179)
Backed out changeset 4678da971197 (bug 1561179)
Backed out changeset 55340b999a4e (bug 1561179)
Backed out changeset 4037cce56491 (bug 1561179)
2019-10-31 03:21:24 +02:00
Dan Glastonbury
a98be7dd62
Bug 1561179 - P1: Enable the creation of multiple VideoBridgeParent actors. r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D50398
--HG--
extra : moz-landing-system : lando
2019-10-30 23:48:25 +00:00
Martin Stransky
dffd5a7984
Bug 1576910 - [Wayland] Add SurfaceDescriptorDMABuf to enable dma buf surface import/export on Wayland and (potentially) X11, r=sotaro
...
Differential Revision: https://phabricator.services.mozilla.com/D43611
--HG--
extra : moz-landing-system : lando
2019-08-28 02:13:03 +00:00
Jean-Yves Avenard
c4def0fb6f
Bug 1543359 - P7. Plumb YUV Color Range info in Windows' Image types. r=mattwoodrow
...
Still non-functional.
Differential Revision: https://phabricator.services.mozilla.com/D27214
--HG--
extra : moz-landing-system : lando
2019-07-26 08:45:30 +00:00
Jean-Yves Avenard
de19fb7f7e
Bug 1543359 - P6. Add backend for color range information. r=mattwoodrow.
...
Add code for YCbCr buffer and IOSurface backend.
Differential Revision: https://phabricator.services.mozilla.com/D27213
--HG--
extra : moz-landing-system : lando
2019-07-26 08:45:31 +00:00
Narcis Beleuzu
e84980d8b1
Backed out 15 changesets (bug 1543359) for wrench bustages on image.rs . CLOSED TREE
...
Backed out changeset 548006270186 (bug 1543359)
Backed out changeset c9585e9d9f3c (bug 1543359)
Backed out changeset 1c7ca95a2a9b (bug 1543359)
Backed out changeset d742d80b892f (bug 1543359)
Backed out changeset 210eee703fd9 (bug 1543359)
Backed out changeset 4eb933d55d88 (bug 1543359)
Backed out changeset fb9b71ed9f4b (bug 1543359)
Backed out changeset 98b968443458 (bug 1543359)
Backed out changeset a85bd4691bea (bug 1543359)
Backed out changeset b576317853e9 (bug 1543359)
Backed out changeset 095bca5c9b1a (bug 1543359)
Backed out changeset 48eb0ebf9f2e (bug 1543359)
Backed out changeset b22b0eb708b8 (bug 1543359)
Backed out changeset 52187d9320b1 (bug 1543359)
Backed out changeset fa6792c1c2e8 (bug 1543359)
2019-07-26 11:40:33 +03:00
Jean-Yves Avenard
e6eb3464df
Bug 1543359 - P7. Plumb YUV Color Range info in Windows' Image types. r=mattwoodrow
...
Still non-functional.
Differential Revision: https://phabricator.services.mozilla.com/D27214
--HG--
extra : moz-landing-system : lando
2019-07-26 06:13:44 +00:00
Jean-Yves Avenard
37515d5cc9
Bug 1543359 - P6. Add backend for color range information. r=mattwoodrow.
...
Add code for YCbCr buffer and IOSurface backend.
Differential Revision: https://phabricator.services.mozilla.com/D27213
--HG--
extra : moz-landing-system : lando
2019-07-26 06:13:37 +00:00
Cosmin Sabou
ae7e8fbf55
Backed out 14 changesets (bug 1543359) for causing build bustages. CLOSED TREE
...
Backed out changeset 87c99ef85813 (bug 1543359)
Backed out changeset cd0afc5758ba (bug 1543359)
Backed out changeset 101ac87ff017 (bug 1543359)
Backed out changeset 348e748e3451 (bug 1543359)
Backed out changeset d9e937f5caf4 (bug 1543359)
Backed out changeset 2f4eb6501552 (bug 1543359)
Backed out changeset 0d316ef8c668 (bug 1543359)
Backed out changeset bf238b58c694 (bug 1543359)
Backed out changeset 496f206d03d6 (bug 1543359)
Backed out changeset 7c3a1f23baa8 (bug 1543359)
Backed out changeset 90fff717198b (bug 1543359)
Backed out changeset b2ce591ca398 (bug 1543359)
Backed out changeset a63968f077e3 (bug 1543359)
Backed out changeset ca660ab1e0c1 (bug 1543359)
2019-07-26 07:39:11 +03:00
Jean-Yves Avenard
9d741696fe
Bug 1543359 - P7. Plumb YUV Color Range info in Windows' Image types. r=mattwoodrow
...
Still non-functional.
Differential Revision: https://phabricator.services.mozilla.com/D27214
--HG--
extra : moz-landing-system : lando
2019-07-22 08:04:54 +00:00
Jean-Yves Avenard
63be56621d
Bug 1543359 - P6. Add backend for color range information. r=mattwoodrow.
...
Add code for YCbCr buffer and IOSurface backend.
Differential Revision: https://phabricator.services.mozilla.com/D27213
--HG--
extra : moz-landing-system : lando
2019-07-22 08:24:30 +00:00
Bob Owen
387477fb68
Bug 1464032 Part 12: Add CanvasParent, CanvasChild and RecordedTextureData. r=mattwoodrow, jld
...
RecordedTextureData records TextureData calls for play back in the GPU process.
CanvasChild and CanvasParent set up the recorder and translator.
They also help to manage the starting of translation and co-ordinating the
translation with the frame transactions.
This patch also includes other changes to wire up recording and playback.
2018-12-02 14:19:11 +00:00
Jean-Yves Avenard
1dc7e8e498
Bug 1540581 - P11. Handle colorspace correctly with D3D11 images. r=mattwoodrow,nical
...
Differential Revision: https://phabricator.services.mozilla.com/D26466
--HG--
extra : moz-landing-system : lando
2019-04-11 12:38:49 +00:00
Jean-Yves Avenard
e5f2be092a
Bug 1540581 - P5. Add ColorSpace info to MacIOSurface. r=mattwoodrow
...
It would have been nicer and more logical to use a MacIOSurfaceImage to store the colorspace information, however the data passed around is a IOSurface Id via a SurfaceDescriptorMacIOSurface; the original data structure isn't kept; so we must transit the data at the same time as the IOSurface Id.
Also remove unnecessary test (new operator is infallible).
Differential Revision: https://phabricator.services.mozilla.com/D26058
--HG--
extra : moz-landing-system : lando
2019-04-11 12:36:31 +00:00
Jean-Yves Avenard
3ae43eb506
Bug 1493898 - P6. Move YUVColorSpace definition in the gfx namespace. r=mattwoodrow.
...
YUVColorSpace is inseparable from the bit depth as the matrix coefficients to be calculated need the bit depth information.
So let's put the two types together. gfx namespace also makes more sense as that's where we find IntRect, IntSize and other.
The extent of the changes highlight how much similar data structures are duplicated across the code, to the point it's scary.
Differential Revision: https://phabricator.services.mozilla.com/D25347
--HG--
extra : moz-landing-system : lando
2019-04-11 12:41:33 +00:00
Alex Gaynor
8024e86d02
Bug 1538796 - Part 6 - remove unused IPDL OverlaySource union; r=kats
...
Depends on D24751
Differential Revision: https://phabricator.services.mozilla.com/D24752
--HG--
extra : moz-landing-system : lando
2019-03-25 19:30:26 +00:00
Jean-Yves Avenard
b10364a15f
Bug 1493198 - P2. Use enum for describing color depth. r=mattwoodrow
...
Depends on D6662
Differential Revision: https://phabricator.services.mozilla.com/D6663
--HG--
extra : moz-landing-system : lando
2018-09-25 20:44:55 +00:00
Jean-Yves Avenard
cfc24b769e
Bug 1469711 - P1. Add 10/12 bits YUV support to D3D11 compositor. r=mattwoodrow
...
This change is for D3D11 with Advanced Layers enabled.
Differential Revision: https://phabricator.services.mozilla.com/D6492
--HG--
extra : moz-landing-system : lando
2018-09-25 11:18:34 +00:00
Alex Gaynor
ac3702bff2
Bug 1487091 - remove an unused element from a graphics IPDL union; r=aosmond
...
Differential Revision: https://phabricator.services.mozilla.com/D4543
--HG--
extra : moz-landing-system : lando
2018-08-30 00:35:08 +00:00
sotaro
a8b71fcd72
Bug 1415763 - Fix DXGIYCbCrTextureData as to deliver YUVColorSpace r=mattwoodrow
2017-11-10 18:15:54 +09:00
Sebastian Hengst
f07fc93141
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: 4PW6ESqLL73
2017-10-30 23:52:23 +01:00
Andrew Osmond
d9e413fa5a
Bug 1331944 - Part 2. Add SharedSurfacesParent/Child to manage shared surfaces. r=jrmuizel
2017-10-30 13:10:29 -04:00
Jamie Nicol
21b5b6db95
Bug 1092294 - Use SurfaceTextures for painted content on android (preffed off). r=nical,snorp
...
Add a new TextureClientData type, AndroidNativeWindowTextureData,
backed by a SurfaceTexture in single-buffer mode. It uses the
NativeWindow API, which provides producer-side access to the buffer.
This provides a DrawTarget which can be used to paint directly in to
the SurfaceTexture, which can then be composited using a SurfaceTextureHost.
Due to API restrictions it is not possible to read from a NativeWindow
while the corresponding SurfaceTexture has ownership of the
buffer. TiledContentClient now handles that by painting the additional
region that it cannot copy from the front buffer, if required.
MozReview-Commit-ID: 1NZq6MQqwFq
--HG--
extra : rebase_source : 9d1db721d4892f3df033d43127489a85421e8863
2017-10-28 11:59:58 +01:00
Coroiu Cristina
dfaf24241e
Backed out changeset 7e1da430d9f9::7c56a10468d7 (bug 1331944) for bustage on Android at gfx/layers/ipc/SharedSurfacesParent.cpp r=backout on a CLOSED TREE
...
Backed out changeset 7c56a10468d7 (bug 1331944)
Backed out changeset b77eb1c48b73 (bug 1331944)
Backed out changeset 50b1fcf13fba (bug 1331944)
Backed out changeset 56e6ab347bae (bug 1331944)
Backed out changeset 5bdfda0b0b3a (bug 1331944)
Backed out changeset 40ec55507394 (bug 1331944)
Backed out changeset 83cc1f67e9f7 (bug 1331944)
Backed out changeset 7e1da430d9f9 (bug 1331944)
2017-10-30 15:52:07 +02:00
Andrew Osmond
58cdf17222
Bug 1331944 - Part 2. Add SharedSurfacesParent/Child to manage shared surfaces. r=jrmuizel
2017-10-30 09:10:44 -04:00
Jean-Yves Avenard
3cd54027fe
Bug 1215089 - P7: Add support for 10/12 bits YUV surface with basic compositor. r=mattwoodrow
...
MozReview-Commit-ID: Ej4MbvHnSk9
--HG--
extra : rebase_source : c88e8641ce343917b4f433b515aefe653b23eaa6
2017-09-29 16:37:56 +02:00
Sebastian Hengst
2da2f1cc48
Backed out changeset 248c73a2c3b1 (bug 1215089)
2017-10-04 16:25:46 +02:00
Jean-Yves Avenard
9a3a9f486e
Bug 1215089 - P6: Add support for 10/12 bits YUV surface with basic compositor. r=mattwoodrow
...
MozReview-Commit-ID: Ej4MbvHnSk9
--HG--
extra : rebase_source : 69b342e18829816ca3cdd91a3f01252ae2a1ac94
2017-09-29 16:37:56 +02:00
Jeff Gilbert
8a890b29aa
Bug 1322746 - Support PLANAR_YCBCR, GPU_VIDEO, and D3D11_YCBCR_IMAGE in GLBlitHelper. - r=jerry
...
MozReview-Commit-ID: FNsmq0RPvYB
2017-09-02 21:52:16 -07: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
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
395ab599a1
Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
...
The main advantage here is that it works cross-process.
MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-15 09:37:44 -05:00
Iris Hsiao
e22349b74b
Backed out 11 changesets (bug 1322650) for media test failures on android. a=backout
...
Backed out changeset 31bd912fba54 (bug 1322650)
Backed out changeset 4d486c7469eb (bug 1322650)
Backed out changeset 4cf8f4d5064c (bug 1322650)
Backed out changeset 3cb108f7492f (bug 1322650)
Backed out changeset bd53533c108e (bug 1322650)
Backed out changeset 3522917d8f10 (bug 1322650)
Backed out changeset 2c2c1e33eccc (bug 1322650)
Backed out changeset 2f19977cd6ab (bug 1322650)
Backed out changeset 4519296a323e (bug 1322650)
Backed out changeset e56e5e1c8786 (bug 1322650)
Backed out changeset 96fe52231b57 (bug 1322650)
--HG--
extra : amend_source : b11d2181d8f545f4ed1074f09986eddab0b637c8
2017-05-12 10:21:14 +08:00
James Willcox
40d0e705e9
Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
...
This is needed to support Flash on Android
MozReview-Commit-ID: 5yNIoZHonla
2017-05-11 15:42:44 -05:00
James Willcox
ad1995d388
Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
...
The main advantage here is that it works cross-process.
MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-11 15:42:42 -05:00
Sebastian Hengst
087bd41f0f
Backed out changeset 9badb2705567 (bug 1322650)
2017-05-05 18:54:09 +02:00
Sebastian Hengst
8eeeb93b94
Backed out changeset 0c01bf8a1bd9 (bug 1322650)
2017-05-05 18:53:45 +02:00
James Willcox
f8f0fe9303
Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
...
This is needed to support Flash on Android
MozReview-Commit-ID: 5yNIoZHonla
2017-05-05 08:56:35 -05:00
James Willcox
a7f7a7b630
Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
...
The main advantage here is that it works cross-process.
MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-05 08:56:28 -05:00
David Anderson
990418f338
Remove the Direct3D9 compositor. (bug 1318558 part 2, r=mattwoodrow)
2017-03-08 00:17:36 -08:00
Sotaro Ikeda
92926a0f41
Bug 1317656 - Cleanup more gonk/b2g dependent code r=nical
2016-11-15 22:01:30 -08:00
Matt Woodrow
4d0b10822d
Bug 1308363 - Remove GONK specific code from gfx/. r=jrmuizel,sotaro
2016-10-27 13:17:10 +13:00
Sotaro Ikeda
1d3ceeff04
Bug 1306521 - Handle VP9 colorspace BT.709 on BasicCompositor r=nical,jwwang,jya,jrmuizel
2016-10-11 19:46:28 -07:00