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
This commit is contained in:
Martin Stransky 2020-02-12 22:34:20 +00:00
Родитель f656d38f91
Коммит 66d3858441
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -60,15 +60,16 @@ struct SurfaceDescriptorMacIOSurface {
};
struct SurfaceDescriptorDMABuf {
uint32_t width;
uint32_t height;
uint32_t format;
uint32_t bufferType;
uint64_t modifier;
uint32_t flags;
uint32_t numFds;
FileDescriptor[] fds;
uint32_t[] width;
uint32_t[] height;
uint32_t[] format;
uint32_t[] strides;
uint32_t[] offsets;
YUVColorSpace yUVColorSpace;
};
struct SurfaceTextureDescriptor {
@ -98,6 +99,7 @@ struct SurfaceDescriptorSharedGLTexture {
union RemoteDecoderVideoSubDescriptor {
SurfaceDescriptorD3D10;
SurfaceDescriptorDXGIYCbCr;
SurfaceDescriptorDMABuf;
null_t;
};