Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/layers/LayersSurfaces.h"
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceDescriptorFileMapping|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorFileMapping::operator==(const SurfaceDescriptorFileMapping& _o) const -> bool
{
if ((!((handle()) == ((_o).handle())))) {
return false;
}
if ((!((format()) == ((_o).format())))) {
return false;
}
if ((!((size()) == ((_o).size())))) {
return false;
}
return true;
}
auto SurfaceDescriptorFileMapping::operator!=(const SurfaceDescriptorFileMapping& _o) const -> bool
{
return (!(operator==(_o)));
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorFileMapping>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).handle());
// Sentinel = 'handle'
(aMsg)->WriteSentinel(142344813);
WriteIPDLParam(aMsg, aActor, (aVar).format());
// Sentinel = 'format'
(aMsg)->WriteSentinel(148505226);
WriteIPDLParam(aMsg, aActor, (aVar).size());
// Sentinel = 'size'
(aMsg)->WriteSentinel(73662908);
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorFileMapping>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->handle())))))) {
aActor->FatalError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorFileMapping'");
return false;
}
// Sentinel = 'handle'
if ((!((aMsg)->ReadSentinel(aIter, 142344813)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorFileMapping'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->format())))))) {
aActor->FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorFileMapping'");
return false;
}
// Sentinel = 'format'
if ((!((aMsg)->ReadSentinel(aIter, 148505226)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorFileMapping'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->size())))))) {
aActor->FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorFileMapping'");
return false;
}
// Sentinel = 'size'
if ((!((aMsg)->ReadSentinel(aIter, 73662908)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorFileMapping'");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceDescriptorDIB|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorDIB::operator==(const SurfaceDescriptorDIB& _o) const -> bool
{
if ((!((surface()) == ((_o).surface())))) {
return false;
}
return true;
}
auto SurfaceDescriptorDIB::operator!=(const SurfaceDescriptorDIB& _o) const -> bool
{
return (!(operator==(_o)));
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorDIB>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).surface());
// Sentinel = 'surface'
(aMsg)->WriteSentinel(201982698);
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorDIB>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->surface())))))) {
aActor->FatalError("Error deserializing 'surface' (uintptr_t) member of 'SurfaceDescriptorDIB'");
return false;
}
// Sentinel = 'surface'
if ((!((aMsg)->ReadSentinel(aIter, 201982698)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'surface' (uintptr_t) member of 'SurfaceDescriptorDIB'");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceDescriptorD3D10|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorD3D10::operator==(const SurfaceDescriptorD3D10& _o) const -> bool
{
if ((!((handle()) == ((_o).handle())))) {
return false;
}
if ((!((format()) == ((_o).format())))) {
return false;
}
if ((!((size()) == ((_o).size())))) {
return false;
}
if ((!((yUVColorSpace()) == ((_o).yUVColorSpace())))) {
return false;
}
if ((!((colorRange()) == ((_o).colorRange())))) {
return false;
}
return true;
}
auto SurfaceDescriptorD3D10::operator!=(const SurfaceDescriptorD3D10& _o) const -> bool
{
return (!(operator==(_o)));
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorD3D10>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).handle());
// Sentinel = 'handle'
(aMsg)->WriteSentinel(142344813);
WriteIPDLParam(aMsg, aActor, (aVar).format());
// Sentinel = 'format'
(aMsg)->WriteSentinel(148505226);
WriteIPDLParam(aMsg, aActor, (aVar).size());
// Sentinel = 'size'
(aMsg)->WriteSentinel(73662908);
WriteIPDLParam(aMsg, aActor, (aVar).yUVColorSpace());
// Sentinel = 'yUVColorSpace'
(aMsg)->WriteSentinel(589759760);
WriteIPDLParam(aMsg, aActor, (aVar).colorRange());
// Sentinel = 'colorRange'
(aMsg)->WriteSentinel(377422861);
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorD3D10>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->handle())))))) {
aActor->FatalError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorD3D10'");
return false;
}
// Sentinel = 'handle'
if ((!((aMsg)->ReadSentinel(aIter, 142344813)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorD3D10'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->format())))))) {
aActor->FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorD3D10'");
return false;
}
// Sentinel = 'format'
if ((!((aMsg)->ReadSentinel(aIter, 148505226)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorD3D10'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->size())))))) {
aActor->FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorD3D10'");
return false;
}
// Sentinel = 'size'
if ((!((aMsg)->ReadSentinel(aIter, 73662908)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorD3D10'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->yUVColorSpace())))))) {
aActor->FatalError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'SurfaceDescriptorD3D10'");
return false;
}
// Sentinel = 'yUVColorSpace'
if ((!((aMsg)->ReadSentinel(aIter, 589759760)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'SurfaceDescriptorD3D10'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->colorRange())))))) {
aActor->FatalError("Error deserializing 'colorRange' (ColorRange) member of 'SurfaceDescriptorD3D10'");
return false;
}
// Sentinel = 'colorRange'
if ((!((aMsg)->ReadSentinel(aIter, 377422861)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'colorRange' (ColorRange) member of 'SurfaceDescriptorD3D10'");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceDescriptorDXGIYCbCr|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorDXGIYCbCr::operator==(const SurfaceDescriptorDXGIYCbCr& _o) const -> bool
{
if ((!((handleY()) == ((_o).handleY())))) {
return false;
}
if ((!((handleCb()) == ((_o).handleCb())))) {
return false;
}
if ((!((handleCr()) == ((_o).handleCr())))) {
return false;
}
if ((!((size()) == ((_o).size())))) {
return false;
}
if ((!((sizeY()) == ((_o).sizeY())))) {
return false;
}
if ((!((sizeCbCr()) == ((_o).sizeCbCr())))) {
return false;
}
if ((!((colorDepth()) == ((_o).colorDepth())))) {
return false;
}
if ((!((yUVColorSpace()) == ((_o).yUVColorSpace())))) {
return false;
}
if ((!((colorRange()) == ((_o).colorRange())))) {
return false;
}
return true;
}
auto SurfaceDescriptorDXGIYCbCr::operator!=(const SurfaceDescriptorDXGIYCbCr& _o) const -> bool
{
return (!(operator==(_o)));
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorDXGIYCbCr>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).handleY());
// Sentinel = 'handleY'
(aMsg)->WriteSentinel(188875462);
WriteIPDLParam(aMsg, aActor, (aVar).handleCb());
// Sentinel = 'handleCb'
(aMsg)->WriteSentinel(238945042);
WriteIPDLParam(aMsg, aActor, (aVar).handleCr());
// Sentinel = 'handleCr'
(aMsg)->WriteSentinel(239993634);
WriteIPDLParam(aMsg, aActor, (aVar).size());
// Sentinel = 'size'
(aMsg)->WriteSentinel(73662908);
WriteIPDLParam(aMsg, aActor, (aVar).sizeY());
// Sentinel = 'sizeY'
(aMsg)->WriteSentinel(108593685);
WriteIPDLParam(aMsg, aActor, (aVar).sizeCbCr());
// Sentinel = 'sizeCbCr'
(aMsg)->WriteSentinel(243139350);
WriteIPDLParam(aMsg, aActor, (aVar).colorDepth());
// Sentinel = 'colorDepth'
(aMsg)->WriteSentinel(376177685);
WriteIPDLParam(aMsg, aActor, (aVar).yUVColorSpace());
// Sentinel = 'yUVColorSpace'
(aMsg)->WriteSentinel(589759760);
WriteIPDLParam(aMsg, aActor, (aVar).colorRange());
// Sentinel = 'colorRange'
(aMsg)->WriteSentinel(377422861);
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorDXGIYCbCr>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->handleY())))))) {
aActor->FatalError("Error deserializing 'handleY' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
// Sentinel = 'handleY'
if ((!((aMsg)->ReadSentinel(aIter, 188875462)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'handleY' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->handleCb())))))) {
aActor->FatalError("Error deserializing 'handleCb' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
// Sentinel = 'handleCb'
if ((!((aMsg)->ReadSentinel(aIter, 238945042)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'handleCb' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->handleCr())))))) {
aActor->FatalError("Error deserializing 'handleCr' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
// Sentinel = 'handleCr'
if ((!((aMsg)->ReadSentinel(aIter, 239993634)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'handleCr' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->size())))))) {
aActor->FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
// Sentinel = 'size'
if ((!((aMsg)->ReadSentinel(aIter, 73662908)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sizeY())))))) {
aActor->FatalError("Error deserializing 'sizeY' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
// Sentinel = 'sizeY'
if ((!((aMsg)->ReadSentinel(aIter, 108593685)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'sizeY' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sizeCbCr())))))) {
aActor->FatalError("Error deserializing 'sizeCbCr' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
// Sentinel = 'sizeCbCr'
if ((!((aMsg)->ReadSentinel(aIter, 243139350)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'sizeCbCr' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->colorDepth())))))) {
aActor->FatalError("Error deserializing 'colorDepth' (ColorDepth) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
// Sentinel = 'colorDepth'
if ((!((aMsg)->ReadSentinel(aIter, 376177685)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'colorDepth' (ColorDepth) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->yUVColorSpace())))))) {
aActor->FatalError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
// Sentinel = 'yUVColorSpace'
if ((!((aMsg)->ReadSentinel(aIter, 589759760)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->colorRange())))))) {
aActor->FatalError("Error deserializing 'colorRange' (ColorRange) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
// Sentinel = 'colorRange'
if ((!((aMsg)->ReadSentinel(aIter, 377422861)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'colorRange' (ColorRange) member of 'SurfaceDescriptorDXGIYCbCr'");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceDescriptorMacIOSurface|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorMacIOSurface::operator==(const SurfaceDescriptorMacIOSurface& _o) const -> bool
{
if ((!((surfaceId()) == ((_o).surfaceId())))) {
return false;
}
if ((!((scaleFactor()) == ((_o).scaleFactor())))) {
return false;
}
if ((!((isOpaque()) == ((_o).isOpaque())))) {
return false;
}
if ((!((yUVColorSpace()) == ((_o).yUVColorSpace())))) {
return false;
}
return true;
}
auto SurfaceDescriptorMacIOSurface::operator!=(const SurfaceDescriptorMacIOSurface& _o) const -> bool
{
return (!(operator==(_o)));
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorMacIOSurface>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).isOpaque());
// Sentinel = 'isOpaque'
(aMsg)->WriteSentinel(245695304);
WriteIPDLParam(aMsg, aActor, (aVar).yUVColorSpace());
// Sentinel = 'yUVColorSpace'
(aMsg)->WriteSentinel(589759760);
(aMsg)->WriteBytes((&((aVar).scaleFactor())), 8);
// Sentinel = 'scaleFactor'
(aMsg)->WriteSentinel(438764648);
(aMsg)->WriteBytes((&((aVar).surfaceId())), 4);
// Sentinel = 'surfaceId'
(aMsg)->WriteSentinel(315884439);
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorMacIOSurface>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isOpaque())))))) {
aActor->FatalError("Error deserializing 'isOpaque' (bool) member of 'SurfaceDescriptorMacIOSurface'");
return false;
}
// Sentinel = 'isOpaque'
if ((!((aMsg)->ReadSentinel(aIter, 245695304)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'isOpaque' (bool) member of 'SurfaceDescriptorMacIOSurface'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->yUVColorSpace())))))) {
aActor->FatalError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'SurfaceDescriptorMacIOSurface'");
return false;
}
// Sentinel = 'yUVColorSpace'
if ((!((aMsg)->ReadSentinel(aIter, 589759760)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'SurfaceDescriptorMacIOSurface'");
return false;
}
if ((!((aMsg)->ReadBytesInto(aIter, (&((aVar)->scaleFactor())), 8)))) {
aActor->FatalError("Error bulk reading fields from double");
return false;
}
// Sentinel = 'scaleFactor'
if ((!((aMsg)->ReadSentinel(aIter, 438764648)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from double");
return false;
}
if ((!((aMsg)->ReadBytesInto(aIter, (&((aVar)->surfaceId())), 4)))) {
aActor->FatalError("Error bulk reading fields from uint32_t");
return false;
}
// Sentinel = 'surfaceId'
if ((!((aMsg)->ReadSentinel(aIter, 315884439)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint32_t");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceDescriptorDMABuf|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorDMABuf::operator==(const SurfaceDescriptorDMABuf& _o) const -> bool
{
if ((!((bufferType()) == ((_o).bufferType())))) {
return false;
}
if ((!((modifier()) == ((_o).modifier())))) {
return false;
}
if ((!((flags()) == ((_o).flags())))) {
return false;
}
if ((!((fds()) == ((_o).fds())))) {
return false;
}
if ((!((width()) == ((_o).width())))) {
return false;
}
if ((!((height()) == ((_o).height())))) {
return false;
}
if ((!((format()) == ((_o).format())))) {
return false;
}
if ((!((strides()) == ((_o).strides())))) {
return false;
}
if ((!((offsets()) == ((_o).offsets())))) {
return false;
}
if ((!((yUVColorSpace()) == ((_o).yUVColorSpace())))) {
return false;
}
if ((!((fence()) == ((_o).fence())))) {
return false;
}
if ((!((uid()) == ((_o).uid())))) {
return false;
}
if ((!((refCount()) == ((_o).refCount())))) {
return false;
}
return true;
}
auto SurfaceDescriptorDMABuf::operator!=(const SurfaceDescriptorDMABuf& _o) const -> bool
{
return (!(operator==(_o)));
}
auto SurfaceDescriptorDMABuf::StaticAssertions() const -> void
{
static_assert(
(offsetof(SurfaceDescriptorDMABuf, uid_) - offsetof(SurfaceDescriptorDMABuf, bufferType_)) == 8,
"Bad assumptions about field layout!");
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorDMABuf>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).fds());
// Sentinel = 'fds'
(aMsg)->WriteSentinel(40894782);
WriteIPDLParam(aMsg, aActor, (aVar).width());
// Sentinel = 'width'
(aMsg)->WriteSentinel(108528161);
WriteIPDLParam(aMsg, aActor, (aVar).height());
// Sentinel = 'height'
(aMsg)->WriteSentinel(143393402);
WriteIPDLParam(aMsg, aActor, (aVar).format());
// Sentinel = 'format'
(aMsg)->WriteSentinel(148505226);
WriteIPDLParam(aMsg, aActor, (aVar).strides());
// Sentinel = 'strides'
(aMsg)->WriteSentinel(204145407);
WriteIPDLParam(aMsg, aActor, (aVar).offsets());
// Sentinel = 'offsets'
(aMsg)->WriteSentinel(197657339);
WriteIPDLParam(aMsg, aActor, (aVar).yUVColorSpace());
// Sentinel = 'yUVColorSpace'
(aMsg)->WriteSentinel(589759760);
WriteIPDLParam(aMsg, aActor, (aVar).fence());
// Sentinel = 'fence'
(aMsg)->WriteSentinel(101450242);
WriteIPDLParam(aMsg, aActor, (aVar).refCount());
// Sentinel = 'refCount'
(aMsg)->WriteSentinel(242811719);
(aMsg)->WriteBytes((&((aVar).modifier())), 8);
// Sentinel = 'modifier'
(aMsg)->WriteSentinel(250413904);
(aMsg)->WriteBytes((&((aVar).bufferType())), 12);
// Sentinel = 'bufferType | flags | uid'
(aMsg)->WriteSentinel(1917847780);
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorDMABuf>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->fds())))))) {
aActor->FatalError("Error deserializing 'fds' (FileDescriptor[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
// Sentinel = 'fds'
if ((!((aMsg)->ReadSentinel(aIter, 40894782)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'fds' (FileDescriptor[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->width())))))) {
aActor->FatalError("Error deserializing 'width' (uint32_t[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
// Sentinel = 'width'
if ((!((aMsg)->ReadSentinel(aIter, 108528161)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'width' (uint32_t[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->height())))))) {
aActor->FatalError("Error deserializing 'height' (uint32_t[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
// Sentinel = 'height'
if ((!((aMsg)->ReadSentinel(aIter, 143393402)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'height' (uint32_t[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->format())))))) {
aActor->FatalError("Error deserializing 'format' (uint32_t[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
// Sentinel = 'format'
if ((!((aMsg)->ReadSentinel(aIter, 148505226)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'format' (uint32_t[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->strides())))))) {
aActor->FatalError("Error deserializing 'strides' (uint32_t[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
// Sentinel = 'strides'
if ((!((aMsg)->ReadSentinel(aIter, 204145407)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'strides' (uint32_t[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->offsets())))))) {
aActor->FatalError("Error deserializing 'offsets' (uint32_t[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
// Sentinel = 'offsets'
if ((!((aMsg)->ReadSentinel(aIter, 197657339)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'offsets' (uint32_t[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->yUVColorSpace())))))) {
aActor->FatalError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'SurfaceDescriptorDMABuf'");
return false;
}
// Sentinel = 'yUVColorSpace'
if ((!((aMsg)->ReadSentinel(aIter, 589759760)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'SurfaceDescriptorDMABuf'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->fence())))))) {
aActor->FatalError("Error deserializing 'fence' (FileDescriptor[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
// Sentinel = 'fence'
if ((!((aMsg)->ReadSentinel(aIter, 101450242)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'fence' (FileDescriptor[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->refCount())))))) {
aActor->FatalError("Error deserializing 'refCount' (FileDescriptor[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
// Sentinel = 'refCount'
if ((!((aMsg)->ReadSentinel(aIter, 242811719)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'refCount' (FileDescriptor[]) member of 'SurfaceDescriptorDMABuf'");
return false;
}
if ((!((aMsg)->ReadBytesInto(aIter, (&((aVar)->modifier())), 8)))) {
aActor->FatalError("Error bulk reading fields from uint64_t");
return false;
}
// Sentinel = 'modifier'
if ((!((aMsg)->ReadSentinel(aIter, 250413904)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint64_t");
return false;
}
if ((!((aMsg)->ReadBytesInto(aIter, (&((aVar)->bufferType())), 12)))) {
aActor->FatalError("Error bulk reading fields from uint32_t");
return false;
}
// Sentinel = 'bufferType | flags | uid'
if ((!((aMsg)->ReadSentinel(aIter, 1917847780)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint32_t");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceTextureDescriptor|
//
namespace mozilla {
namespace layers {
auto SurfaceTextureDescriptor::operator==(const SurfaceTextureDescriptor& _o) const -> bool
{
if ((!((handle()) == ((_o).handle())))) {
return false;
}
if ((!((size()) == ((_o).size())))) {
return false;
}
if ((!((format()) == ((_o).format())))) {
return false;
}
if ((!((continuous()) == ((_o).continuous())))) {
return false;
}
if ((!((ignoreTransform()) == ((_o).ignoreTransform())))) {
return false;
}
return true;
}
auto SurfaceTextureDescriptor::operator!=(const SurfaceTextureDescriptor& _o) const -> bool
{
return (!(operator==(_o)));
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceTextureDescriptor>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).size());
// Sentinel = 'size'
(aMsg)->WriteSentinel(73662908);
WriteIPDLParam(aMsg, aActor, (aVar).format());
// Sentinel = 'format'
(aMsg)->WriteSentinel(148505226);
WriteIPDLParam(aMsg, aActor, (aVar).continuous());
// Sentinel = 'continuous'
(aMsg)->WriteSentinel(394593368);
WriteIPDLParam(aMsg, aActor, (aVar).ignoreTransform());
// Sentinel = 'ignoreTransform'
(aMsg)->WriteSentinel(833488449);
(aMsg)->WriteBytes((&((aVar).handle())), 8);
// Sentinel = 'handle'
(aMsg)->WriteSentinel(142344813);
}
auto IPDLParamTraits<mozilla::layers::SurfaceTextureDescriptor>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->size())))))) {
aActor->FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceTextureDescriptor'");
return false;
}
// Sentinel = 'size'
if ((!((aMsg)->ReadSentinel(aIter, 73662908)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceTextureDescriptor'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->format())))))) {
aActor->FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceTextureDescriptor'");
return false;
}
// Sentinel = 'format'
if ((!((aMsg)->ReadSentinel(aIter, 148505226)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceTextureDescriptor'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->continuous())))))) {
aActor->FatalError("Error deserializing 'continuous' (bool) member of 'SurfaceTextureDescriptor'");
return false;
}
// Sentinel = 'continuous'
if ((!((aMsg)->ReadSentinel(aIter, 394593368)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'continuous' (bool) member of 'SurfaceTextureDescriptor'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->ignoreTransform())))))) {
aActor->FatalError("Error deserializing 'ignoreTransform' (bool) member of 'SurfaceTextureDescriptor'");
return false;
}
// Sentinel = 'ignoreTransform'
if ((!((aMsg)->ReadSentinel(aIter, 833488449)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ignoreTransform' (bool) member of 'SurfaceTextureDescriptor'");
return false;
}
if ((!((aMsg)->ReadBytesInto(aIter, (&((aVar)->handle())), 8)))) {
aActor->FatalError("Error bulk reading fields from uint64_t");
return false;
}
// Sentinel = 'handle'
if ((!((aMsg)->ReadSentinel(aIter, 142344813)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint64_t");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceDescriptorAndroidHardwareBuffer|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorAndroidHardwareBuffer::operator==(const SurfaceDescriptorAndroidHardwareBuffer& _o) const -> bool
{
if ((!((handle()) == ((_o).handle())))) {
return false;
}
if ((!((bufferId()) == ((_o).bufferId())))) {
return false;
}
if ((!((size()) == ((_o).size())))) {
return false;
}
if ((!((format()) == ((_o).format())))) {
return false;
}
return true;
}
auto SurfaceDescriptorAndroidHardwareBuffer::operator!=(const SurfaceDescriptorAndroidHardwareBuffer& _o) const -> bool
{
return (!(operator==(_o)));
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorAndroidHardwareBuffer>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).handle());
// Sentinel = 'handle'
(aMsg)->WriteSentinel(142344813);
WriteIPDLParam(aMsg, aActor, (aVar).size());
// Sentinel = 'size'
(aMsg)->WriteSentinel(73662908);
WriteIPDLParam(aMsg, aActor, (aVar).format());
// Sentinel = 'format'
(aMsg)->WriteSentinel(148505226);
(aMsg)->WriteBytes((&((aVar).bufferId())), 8);
// Sentinel = 'bufferId'
(aMsg)->WriteSentinel(244122408);
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorAndroidHardwareBuffer>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->handle())))))) {
aActor->FatalError("Error deserializing 'handle' (FileDescriptor) member of 'SurfaceDescriptorAndroidHardwareBuffer'");
return false;
}
// Sentinel = 'handle'
if ((!((aMsg)->ReadSentinel(aIter, 142344813)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'handle' (FileDescriptor) member of 'SurfaceDescriptorAndroidHardwareBuffer'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->size())))))) {
aActor->FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorAndroidHardwareBuffer'");
return false;
}
// Sentinel = 'size'
if ((!((aMsg)->ReadSentinel(aIter, 73662908)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorAndroidHardwareBuffer'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->format())))))) {
aActor->FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorAndroidHardwareBuffer'");
return false;
}
// Sentinel = 'format'
if ((!((aMsg)->ReadSentinel(aIter, 148505226)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorAndroidHardwareBuffer'");
return false;
}
if ((!((aMsg)->ReadBytesInto(aIter, (&((aVar)->bufferId())), 8)))) {
aActor->FatalError("Error bulk reading fields from uint64_t");
return false;
}
// Sentinel = 'bufferId'
if ((!((aMsg)->ReadSentinel(aIter, 244122408)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint64_t");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct EGLImageDescriptor|
//
namespace mozilla {
namespace layers {
auto EGLImageDescriptor::operator==(const EGLImageDescriptor& _o) const -> bool
{
if ((!((image()) == ((_o).image())))) {
return false;
}
if ((!((fence()) == ((_o).fence())))) {
return false;
}
if ((!((size()) == ((_o).size())))) {
return false;
}
if ((!((hasAlpha()) == ((_o).hasAlpha())))) {
return false;
}
return true;
}
auto EGLImageDescriptor::operator!=(const EGLImageDescriptor& _o) const -> bool
{
return (!(operator==(_o)));
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::EGLImageDescriptor>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).image());
// Sentinel = 'image'
(aMsg)->WriteSentinel(102498820);
WriteIPDLParam(aMsg, aActor, (aVar).fence());
// Sentinel = 'fence'
(aMsg)->WriteSentinel(101450242);
WriteIPDLParam(aMsg, aActor, (aVar).size());
// Sentinel = 'size'
(aMsg)->WriteSentinel(73662908);
WriteIPDLParam(aMsg, aActor, (aVar).hasAlpha());
// Sentinel = 'hasAlpha'
(aMsg)->WriteSentinel(236389155);
}
auto IPDLParamTraits<mozilla::layers::EGLImageDescriptor>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->image())))))) {
aActor->FatalError("Error deserializing 'image' (uintptr_t) member of 'EGLImageDescriptor'");
return false;
}
// Sentinel = 'image'
if ((!((aMsg)->ReadSentinel(aIter, 102498820)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'image' (uintptr_t) member of 'EGLImageDescriptor'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->fence())))))) {
aActor->FatalError("Error deserializing 'fence' (uintptr_t) member of 'EGLImageDescriptor'");
return false;
}
// Sentinel = 'fence'
if ((!((aMsg)->ReadSentinel(aIter, 101450242)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'fence' (uintptr_t) member of 'EGLImageDescriptor'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->size())))))) {
aActor->FatalError("Error deserializing 'size' (IntSize) member of 'EGLImageDescriptor'");
return false;
}
// Sentinel = 'size'
if ((!((aMsg)->ReadSentinel(aIter, 73662908)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'EGLImageDescriptor'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->hasAlpha())))))) {
aActor->FatalError("Error deserializing 'hasAlpha' (bool) member of 'EGLImageDescriptor'");
return false;
}
// Sentinel = 'hasAlpha'
if ((!((aMsg)->ReadSentinel(aIter, 236389155)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'hasAlpha' (bool) member of 'EGLImageDescriptor'");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceDescriptorSharedGLTexture|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorSharedGLTexture::operator==(const SurfaceDescriptorSharedGLTexture& _o) const -> bool
{
if ((!((texture()) == ((_o).texture())))) {
return false;
}
if ((!((target()) == ((_o).target())))) {
return false;
}
if ((!((fence()) == ((_o).fence())))) {
return false;
}
if ((!((size()) == ((_o).size())))) {
return false;
}
if ((!((hasAlpha()) == ((_o).hasAlpha())))) {
return false;
}
return true;
}
auto SurfaceDescriptorSharedGLTexture::operator!=(const SurfaceDescriptorSharedGLTexture& _o) const -> bool
{
return (!(operator==(_o)));
}
auto SurfaceDescriptorSharedGLTexture::StaticAssertions() const -> void
{
static_assert(
(offsetof(SurfaceDescriptorSharedGLTexture, target_) - offsetof(SurfaceDescriptorSharedGLTexture, texture_)) == 4,
"Bad assumptions about field layout!");
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorSharedGLTexture>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).fence());
// Sentinel = 'fence'
(aMsg)->WriteSentinel(101450242);
WriteIPDLParam(aMsg, aActor, (aVar).size());
// Sentinel = 'size'
(aMsg)->WriteSentinel(73662908);
WriteIPDLParam(aMsg, aActor, (aVar).hasAlpha());
// Sentinel = 'hasAlpha'
(aMsg)->WriteSentinel(236389155);
(aMsg)->WriteBytes((&((aVar).texture())), 8);
// Sentinel = 'texture | target'
(aMsg)->WriteSentinel(918226517);
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorSharedGLTexture>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->fence())))))) {
aActor->FatalError("Error deserializing 'fence' (uintptr_t) member of 'SurfaceDescriptorSharedGLTexture'");
return false;
}
// Sentinel = 'fence'
if ((!((aMsg)->ReadSentinel(aIter, 101450242)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'fence' (uintptr_t) member of 'SurfaceDescriptorSharedGLTexture'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->size())))))) {
aActor->FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorSharedGLTexture'");
return false;
}
// Sentinel = 'size'
if ((!((aMsg)->ReadSentinel(aIter, 73662908)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorSharedGLTexture'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->hasAlpha())))))) {
aActor->FatalError("Error deserializing 'hasAlpha' (bool) member of 'SurfaceDescriptorSharedGLTexture'");
return false;
}
// Sentinel = 'hasAlpha'
if ((!((aMsg)->ReadSentinel(aIter, 236389155)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'hasAlpha' (bool) member of 'SurfaceDescriptorSharedGLTexture'");
return false;
}
if ((!((aMsg)->ReadBytesInto(aIter, (&((aVar)->texture())), 8)))) {
aActor->FatalError("Error bulk reading fields from uint32_t");
return false;
}
// Sentinel = 'texture | target'
if ((!((aMsg)->ReadSentinel(aIter, 918226517)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint32_t");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |union RemoteDecoderVideoSubDescriptor|
//
namespace mozilla {
namespace layers {
auto RemoteDecoderVideoSubDescriptor::MaybeDestroy(Type aNewType) -> bool
{
if ((mType) == (T__None)) {
return true;
}
if ((mType) == (aNewType)) {
return false;
}
switch (mType) {
case TSurfaceDescriptorD3D10:
{
(ptr_SurfaceDescriptorD3D10())->~SurfaceDescriptorD3D10__tdef();
break;
}
case TSurfaceDescriptorDXGIYCbCr:
{
(ptr_SurfaceDescriptorDXGIYCbCr())->~SurfaceDescriptorDXGIYCbCr__tdef();
break;
}
case TSurfaceDescriptorDMABuf:
{
(ptr_SurfaceDescriptorDMABuf())->~SurfaceDescriptorDMABuf__tdef();
break;
}
case Tnull_t:
{
(ptr_null_t())->~null_t__tdef();
break;
}
default:
{
mozilla::ipc::LogicError("not reached");
break;
}
}
return true;
}
MOZ_IMPLICIT RemoteDecoderVideoSubDescriptor::RemoteDecoderVideoSubDescriptor(const SurfaceDescriptorD3D10& aOther)
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorD3D10()) SurfaceDescriptorD3D10(aOther);
mType = TSurfaceDescriptorD3D10;
}
MOZ_IMPLICIT RemoteDecoderVideoSubDescriptor::RemoteDecoderVideoSubDescriptor(SurfaceDescriptorD3D10&& aOther)
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorD3D10()) SurfaceDescriptorD3D10(std::move(aOther));
mType = TSurfaceDescriptorD3D10;
}
MOZ_IMPLICIT RemoteDecoderVideoSubDescriptor::RemoteDecoderVideoSubDescriptor(const SurfaceDescriptorDXGIYCbCr& aOther)
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDXGIYCbCr()) SurfaceDescriptorDXGIYCbCr(aOther);
mType = TSurfaceDescriptorDXGIYCbCr;
}
MOZ_IMPLICIT RemoteDecoderVideoSubDescriptor::RemoteDecoderVideoSubDescriptor(SurfaceDescriptorDXGIYCbCr&& aOther)
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDXGIYCbCr()) SurfaceDescriptorDXGIYCbCr(std::move(aOther));
mType = TSurfaceDescriptorDXGIYCbCr;
}
MOZ_IMPLICIT RemoteDecoderVideoSubDescriptor::RemoteDecoderVideoSubDescriptor(const SurfaceDescriptorDMABuf& aOther)
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDMABuf()) SurfaceDescriptorDMABuf(aOther);
mType = TSurfaceDescriptorDMABuf;
}
MOZ_IMPLICIT RemoteDecoderVideoSubDescriptor::RemoteDecoderVideoSubDescriptor(SurfaceDescriptorDMABuf&& aOther)
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDMABuf()) SurfaceDescriptorDMABuf(std::move(aOther));
mType = TSurfaceDescriptorDMABuf;
}
MOZ_IMPLICIT RemoteDecoderVideoSubDescriptor::RemoteDecoderVideoSubDescriptor(const null_t& aOther)
{
new (mozilla::KnownNotNull, ptr_null_t()) null_t(aOther);
mType = Tnull_t;
}
MOZ_IMPLICIT RemoteDecoderVideoSubDescriptor::RemoteDecoderVideoSubDescriptor(null_t&& aOther)
{
new (mozilla::KnownNotNull, ptr_null_t()) null_t(std::move(aOther));
mType = Tnull_t;
}
MOZ_IMPLICIT RemoteDecoderVideoSubDescriptor::RemoteDecoderVideoSubDescriptor(const RemoteDecoderVideoSubDescriptor& aOther)
{
(aOther).AssertSanity();
switch ((aOther).type()) {
case TSurfaceDescriptorD3D10:
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorD3D10()) SurfaceDescriptorD3D10((aOther).get_SurfaceDescriptorD3D10());
break;
}
case TSurfaceDescriptorDXGIYCbCr:
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDXGIYCbCr()) SurfaceDescriptorDXGIYCbCr((aOther).get_SurfaceDescriptorDXGIYCbCr());
break;
}
case TSurfaceDescriptorDMABuf:
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDMABuf()) SurfaceDescriptorDMABuf((aOther).get_SurfaceDescriptorDMABuf());
break;
}
case Tnull_t:
{
new (mozilla::KnownNotNull, ptr_null_t()) null_t((aOther).get_null_t());
break;
}
case T__None:
{
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
return;
}
}
mType = (aOther).type();
}
MOZ_IMPLICIT RemoteDecoderVideoSubDescriptor::RemoteDecoderVideoSubDescriptor(RemoteDecoderVideoSubDescriptor&& aOther)
{
(aOther).AssertSanity();
Type t = (aOther).type();
switch (t) {
case TSurfaceDescriptorD3D10:
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorD3D10()) SurfaceDescriptorD3D10(std::move((aOther).get_SurfaceDescriptorD3D10()));
static_cast<void>((aOther).MaybeDestroy(T__None));
break;
}
case TSurfaceDescriptorDXGIYCbCr:
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDXGIYCbCr()) SurfaceDescriptorDXGIYCbCr(std::move((aOther).get_SurfaceDescriptorDXGIYCbCr()));
static_cast<void>((aOther).MaybeDestroy(T__None));
break;
}
case TSurfaceDescriptorDMABuf:
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDMABuf()) SurfaceDescriptorDMABuf(std::move((aOther).get_SurfaceDescriptorDMABuf()));
static_cast<void>((aOther).MaybeDestroy(T__None));
break;
}
case Tnull_t:
{
new (mozilla::KnownNotNull, ptr_null_t()) null_t(std::move((aOther).get_null_t()));
static_cast<void>((aOther).MaybeDestroy(T__None));
break;
}
case T__None:
{
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
return;
}
}
(aOther).mType = T__None;
mType = t;
}
RemoteDecoderVideoSubDescriptor::~RemoteDecoderVideoSubDescriptor()
{
static_cast<void>(MaybeDestroy(T__None));
}
auto RemoteDecoderVideoSubDescriptor::operator=(const SurfaceDescriptorD3D10& aRhs) -> RemoteDecoderVideoSubDescriptor&
{
if (MaybeDestroy(TSurfaceDescriptorD3D10)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorD3D10()) SurfaceDescriptorD3D10;
}
(*(ptr_SurfaceDescriptorD3D10())) = aRhs;
mType = TSurfaceDescriptorD3D10;
return (*(this));
}
auto RemoteDecoderVideoSubDescriptor::operator=(SurfaceDescriptorD3D10&& aRhs) -> RemoteDecoderVideoSubDescriptor&
{
if (MaybeDestroy(TSurfaceDescriptorD3D10)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorD3D10()) SurfaceDescriptorD3D10;
}
(*(ptr_SurfaceDescriptorD3D10())) = std::move(aRhs);
mType = TSurfaceDescriptorD3D10;
return (*(this));
}
auto RemoteDecoderVideoSubDescriptor::operator=(const SurfaceDescriptorDXGIYCbCr& aRhs) -> RemoteDecoderVideoSubDescriptor&
{
if (MaybeDestroy(TSurfaceDescriptorDXGIYCbCr)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDXGIYCbCr()) SurfaceDescriptorDXGIYCbCr;
}
(*(ptr_SurfaceDescriptorDXGIYCbCr())) = aRhs;
mType = TSurfaceDescriptorDXGIYCbCr;
return (*(this));
}
auto RemoteDecoderVideoSubDescriptor::operator=(SurfaceDescriptorDXGIYCbCr&& aRhs) -> RemoteDecoderVideoSubDescriptor&
{
if (MaybeDestroy(TSurfaceDescriptorDXGIYCbCr)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDXGIYCbCr()) SurfaceDescriptorDXGIYCbCr;
}
(*(ptr_SurfaceDescriptorDXGIYCbCr())) = std::move(aRhs);
mType = TSurfaceDescriptorDXGIYCbCr;
return (*(this));
}
auto RemoteDecoderVideoSubDescriptor::operator=(const SurfaceDescriptorDMABuf& aRhs) -> RemoteDecoderVideoSubDescriptor&
{
if (MaybeDestroy(TSurfaceDescriptorDMABuf)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDMABuf()) SurfaceDescriptorDMABuf;
}
(*(ptr_SurfaceDescriptorDMABuf())) = aRhs;
mType = TSurfaceDescriptorDMABuf;
return (*(this));
}
auto RemoteDecoderVideoSubDescriptor::operator=(SurfaceDescriptorDMABuf&& aRhs) -> RemoteDecoderVideoSubDescriptor&
{
if (MaybeDestroy(TSurfaceDescriptorDMABuf)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDMABuf()) SurfaceDescriptorDMABuf;
}
(*(ptr_SurfaceDescriptorDMABuf())) = std::move(aRhs);
mType = TSurfaceDescriptorDMABuf;
return (*(this));
}
auto RemoteDecoderVideoSubDescriptor::operator=(const null_t& aRhs) -> RemoteDecoderVideoSubDescriptor&
{
if (MaybeDestroy(Tnull_t)) {
new (mozilla::KnownNotNull, ptr_null_t()) null_t;
}
(*(ptr_null_t())) = aRhs;
mType = Tnull_t;
return (*(this));
}
auto RemoteDecoderVideoSubDescriptor::operator=(null_t&& aRhs) -> RemoteDecoderVideoSubDescriptor&
{
if (MaybeDestroy(Tnull_t)) {
new (mozilla::KnownNotNull, ptr_null_t()) null_t;
}
(*(ptr_null_t())) = std::move(aRhs);
mType = Tnull_t;
return (*(this));
}
auto RemoteDecoderVideoSubDescriptor::operator=(const RemoteDecoderVideoSubDescriptor& aRhs) -> RemoteDecoderVideoSubDescriptor&
{
(aRhs).AssertSanity();
Type t = (aRhs).type();
switch (t) {
case TSurfaceDescriptorD3D10:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorD3D10()) SurfaceDescriptorD3D10;
}
(*(ptr_SurfaceDescriptorD3D10())) = (aRhs).get_SurfaceDescriptorD3D10();
break;
}
case TSurfaceDescriptorDXGIYCbCr:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDXGIYCbCr()) SurfaceDescriptorDXGIYCbCr;
}
(*(ptr_SurfaceDescriptorDXGIYCbCr())) = (aRhs).get_SurfaceDescriptorDXGIYCbCr();
break;
}
case TSurfaceDescriptorDMABuf:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDMABuf()) SurfaceDescriptorDMABuf;
}
(*(ptr_SurfaceDescriptorDMABuf())) = (aRhs).get_SurfaceDescriptorDMABuf();
break;
}
case Tnull_t:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_null_t()) null_t;
}
(*(ptr_null_t())) = (aRhs).get_null_t();
break;
}
case T__None:
{
static_cast<void>(MaybeDestroy(t));
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
break;
}
}
mType = t;
return (*(this));
}
auto RemoteDecoderVideoSubDescriptor::operator=(RemoteDecoderVideoSubDescriptor&& aRhs) -> RemoteDecoderVideoSubDescriptor&
{
(aRhs).AssertSanity();
Type t = (aRhs).type();
switch (t) {
case TSurfaceDescriptorD3D10:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorD3D10()) SurfaceDescriptorD3D10;
}
(*(ptr_SurfaceDescriptorD3D10())) = std::move((aRhs).get_SurfaceDescriptorD3D10());
static_cast<void>((aRhs).MaybeDestroy(T__None));
break;
}
case TSurfaceDescriptorDXGIYCbCr:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDXGIYCbCr()) SurfaceDescriptorDXGIYCbCr;
}
(*(ptr_SurfaceDescriptorDXGIYCbCr())) = std::move((aRhs).get_SurfaceDescriptorDXGIYCbCr());
static_cast<void>((aRhs).MaybeDestroy(T__None));
break;
}
case TSurfaceDescriptorDMABuf:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorDMABuf()) SurfaceDescriptorDMABuf;
}
(*(ptr_SurfaceDescriptorDMABuf())) = std::move((aRhs).get_SurfaceDescriptorDMABuf());
static_cast<void>((aRhs).MaybeDestroy(T__None));
break;
}
case Tnull_t:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_null_t()) null_t;
}
(*(ptr_null_t())) = std::move((aRhs).get_null_t());
static_cast<void>((aRhs).MaybeDestroy(T__None));
break;
}
case T__None:
{
static_cast<void>(MaybeDestroy(t));
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
break;
}
}
(aRhs).mType = T__None;
mType = t;
return (*(this));
}
auto RemoteDecoderVideoSubDescriptor::operator==(const SurfaceDescriptorD3D10& aRhs) const -> bool
{
return (get_SurfaceDescriptorD3D10()) == (aRhs);
}
auto RemoteDecoderVideoSubDescriptor::operator==(const SurfaceDescriptorDXGIYCbCr& aRhs) const -> bool
{
return (get_SurfaceDescriptorDXGIYCbCr()) == (aRhs);
}
auto RemoteDecoderVideoSubDescriptor::operator==(const SurfaceDescriptorDMABuf& aRhs) const -> bool
{
return (get_SurfaceDescriptorDMABuf()) == (aRhs);
}
auto RemoteDecoderVideoSubDescriptor::operator==(const null_t& aRhs) const -> bool
{
return (get_null_t()) == (aRhs);
}
auto RemoteDecoderVideoSubDescriptor::operator==(const RemoteDecoderVideoSubDescriptor& aRhs) const -> bool
{
if ((type()) != ((aRhs).type())) {
return false;
}
switch (type()) {
case TSurfaceDescriptorD3D10:
{
return (get_SurfaceDescriptorD3D10()) == ((aRhs).get_SurfaceDescriptorD3D10());
}
case TSurfaceDescriptorDXGIYCbCr:
{
return (get_SurfaceDescriptorDXGIYCbCr()) == ((aRhs).get_SurfaceDescriptorDXGIYCbCr());
}
case TSurfaceDescriptorDMABuf:
{
return (get_SurfaceDescriptorDMABuf()) == ((aRhs).get_SurfaceDescriptorDMABuf());
}
case Tnull_t:
{
return (get_null_t()) == ((aRhs).get_null_t());
}
default:
{
mozilla::ipc::LogicError("unreached");
return false;
}
}
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::RemoteDecoderVideoSubDescriptor>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
typedef mozilla::layers::RemoteDecoderVideoSubDescriptor union__;
int type = (aVar).type();
WriteIPDLParam(aMsg, aActor, type);
// Sentinel = 'RemoteDecoderVideoSubDescriptor'
(aMsg)->WriteSentinel(3267955811);
switch (type) {
case union__::TSurfaceDescriptorD3D10:
{
WriteIPDLParam(aMsg, aActor, (aVar).get_SurfaceDescriptorD3D10());
// Sentinel = 'TSurfaceDescriptorD3D10'
(aMsg)->WriteSentinel(1783433305);
return;
}
case union__::TSurfaceDescriptorDXGIYCbCr:
{
WriteIPDLParam(aMsg, aActor, (aVar).get_SurfaceDescriptorDXGIYCbCr());
// Sentinel = 'TSurfaceDescriptorDXGIYCbCr'
(aMsg)->WriteSentinel(2440366620);
return;
}
case union__::TSurfaceDescriptorDMABuf:
{
WriteIPDLParam(aMsg, aActor, (aVar).get_SurfaceDescriptorDMABuf());
// Sentinel = 'TSurfaceDescriptorDMABuf'
(aMsg)->WriteSentinel(1950288172);
return;
}
case union__::Tnull_t:
{
WriteIPDLParam(aMsg, aActor, (aVar).get_null_t());
// Sentinel = 'Tnull_t'
(aMsg)->WriteSentinel(190186211);
return;
}
default:
{
aActor->FatalError("unknown union type");
return;
}
}
}
auto IPDLParamTraits<mozilla::layers::RemoteDecoderVideoSubDescriptor>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
typedef mozilla::layers::RemoteDecoderVideoSubDescriptor union__;
int type = 0;
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
aActor->FatalError("Error deserializing type of union RemoteDecoderVideoSubDescriptor");
return false;
}
// Sentinel = 'RemoteDecoderVideoSubDescriptor'
if ((!((aMsg)->ReadSentinel(aIter, 3267955811)))) {
mozilla::ipc::SentinelReadError("Error deserializing type of union RemoteDecoderVideoSubDescriptor");
return false;
}
switch (type) {
case union__::TSurfaceDescriptorD3D10:
{
mozilla::layers::SurfaceDescriptorD3D10 tmp = mozilla::layers::SurfaceDescriptorD3D10();
(*(aVar)) = std::move(tmp);
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_SurfaceDescriptorD3D10())))))) {
aActor->FatalError("Error deserializing variant TSurfaceDescriptorD3D10 of union RemoteDecoderVideoSubDescriptor");
return false;
}
// Sentinel = 'TSurfaceDescriptorD3D10'
if ((!((aMsg)->ReadSentinel(aIter, 1783433305)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TSurfaceDescriptorD3D10 of union RemoteDecoderVideoSubDescriptor");
return false;
}
return true;
}
case union__::TSurfaceDescriptorDXGIYCbCr:
{
mozilla::layers::SurfaceDescriptorDXGIYCbCr tmp = mozilla::layers::SurfaceDescriptorDXGIYCbCr();
(*(aVar)) = std::move(tmp);
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_SurfaceDescriptorDXGIYCbCr())))))) {
aActor->FatalError("Error deserializing variant TSurfaceDescriptorDXGIYCbCr of union RemoteDecoderVideoSubDescriptor");
return false;
}
// Sentinel = 'TSurfaceDescriptorDXGIYCbCr'
if ((!((aMsg)->ReadSentinel(aIter, 2440366620)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TSurfaceDescriptorDXGIYCbCr of union RemoteDecoderVideoSubDescriptor");
return false;
}
return true;
}
case union__::TSurfaceDescriptorDMABuf:
{
mozilla::layers::SurfaceDescriptorDMABuf tmp = mozilla::layers::SurfaceDescriptorDMABuf();
(*(aVar)) = std::move(tmp);
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_SurfaceDescriptorDMABuf())))))) {
aActor->FatalError("Error deserializing variant TSurfaceDescriptorDMABuf of union RemoteDecoderVideoSubDescriptor");
return false;
}
// Sentinel = 'TSurfaceDescriptorDMABuf'
if ((!((aMsg)->ReadSentinel(aIter, 1950288172)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TSurfaceDescriptorDMABuf of union RemoteDecoderVideoSubDescriptor");
return false;
}
return true;
}
case union__::Tnull_t:
{
mozilla::null_t tmp = mozilla::null_t();
(*(aVar)) = std::move(tmp);
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_null_t())))))) {
aActor->FatalError("Error deserializing variant Tnull_t of union RemoteDecoderVideoSubDescriptor");
return false;
}
// Sentinel = 'Tnull_t'
if ((!((aMsg)->ReadSentinel(aIter, 190186211)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant Tnull_t of union RemoteDecoderVideoSubDescriptor");
return false;
}
return true;
}
default:
{
aActor->FatalError("unknown union type");
return false;
}
}
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceDescriptorRemoteDecoder|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorRemoteDecoder::operator==(const SurfaceDescriptorRemoteDecoder& _o) const -> bool
{
if ((!((handle()) == ((_o).handle())))) {
return false;
}
if ((!((subdesc()) == ((_o).subdesc())))) {
return false;
}
if ((!((source()) == ((_o).source())))) {
return false;
}
return true;
}
auto SurfaceDescriptorRemoteDecoder::operator!=(const SurfaceDescriptorRemoteDecoder& _o) const -> bool
{
return (!(operator==(_o)));
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorRemoteDecoder>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).subdesc());
// Sentinel = 'subdesc'
(aMsg)->WriteSentinel(198968042);
WriteIPDLParam(aMsg, aActor, (aVar).source());
// Sentinel = 'source'
(aMsg)->WriteSentinel(154665618);
(aMsg)->WriteBytes((&((aVar).handle())), 8);
// Sentinel = 'handle'
(aMsg)->WriteSentinel(142344813);
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorRemoteDecoder>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->subdesc())))))) {
aActor->FatalError("Error deserializing 'subdesc' (RemoteDecoderVideoSubDescriptor) member of 'SurfaceDescriptorRemoteDecoder'");
return false;
}
// Sentinel = 'subdesc'
if ((!((aMsg)->ReadSentinel(aIter, 198968042)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'subdesc' (RemoteDecoderVideoSubDescriptor) member of 'SurfaceDescriptorRemoteDecoder'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->source())))))) {
aActor->FatalError("Error deserializing 'source' (MaybeVideoBridgeSource) member of 'SurfaceDescriptorRemoteDecoder'");
return false;
}
// Sentinel = 'source'
if ((!((aMsg)->ReadSentinel(aIter, 154665618)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'source' (MaybeVideoBridgeSource) member of 'SurfaceDescriptorRemoteDecoder'");
return false;
}
if ((!((aMsg)->ReadBytesInto(aIter, (&((aVar)->handle())), 8)))) {
aActor->FatalError("Error bulk reading fields from uint64_t");
return false;
}
// Sentinel = 'handle'
if ((!((aMsg)->ReadSentinel(aIter, 142344813)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint64_t");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct SurfaceDescriptorPlugin|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorPlugin::operator==(const SurfaceDescriptorPlugin& _o) const -> bool
{
if ((!((id()) == ((_o).id())))) {
return false;
}
if ((!((pluginSurf()) == ((_o).pluginSurf())))) {
return false;
}
if ((!((displaySurf()) == ((_o).displaySurf())))) {
return false;
}
return true;
}
auto SurfaceDescriptorPlugin::operator!=(const SurfaceDescriptorPlugin& _o) const -> bool
{
return (!(operator==(_o)));
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorPlugin>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
WriteIPDLParam(aMsg, aActor, (aVar).pluginSurf());
// Sentinel = 'pluginSurf'
(aMsg)->WriteSentinel(390071344);
WriteIPDLParam(aMsg, aActor, (aVar).displaySurf());
// Sentinel = 'displaySurf'
(aMsg)->WriteSentinel(461898903);
(aMsg)->WriteBytes((&((aVar).id())), 8);
// Sentinel = 'id'
(aMsg)->WriteSentinel(20447438);
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorPlugin>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->pluginSurf())))))) {
aActor->FatalError("Error deserializing 'pluginSurf' (SurfaceDescriptorD3D10) member of 'SurfaceDescriptorPlugin'");
return false;
}
// Sentinel = 'pluginSurf'
if ((!((aMsg)->ReadSentinel(aIter, 390071344)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'pluginSurf' (SurfaceDescriptorD3D10) member of 'SurfaceDescriptorPlugin'");
return false;
}
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->displaySurf())))))) {
aActor->FatalError("Error deserializing 'displaySurf' (SurfaceDescriptorD3D10) member of 'SurfaceDescriptorPlugin'");
return false;
}
// Sentinel = 'displaySurf'
if ((!((aMsg)->ReadSentinel(aIter, 461898903)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'displaySurf' (SurfaceDescriptorD3D10) member of 'SurfaceDescriptorPlugin'");
return false;
}
if ((!((aMsg)->ReadBytesInto(aIter, (&((aVar)->id())), 8)))) {
aActor->FatalError("Error bulk reading fields from uint64_t");
return false;
}
// Sentinel = 'id'
if ((!((aMsg)->ReadSentinel(aIter, 20447438)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint64_t");
return false;
}
return true;
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |union SurfaceDescriptorGPUVideo|
//
namespace mozilla {
namespace layers {
auto SurfaceDescriptorGPUVideo::MaybeDestroy(Type aNewType) -> bool
{
if ((mType) == (T__None)) {
return true;
}
if ((mType) == (aNewType)) {
return false;
}
switch (mType) {
case TSurfaceDescriptorRemoteDecoder:
{
(ptr_SurfaceDescriptorRemoteDecoder())->~SurfaceDescriptorRemoteDecoder__tdef();
break;
}
case TSurfaceDescriptorPlugin:
{
(ptr_SurfaceDescriptorPlugin())->~SurfaceDescriptorPlugin__tdef();
break;
}
default:
{
mozilla::ipc::LogicError("not reached");
break;
}
}
return true;
}
MOZ_IMPLICIT SurfaceDescriptorGPUVideo::SurfaceDescriptorGPUVideo(const SurfaceDescriptorRemoteDecoder& aOther)
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorRemoteDecoder()) SurfaceDescriptorRemoteDecoder(aOther);
mType = TSurfaceDescriptorRemoteDecoder;
}
MOZ_IMPLICIT SurfaceDescriptorGPUVideo::SurfaceDescriptorGPUVideo(SurfaceDescriptorRemoteDecoder&& aOther)
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorRemoteDecoder()) SurfaceDescriptorRemoteDecoder(std::move(aOther));
mType = TSurfaceDescriptorRemoteDecoder;
}
MOZ_IMPLICIT SurfaceDescriptorGPUVideo::SurfaceDescriptorGPUVideo(const SurfaceDescriptorPlugin& aOther)
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorPlugin()) SurfaceDescriptorPlugin(aOther);
mType = TSurfaceDescriptorPlugin;
}
MOZ_IMPLICIT SurfaceDescriptorGPUVideo::SurfaceDescriptorGPUVideo(SurfaceDescriptorPlugin&& aOther)
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorPlugin()) SurfaceDescriptorPlugin(std::move(aOther));
mType = TSurfaceDescriptorPlugin;
}
MOZ_IMPLICIT SurfaceDescriptorGPUVideo::SurfaceDescriptorGPUVideo(const SurfaceDescriptorGPUVideo& aOther)
{
(aOther).AssertSanity();
switch ((aOther).type()) {
case TSurfaceDescriptorRemoteDecoder:
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorRemoteDecoder()) SurfaceDescriptorRemoteDecoder((aOther).get_SurfaceDescriptorRemoteDecoder());
break;
}
case TSurfaceDescriptorPlugin:
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorPlugin()) SurfaceDescriptorPlugin((aOther).get_SurfaceDescriptorPlugin());
break;
}
case T__None:
{
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
return;
}
}
mType = (aOther).type();
}
MOZ_IMPLICIT SurfaceDescriptorGPUVideo::SurfaceDescriptorGPUVideo(SurfaceDescriptorGPUVideo&& aOther)
{
(aOther).AssertSanity();
Type t = (aOther).type();
switch (t) {
case TSurfaceDescriptorRemoteDecoder:
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorRemoteDecoder()) SurfaceDescriptorRemoteDecoder(std::move((aOther).get_SurfaceDescriptorRemoteDecoder()));
static_cast<void>((aOther).MaybeDestroy(T__None));
break;
}
case TSurfaceDescriptorPlugin:
{
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorPlugin()) SurfaceDescriptorPlugin(std::move((aOther).get_SurfaceDescriptorPlugin()));
static_cast<void>((aOther).MaybeDestroy(T__None));
break;
}
case T__None:
{
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
return;
}
}
(aOther).mType = T__None;
mType = t;
}
SurfaceDescriptorGPUVideo::~SurfaceDescriptorGPUVideo()
{
static_cast<void>(MaybeDestroy(T__None));
}
auto SurfaceDescriptorGPUVideo::operator=(const SurfaceDescriptorRemoteDecoder& aRhs) -> SurfaceDescriptorGPUVideo&
{
if (MaybeDestroy(TSurfaceDescriptorRemoteDecoder)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorRemoteDecoder()) SurfaceDescriptorRemoteDecoder;
}
(*(ptr_SurfaceDescriptorRemoteDecoder())) = aRhs;
mType = TSurfaceDescriptorRemoteDecoder;
return (*(this));
}
auto SurfaceDescriptorGPUVideo::operator=(SurfaceDescriptorRemoteDecoder&& aRhs) -> SurfaceDescriptorGPUVideo&
{
if (MaybeDestroy(TSurfaceDescriptorRemoteDecoder)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorRemoteDecoder()) SurfaceDescriptorRemoteDecoder;
}
(*(ptr_SurfaceDescriptorRemoteDecoder())) = std::move(aRhs);
mType = TSurfaceDescriptorRemoteDecoder;
return (*(this));
}
auto SurfaceDescriptorGPUVideo::operator=(const SurfaceDescriptorPlugin& aRhs) -> SurfaceDescriptorGPUVideo&
{
if (MaybeDestroy(TSurfaceDescriptorPlugin)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorPlugin()) SurfaceDescriptorPlugin;
}
(*(ptr_SurfaceDescriptorPlugin())) = aRhs;
mType = TSurfaceDescriptorPlugin;
return (*(this));
}
auto SurfaceDescriptorGPUVideo::operator=(SurfaceDescriptorPlugin&& aRhs) -> SurfaceDescriptorGPUVideo&
{
if (MaybeDestroy(TSurfaceDescriptorPlugin)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorPlugin()) SurfaceDescriptorPlugin;
}
(*(ptr_SurfaceDescriptorPlugin())) = std::move(aRhs);
mType = TSurfaceDescriptorPlugin;
return (*(this));
}
auto SurfaceDescriptorGPUVideo::operator=(const SurfaceDescriptorGPUVideo& aRhs) -> SurfaceDescriptorGPUVideo&
{
(aRhs).AssertSanity();
Type t = (aRhs).type();
switch (t) {
case TSurfaceDescriptorRemoteDecoder:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorRemoteDecoder()) SurfaceDescriptorRemoteDecoder;
}
(*(ptr_SurfaceDescriptorRemoteDecoder())) = (aRhs).get_SurfaceDescriptorRemoteDecoder();
break;
}
case TSurfaceDescriptorPlugin:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorPlugin()) SurfaceDescriptorPlugin;
}
(*(ptr_SurfaceDescriptorPlugin())) = (aRhs).get_SurfaceDescriptorPlugin();
break;
}
case T__None:
{
static_cast<void>(MaybeDestroy(t));
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
break;
}
}
mType = t;
return (*(this));
}
auto SurfaceDescriptorGPUVideo::operator=(SurfaceDescriptorGPUVideo&& aRhs) -> SurfaceDescriptorGPUVideo&
{
(aRhs).AssertSanity();
Type t = (aRhs).type();
switch (t) {
case TSurfaceDescriptorRemoteDecoder:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorRemoteDecoder()) SurfaceDescriptorRemoteDecoder;
}
(*(ptr_SurfaceDescriptorRemoteDecoder())) = std::move((aRhs).get_SurfaceDescriptorRemoteDecoder());
static_cast<void>((aRhs).MaybeDestroy(T__None));
break;
}
case TSurfaceDescriptorPlugin:
{
if (MaybeDestroy(t)) {
new (mozilla::KnownNotNull, ptr_SurfaceDescriptorPlugin()) SurfaceDescriptorPlugin;
}
(*(ptr_SurfaceDescriptorPlugin())) = std::move((aRhs).get_SurfaceDescriptorPlugin());
static_cast<void>((aRhs).MaybeDestroy(T__None));
break;
}
case T__None:
{
static_cast<void>(MaybeDestroy(t));
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
break;
}
}
(aRhs).mType = T__None;
mType = t;
return (*(this));
}
auto SurfaceDescriptorGPUVideo::operator==(const SurfaceDescriptorRemoteDecoder& aRhs) const -> bool
{
return (get_SurfaceDescriptorRemoteDecoder()) == (aRhs);
}
auto SurfaceDescriptorGPUVideo::operator==(const SurfaceDescriptorPlugin& aRhs) const -> bool
{
return (get_SurfaceDescriptorPlugin()) == (aRhs);
}
auto SurfaceDescriptorGPUVideo::operator==(const SurfaceDescriptorGPUVideo& aRhs) const -> bool
{
if ((type()) != ((aRhs).type())) {
return false;
}
switch (type()) {
case TSurfaceDescriptorRemoteDecoder:
{
return (get_SurfaceDescriptorRemoteDecoder()) == ((aRhs).get_SurfaceDescriptorRemoteDecoder());
}
case TSurfaceDescriptorPlugin:
{
return (get_SurfaceDescriptorPlugin()) == ((aRhs).get_SurfaceDescriptorPlugin());
}
default:
{
mozilla::ipc::LogicError("unreached");
return false;
}
}
}
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace ipc {
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorGPUVideo>::Write(
IPC::Message* aMsg,
mozilla::ipc::IProtocol* aActor,
const paramType& aVar) -> void
{
typedef mozilla::layers::SurfaceDescriptorGPUVideo union__;
int type = (aVar).type();
WriteIPDLParam(aMsg, aActor, type);
// Sentinel = 'SurfaceDescriptorGPUVideo'
(aMsg)->WriteSentinel(2149190092);
switch (type) {
case union__::TSurfaceDescriptorRemoteDecoder:
{
WriteIPDLParam(aMsg, aActor, (aVar).get_SurfaceDescriptorRemoteDecoder());
// Sentinel = 'TSurfaceDescriptorRemoteDecoder'
(aMsg)->WriteSentinel(3291155551);
return;
}
case union__::TSurfaceDescriptorPlugin:
{
WriteIPDLParam(aMsg, aActor, (aVar).get_SurfaceDescriptorPlugin());
// Sentinel = 'TSurfaceDescriptorPlugin'
(aMsg)->WriteSentinel(1985022380);
return;
}
default:
{
aActor->FatalError("unknown union type");
return;
}
}
}
auto IPDLParamTraits<mozilla::layers::SurfaceDescriptorGPUVideo>::Read(
const IPC::Message* aMsg,
PickleIterator* aIter,
mozilla::ipc::IProtocol* aActor,
paramType* aVar) -> bool
{
typedef mozilla::layers::SurfaceDescriptorGPUVideo union__;
int type = 0;
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
aActor->FatalError("Error deserializing type of union SurfaceDescriptorGPUVideo");
return false;
}
// Sentinel = 'SurfaceDescriptorGPUVideo'
if ((!((aMsg)->ReadSentinel(aIter, 2149190092)))) {
mozilla::ipc::SentinelReadError("Error deserializing type of union SurfaceDescriptorGPUVideo");
return false;
}
switch (type) {
case union__::TSurfaceDescriptorRemoteDecoder:
{
mozilla::layers::SurfaceDescriptorRemoteDecoder tmp = mozilla::layers::SurfaceDescriptorRemoteDecoder();
(*(aVar)) = std::move(tmp);
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_SurfaceDescriptorRemoteDecoder())))))) {
aActor->FatalError("Error deserializing variant TSurfaceDescriptorRemoteDecoder of union SurfaceDescriptorGPUVideo");
return false;
}
// Sentinel = 'TSurfaceDescriptorRemoteDecoder'
if ((!((aMsg)->ReadSentinel(aIter, 3291155551)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TSurfaceDescriptorRemoteDecoder of union SurfaceDescriptorGPUVideo");
return false;
}
return true;
}
case union__::TSurfaceDescriptorPlugin:
{
mozilla::layers::SurfaceDescriptorPlugin tmp = mozilla::layers::SurfaceDescriptorPlugin();
(*(aVar)) = std::move(tmp);
if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_SurfaceDescriptorPlugin())))))) {
aActor->FatalError("Error deserializing variant TSurfaceDescriptorPlugin of union SurfaceDescriptorGPUVideo");
return false;
}
// Sentinel = 'TSurfaceDescriptorPlugin'
if ((!((aMsg)->ReadSentinel(aIter, 1985022380)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TSurfaceDescriptorPlugin of union SurfaceDescriptorGPUVideo");
return false;
}
return true;
}
default:
{
aActor->FatalError("unknown union type");
return false;
}
}
}
} // namespace ipc
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct RGBDescriptor|
//
namespace mozilla {
namespace layers {
auto RGBDescriptor::operator==(const RGBDescriptor& _o) const -> bool
{
if ((!((size()) == ((_o).size())))) {
return false;
}
if ((!((format()) == ((_o).format())))) {