LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PImageBridgeChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 6 1902 0.3 %
Date: 2017-07-14 16:53:18 Functions: 2 131 1.5 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/layers/PImageBridgeChild.h"
       8             : #include "mozilla/layers/CompositorTypes.h"
       9             : #ifdef MOZ_CRASHREPORTER
      10             : #  include "nsXULAppAPI.h"
      11             : #endif
      12             : 
      13             : #include "mozilla/layers/PTextureChild.h"
      14             : #include "mozilla/media/PMediaSystemResourceManagerChild.h"
      15             : 
      16             : #include "nsIFile.h"
      17             : #include "GeckoProfiler.h"
      18             : 
      19             : namespace mozilla {
      20             : namespace layers {
      21             : 
      22             : 
      23           0 : auto PImageBridgeChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      24             : {
      25           0 : }
      26             : 
      27           0 : auto PImageBridgeChild::ProcessingError(
      28             :         Result aCode,
      29             :         const char* aReason) -> void
      30             : {
      31           0 : }
      32             : 
      33           0 : auto PImageBridgeChild::ShouldContinueFromReplyTimeout() -> bool
      34             : {
      35           0 :     return true;
      36             : }
      37             : 
      38           0 : auto PImageBridgeChild::EnteredCxxStack() -> void
      39             : {
      40           0 : }
      41             : 
      42           0 : auto PImageBridgeChild::ExitedCxxStack() -> void
      43             : {
      44           0 : }
      45             : 
      46           0 : auto PImageBridgeChild::EnteredCall() -> void
      47             : {
      48           0 : }
      49             : 
      50           0 : auto PImageBridgeChild::ExitedCall() -> void
      51             : {
      52           0 : }
      53             : 
      54           3 : MOZ_IMPLICIT PImageBridgeChild::PImageBridgeChild() :
      55             :     mozilla::ipc::IToplevelProtocol(PImageBridgeMsgStart, mozilla::ipc::ChildSide),
      56             :     mChannel("PImageBridgeChild", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
      57           3 :     mState(PImageBridge::__Start)
      58             : {
      59           3 :     MOZ_COUNT_CTOR(PImageBridgeChild);
      60           3 : }
      61             : 
      62           0 : PImageBridgeChild::~PImageBridgeChild()
      63             : {
      64           0 :     MOZ_COUNT_DTOR(PImageBridgeChild);
      65           0 : }
      66             : 
      67           0 : auto PImageBridgeChild::ManagedPTextureChild(nsTArray<PTextureChild*>& aArr) const -> void
      68             : {
      69           0 :     (mManagedPTextureChild).ToArray(aArr);
      70           0 : }
      71             : 
      72           0 : auto PImageBridgeChild::ManagedPTextureChild() const -> const ManagedContainer<PTextureChild>&
      73             : {
      74           0 :     return mManagedPTextureChild;
      75             : }
      76             : 
      77           0 : auto PImageBridgeChild::ManagedPMediaSystemResourceManagerChild(nsTArray<PMediaSystemResourceManagerChild*>& aArr) const -> void
      78             : {
      79           0 :     (mManagedPMediaSystemResourceManagerChild).ToArray(aArr);
      80           0 : }
      81             : 
      82           0 : auto PImageBridgeChild::ManagedPMediaSystemResourceManagerChild() const -> const ManagedContainer<PMediaSystemResourceManagerChild>&
      83             : {
      84           0 :     return mManagedPMediaSystemResourceManagerChild;
      85             : }
      86             : 
      87           0 : auto PImageBridgeChild::SendImageBridgeThreadId(const PlatformThreadId& aTreahdId) -> bool
      88             : {
      89           0 :     IPC::Message* msg__ = PImageBridge::Msg_ImageBridgeThreadId(MSG_ROUTING_CONTROL);
      90             : 
      91           0 :     Write(aTreahdId, msg__);
      92             :     // Sentinel = 'aTreahdId'
      93           0 :     (msg__)->WriteSentinel(3120967711);
      94             : 
      95             : 
      96             : 
      97             : 
      98           0 :     if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
      99           0 :         mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     100             :     }
     101           0 :     AUTO_PROFILER_LABEL("PImageBridge::Msg_ImageBridgeThreadId", OTHER);
     102           0 :     PImageBridge::Transition(PImageBridge::Msg_ImageBridgeThreadId__ID, (&(mState)));
     103             : 
     104           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     105           0 :     return sendok__;
     106             : }
     107             : 
     108           0 : auto PImageBridgeChild::SendInitReadLocks(const nsTArray<ReadLockInit>& locks) -> bool
     109             : {
     110           0 :     IPC::Message* msg__ = PImageBridge::Msg_InitReadLocks(MSG_ROUTING_CONTROL);
     111             : 
     112           0 :     Write(locks, msg__);
     113             :     // Sentinel = 'locks'
     114           0 :     (msg__)->WriteSentinel(4169533841);
     115             : 
     116             : 
     117             : 
     118             : 
     119           0 :     if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     120           0 :         mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     121             :     }
     122           0 :     AUTO_PROFILER_LABEL("PImageBridge::Msg_InitReadLocks", OTHER);
     123           0 :     PImageBridge::Transition(PImageBridge::Msg_InitReadLocks__ID, (&(mState)));
     124             : 
     125           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     126           0 :     return sendok__;
     127             : }
     128             : 
     129           0 : auto PImageBridgeChild::SendUpdate(
     130             :         const nsTArray<CompositableOperation>& ops,
     131             :         const nsTArray<OpDestroy>& toDestroy,
     132             :         const uint64_t& fwdTransactionId) -> bool
     133             : {
     134           0 :     IPC::Message* msg__ = PImageBridge::Msg_Update(MSG_ROUTING_CONTROL);
     135             : 
     136           0 :     Write(ops, msg__);
     137             :     // Sentinel = 'ops'
     138           0 :     (msg__)->WriteSentinel(4059743815);
     139           0 :     Write(toDestroy, msg__);
     140             :     // Sentinel = 'toDestroy'
     141           0 :     (msg__)->WriteSentinel(4183172130);
     142           0 :     Write(fwdTransactionId, msg__);
     143             :     // Sentinel = 'fwdTransactionId'
     144           0 :     (msg__)->WriteSentinel(2023976742);
     145             : 
     146             : 
     147             : 
     148             : 
     149           0 :     if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     150           0 :         mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     151             :     }
     152           0 :     AUTO_PROFILER_LABEL("PImageBridge::Msg_Update", OTHER);
     153           0 :     PImageBridge::Transition(PImageBridge::Msg_Update__ID, (&(mState)));
     154             : 
     155           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     156           0 :     return sendok__;
     157             : }
     158             : 
     159           0 : auto PImageBridgeChild::SendWillClose() -> bool
     160             : {
     161           0 :     IPC::Message* msg__ = PImageBridge::Msg_WillClose(MSG_ROUTING_CONTROL);
     162             : 
     163             : 
     164           0 :     (msg__)->set_sync();
     165             : 
     166             : 
     167           0 :     Message reply__;
     168             : 
     169           0 :     if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     170           0 :         mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     171             :     }
     172           0 :     AUTO_PROFILER_LABEL("PImageBridge::Msg_WillClose", OTHER);
     173           0 :     PImageBridge::Transition(PImageBridge::Msg_WillClose__ID, (&(mState)));
     174             : 
     175             :     bool sendok__;
     176             :     {
     177             :         AutoProfilerTracing syncIPCTracer(
     178             :                 "IPC",
     179           0 :                 "PImageBridge::Msg_WillClose");
     180           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     181             :     }
     182           0 :     if ((!(sendok__))) {
     183           0 :         return false;
     184             :     }
     185             : 
     186           0 :     if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     187           0 :         mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     188             :     }
     189             : 
     190           0 :     return true;
     191             : }
     192             : 
     193           0 : auto PImageBridgeChild::SendPTextureConstructor(
     194             :         const SurfaceDescriptor& aSharedData,
     195             :         const LayersBackend& aBackend,
     196             :         const TextureFlags& aTextureFlags,
     197             :         const uint64_t& aSerial,
     198             :         const MaybeExternalImageId& aExternalImageId) -> PTextureChild*
     199             : {
     200           0 :     return SendPTextureConstructor(AllocPTextureChild(aSharedData, aBackend, aTextureFlags, aSerial, aExternalImageId), aSharedData, aBackend, aTextureFlags, aSerial, aExternalImageId);
     201             : }
     202             : 
     203           0 : auto PImageBridgeChild::SendPTextureConstructor(
     204             :         PTextureChild* actor,
     205             :         const SurfaceDescriptor& aSharedData,
     206             :         const LayersBackend& aBackend,
     207             :         const TextureFlags& aTextureFlags,
     208             :         const uint64_t& aSerial,
     209             :         const MaybeExternalImageId& aExternalImageId) -> PTextureChild*
     210             : {
     211           0 :     if ((!(actor))) {
     212           0 :         NS_WARNING("Error constructing actor PTextureChild");
     213           0 :         return nullptr;
     214             :     }
     215           0 :     (actor)->SetManager(this);
     216           0 :     Register(actor);
     217           0 :     (actor)->SetIPCChannel(GetIPCChannel());
     218           0 :     (mManagedPTextureChild).PutEntry(actor);
     219           0 :     (actor)->mState = mozilla::layers::PTexture::__Start;
     220             : 
     221           0 :     IPC::Message* msg__ = PImageBridge::Msg_PTextureConstructor(MSG_ROUTING_CONTROL);
     222             : 
     223           0 :     Write(actor, msg__, false);
     224             :     // Sentinel = 'actor'
     225           0 :     (msg__)->WriteSentinel(875202478);
     226           0 :     Write(aSharedData, msg__);
     227             :     // Sentinel = 'aSharedData'
     228           0 :     (msg__)->WriteSentinel(3013593029);
     229           0 :     Write(aBackend, msg__);
     230             :     // Sentinel = 'aBackend'
     231           0 :     (msg__)->WriteSentinel(2878499283);
     232           0 :     Write(aTextureFlags, msg__);
     233             :     // Sentinel = 'aTextureFlags'
     234           0 :     (msg__)->WriteSentinel(3005687826);
     235           0 :     Write(aSerial, msg__);
     236             :     // Sentinel = 'aSerial'
     237           0 :     (msg__)->WriteSentinel(1247987114);
     238           0 :     Write(aExternalImageId, msg__);
     239             :     // Sentinel = 'aExternalImageId'
     240           0 :     (msg__)->WriteSentinel(2889998824);
     241             : 
     242           0 :     (msg__)->set_constructor();
     243             : 
     244             : 
     245           0 :     if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     246           0 :         mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     247             :     }
     248           0 :     AUTO_PROFILER_LABEL("PImageBridge::Msg_PTextureConstructor", OTHER);
     249           0 :     PImageBridge::Transition(PImageBridge::Msg_PTextureConstructor__ID, (&(mState)));
     250             : 
     251           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     252           0 :     if ((!(sendok__))) {
     253           0 :         FatalError("constructor for actor failed");
     254           0 :         return nullptr;
     255             :     }
     256           0 :     return actor;
     257             : }
     258             : 
     259           0 : auto PImageBridgeChild::SendPMediaSystemResourceManagerConstructor() -> PMediaSystemResourceManagerChild*
     260             : {
     261           0 :     return SendPMediaSystemResourceManagerConstructor(AllocPMediaSystemResourceManagerChild());
     262             : }
     263             : 
     264           0 : auto PImageBridgeChild::SendPMediaSystemResourceManagerConstructor(PMediaSystemResourceManagerChild* actor) -> PMediaSystemResourceManagerChild*
     265             : {
     266           0 :     if ((!(actor))) {
     267           0 :         NS_WARNING("Error constructing actor PMediaSystemResourceManagerChild");
     268           0 :         return nullptr;
     269             :     }
     270           0 :     (actor)->SetManager(this);
     271           0 :     Register(actor);
     272           0 :     (actor)->SetIPCChannel(GetIPCChannel());
     273           0 :     (mManagedPMediaSystemResourceManagerChild).PutEntry(actor);
     274           0 :     (actor)->mState = mozilla::media::PMediaSystemResourceManager::__Start;
     275             : 
     276           0 :     IPC::Message* msg__ = PImageBridge::Msg_PMediaSystemResourceManagerConstructor(MSG_ROUTING_CONTROL);
     277             : 
     278           0 :     Write(actor, msg__, false);
     279             :     // Sentinel = 'actor'
     280           0 :     (msg__)->WriteSentinel(875202478);
     281             : 
     282           0 :     (msg__)->set_constructor();
     283             : 
     284             : 
     285           0 :     if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     286           0 :         mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     287             :     }
     288           0 :     AUTO_PROFILER_LABEL("PImageBridge::Msg_PMediaSystemResourceManagerConstructor", OTHER);
     289           0 :     PImageBridge::Transition(PImageBridge::Msg_PMediaSystemResourceManagerConstructor__ID, (&(mState)));
     290             : 
     291           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     292           0 :     if ((!(sendok__))) {
     293           0 :         FatalError("constructor for actor failed");
     294           0 :         return nullptr;
     295             :     }
     296           0 :     return actor;
     297             : }
     298             : 
     299           0 : auto PImageBridgeChild::SendNewCompositable(
     300             :         const CompositableHandle& aHandle,
     301             :         const TextureInfo& aInfo) -> bool
     302             : {
     303           0 :     IPC::Message* msg__ = PImageBridge::Msg_NewCompositable(MSG_ROUTING_CONTROL);
     304             : 
     305           0 :     Write(aHandle, msg__);
     306             :     // Sentinel = 'aHandle'
     307           0 :     (msg__)->WriteSentinel(2892339440);
     308           0 :     Write(aInfo, msg__);
     309             :     // Sentinel = 'aInfo'
     310           0 :     (msg__)->WriteSentinel(3826123752);
     311             : 
     312           0 :     (msg__)->set_sync();
     313             : 
     314             : 
     315           0 :     Message reply__;
     316             : 
     317           0 :     if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     318           0 :         mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     319             :     }
     320           0 :     AUTO_PROFILER_LABEL("PImageBridge::Msg_NewCompositable", OTHER);
     321           0 :     PImageBridge::Transition(PImageBridge::Msg_NewCompositable__ID, (&(mState)));
     322             : 
     323             :     bool sendok__;
     324             :     {
     325             :         AutoProfilerTracing syncIPCTracer(
     326             :                 "IPC",
     327           0 :                 "PImageBridge::Msg_NewCompositable");
     328           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     329             :     }
     330           0 :     if ((!(sendok__))) {
     331           0 :         return false;
     332             :     }
     333             : 
     334           0 :     if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     335           0 :         mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     336             :     }
     337             : 
     338           0 :     return true;
     339             : }
     340             : 
     341           0 : auto PImageBridgeChild::SendReleaseCompositable(const CompositableHandle& aHandle) -> bool
     342             : {
     343           0 :     IPC::Message* msg__ = PImageBridge::Msg_ReleaseCompositable(MSG_ROUTING_CONTROL);
     344             : 
     345           0 :     Write(aHandle, msg__);
     346             :     // Sentinel = 'aHandle'
     347           0 :     (msg__)->WriteSentinel(2892339440);
     348             : 
     349             : 
     350             : 
     351             : 
     352           0 :     if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     353           0 :         mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     354             :     }
     355           0 :     AUTO_PROFILER_LABEL("PImageBridge::Msg_ReleaseCompositable", OTHER);
     356           0 :     PImageBridge::Transition(PImageBridge::Msg_ReleaseCompositable__ID, (&(mState)));
     357             : 
     358           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     359           0 :     return sendok__;
     360             : }
     361             : 
     362           3 : auto PImageBridgeChild::GetIPCChannel() -> MessageChannel*
     363             : {
     364           3 :     return (&(mChannel));
     365             : }
     366             : 
     367           0 : auto PImageBridgeChild::GetIPCChannel() const -> const MessageChannel*
     368             : {
     369           0 :     return (&(mChannel));
     370             : }
     371             : 
     372           0 : auto PImageBridgeChild::RemoveManagee(
     373             :         int32_t aProtocolId,
     374             :         ProtocolBase* aListener) -> void
     375             : {
     376           0 :     switch (aProtocolId) {
     377             :     case PTextureMsgStart:
     378             :         {
     379           0 :             PTextureChild* actor = static_cast<PTextureChild*>(aListener);
     380           0 :             auto& container = mManagedPTextureChild;
     381           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     382             : 
     383           0 :             (container).RemoveEntry(actor);
     384           0 :             DeallocPTextureChild(actor);
     385           0 :             return;
     386             :         }
     387             :     case PMediaSystemResourceManagerMsgStart:
     388             :         {
     389           0 :             PMediaSystemResourceManagerChild* actor = static_cast<PMediaSystemResourceManagerChild*>(aListener);
     390           0 :             auto& container = mManagedPMediaSystemResourceManagerChild;
     391           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     392             : 
     393           0 :             (container).RemoveEntry(actor);
     394           0 :             DeallocPMediaSystemResourceManagerChild(actor);
     395           0 :             return;
     396             :         }
     397             :     default:
     398             :         {
     399           0 :             FatalError("unreached");
     400           0 :             return;
     401             :         }
     402             :     }
     403             : }
     404             : 
     405           0 : auto PImageBridgeChild::OnMessageReceived(const Message& msg__) -> PImageBridgeChild::Result
     406             : {
     407           0 :     int32_t route__ = (msg__).routing_id();
     408           0 :     if ((MSG_ROUTING_CONTROL) != (route__)) {
     409           0 :         ChannelListener* routed__ = Lookup(route__);
     410           0 :         if ((!(routed__))) {
     411           0 :             return MsgRouteError;
     412             :         }
     413           0 :         return (routed__)->OnMessageReceived(msg__);
     414             :     }
     415             : 
     416           0 :     switch ((msg__).type()) {
     417             :     case PImageBridge::Msg_ParentAsyncMessages__ID:
     418             :         {
     419           0 :             if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     420           0 :                 mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     421             :             }
     422           0 :             AUTO_PROFILER_LABEL("PImageBridge::Msg_ParentAsyncMessages", OTHER);
     423             : 
     424           0 :             PickleIterator iter__(msg__);
     425           0 :             nsTArray<AsyncParentMessageData> aMessages;
     426             : 
     427           0 :             if ((!(Read((&(aMessages)), (&(msg__)), (&(iter__)))))) {
     428           0 :                 FatalError("Error deserializing 'nsTArray'");
     429           0 :                 return MsgValueError;
     430             :             }
     431             :             // Sentinel = 'aMessages'
     432           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1923086976)))) {
     433           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     434           0 :                 return MsgValueError;
     435             :             }
     436           0 :             (msg__).EndRead(iter__, (msg__).type());
     437           0 :             PImageBridge::Transition(PImageBridge::Msg_ParentAsyncMessages__ID, (&(mState)));
     438           0 :             if ((!(RecvParentAsyncMessages(mozilla::Move(aMessages))))) {
     439           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     440             :                 // Error handled in mozilla::ipc::IPCResult
     441           0 :                 return MsgProcessingError;
     442             :             }
     443             : 
     444           0 :             return MsgProcessed;
     445             :         }
     446             :     case PImageBridge::Msg_DidComposite__ID:
     447             :         {
     448           0 :             if (mozilla::ipc::LoggingEnabledFor("PImageBridgeChild")) {
     449           0 :                 mozilla::ipc::LogMessageForProtocol("PImageBridgeChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     450             :             }
     451           0 :             AUTO_PROFILER_LABEL("PImageBridge::Msg_DidComposite", OTHER);
     452             : 
     453           0 :             PickleIterator iter__(msg__);
     454           0 :             nsTArray<ImageCompositeNotification> aNotifications;
     455             : 
     456           0 :             if ((!(Read((&(aNotifications)), (&(msg__)), (&(iter__)))))) {
     457           0 :                 FatalError("Error deserializing 'nsTArray'");
     458           0 :                 return MsgValueError;
     459             :             }
     460             :             // Sentinel = 'aNotifications'
     461           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3779889553)))) {
     462           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     463           0 :                 return MsgValueError;
     464             :             }
     465           0 :             (msg__).EndRead(iter__, (msg__).type());
     466           0 :             PImageBridge::Transition(PImageBridge::Msg_DidComposite__ID, (&(mState)));
     467           0 :             if ((!(RecvDidComposite(mozilla::Move(aNotifications))))) {
     468           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     469             :                 // Error handled in mozilla::ipc::IPCResult
     470           0 :                 return MsgProcessingError;
     471             :             }
     472             : 
     473           0 :             return MsgProcessed;
     474             :         }
     475             :     case PImageBridge::Reply_PTextureConstructor__ID:
     476             :         {
     477           0 :             return MsgProcessed;
     478             :         }
     479             :     case PImageBridge::Reply_PMediaSystemResourceManagerConstructor__ID:
     480             :         {
     481           0 :             return MsgProcessed;
     482             :         }
     483             :     default:
     484             :         {
     485           0 :             return MsgNotKnown;
     486             :         }
     487             :     case SHMEM_CREATED_MESSAGE_TYPE:
     488             :         {
     489           0 :             if ((!(ShmemCreated(msg__)))) {
     490           0 :                 return MsgPayloadError;
     491             :             }
     492           0 :             return MsgProcessed;
     493             :         }
     494             :     case SHMEM_DESTROYED_MESSAGE_TYPE:
     495             :         {
     496           0 :             if ((!(ShmemDestroyed(msg__)))) {
     497           0 :                 return MsgPayloadError;
     498             :             }
     499           0 :             return MsgProcessed;
     500             :         }
     501             :     }
     502             : }
     503             : 
     504           0 : auto PImageBridgeChild::OnMessageReceived(
     505             :         const Message& msg__,
     506             :         Message*& reply__) -> PImageBridgeChild::Result
     507             : {
     508           0 :     int32_t route__ = (msg__).routing_id();
     509           0 :     if ((MSG_ROUTING_CONTROL) != (route__)) {
     510           0 :         ChannelListener* routed__ = Lookup(route__);
     511           0 :         if ((!(routed__))) {
     512           0 :             return MsgRouteError;
     513             :         }
     514           0 :         return (routed__)->OnMessageReceived(msg__, reply__);
     515             :     }
     516             : 
     517           0 :     return MsgNotKnown;
     518             : }
     519             : 
     520           0 : auto PImageBridgeChild::OnCallReceived(
     521             :         const Message& msg__,
     522             :         Message*& reply__) -> PImageBridgeChild::Result
     523             : {
     524           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     525             :     return MsgNotKnown;
     526             : }
     527             : 
     528           0 : auto PImageBridgeChild::GetProtocolTypeId() -> int32_t
     529             : {
     530           0 :     return PImageBridgeMsgStart;
     531             : }
     532             : 
     533           0 : auto PImageBridgeChild::OnChannelClose() -> void
     534             : {
     535           0 :     DestroySubtree(NormalShutdown);
     536           0 :     DeallocSubtree();
     537           0 :     DeallocShmems();
     538           0 :     DeallocPImageBridgeChild();
     539           0 : }
     540             : 
     541           0 : auto PImageBridgeChild::OnChannelError() -> void
     542             : {
     543           0 :     DestroySubtree(AbnormalShutdown);
     544           0 :     DeallocSubtree();
     545           0 :     DeallocShmems();
     546           0 :     DeallocPImageBridgeChild();
     547           0 : }
     548             : 
     549           0 : auto PImageBridgeChild::ProtocolName() const -> const char*
     550             : {
     551           0 :     return "PImageBridgeChild";
     552             : }
     553             : 
     554           0 : auto PImageBridgeChild::DestroySubtree(ActorDestroyReason why) -> void
     555             : {
     556           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
     557             : 
     558             :     {
     559             :         // Recursively shutting down PTexture kids
     560           0 :         nsTArray<PTextureChild*> kids;
     561             :         // Accumulate kids into a stable structure to iterate over
     562           0 :         ManagedPTextureChild(kids);
     563           0 :         for (auto& kid : kids) {
     564             :             // Guarding against a child removing a sibling from the list during the iteration.
     565           0 :             if ((mManagedPTextureChild).Contains(kid)) {
     566           0 :                 (kid)->DestroySubtree(subtreewhy);
     567             :             }
     568             :         }
     569             :     }
     570             :     {
     571             :         // Recursively shutting down PMediaSystemResourceManager kids
     572           0 :         nsTArray<PMediaSystemResourceManagerChild*> kids;
     573             :         // Accumulate kids into a stable structure to iterate over
     574           0 :         ManagedPMediaSystemResourceManagerChild(kids);
     575           0 :         for (auto& kid : kids) {
     576             :             // Guarding against a child removing a sibling from the list during the iteration.
     577           0 :             if ((mManagedPMediaSystemResourceManagerChild).Contains(kid)) {
     578           0 :                 (kid)->DestroySubtree(subtreewhy);
     579             :             }
     580             :         }
     581             :     }
     582             : 
     583             :     // Reject owning pending promises.
     584           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     585             : 
     586             :     // Finally, destroy "us".
     587           0 :     ActorDestroy(why);
     588           0 : }
     589             : 
     590           0 : auto PImageBridgeChild::DeallocSubtree() -> void
     591             : {
     592             :     {
     593             :         // Recursively deleting PTexture kids
     594           0 :         for (auto iter = (mManagedPTextureChild).Iter(); (!((iter).Done())); (iter).Next()) {
     595           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     596             :         }
     597             : 
     598           0 :         for (auto iter = (mManagedPTextureChild).Iter(); (!((iter).Done())); (iter).Next()) {
     599           0 :             DeallocPTextureChild(((iter).Get())->GetKey());
     600             :         }
     601           0 :         (mManagedPTextureChild).Clear();
     602             :     }
     603             :     {
     604             :         // Recursively deleting PMediaSystemResourceManager kids
     605           0 :         for (auto iter = (mManagedPMediaSystemResourceManagerChild).Iter(); (!((iter).Done())); (iter).Next()) {
     606           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     607             :         }
     608             : 
     609           0 :         for (auto iter = (mManagedPMediaSystemResourceManagerChild).Iter(); (!((iter).Done())); (iter).Next()) {
     610           0 :             DeallocPMediaSystemResourceManagerChild(((iter).Get())->GetKey());
     611             :         }
     612           0 :         (mManagedPMediaSystemResourceManagerChild).Clear();
     613             :     }
     614           0 : }
     615             : 
     616           0 : auto PImageBridgeChild::DeallocPImageBridgeChild() -> void
     617             : {
     618           0 : }
     619             : 
     620           0 : auto PImageBridgeChild::Write(
     621             :         const SurfaceDescriptor& v__,
     622             :         Message* msg__) -> void
     623             : {
     624             :     typedef SurfaceDescriptor type__;
     625           0 :     Write(int((v__).type()), msg__);
     626             :     // Sentinel = 'SurfaceDescriptor'
     627           0 :     (msg__)->WriteSentinel(1058499359);
     628             : 
     629           0 :     switch ((v__).type()) {
     630             :     case type__::TSurfaceDescriptorBuffer:
     631             :         {
     632           0 :             Write((v__).get_SurfaceDescriptorBuffer(), msg__);
     633             :             // Sentinel = 'TSurfaceDescriptorBuffer'
     634           0 :             (msg__)->WriteSentinel(2202696360);
     635           0 :             return;
     636             :         }
     637             :     case type__::TSurfaceDescriptorDIB:
     638             :         {
     639           0 :             Write((v__).get_SurfaceDescriptorDIB(), msg__);
     640             :             // Sentinel = 'TSurfaceDescriptorDIB'
     641           0 :             (msg__)->WriteSentinel(998410538);
     642           0 :             return;
     643             :         }
     644             :     case type__::TSurfaceDescriptorD3D10:
     645             :         {
     646           0 :             Write((v__).get_SurfaceDescriptorD3D10(), msg__);
     647             :             // Sentinel = 'TSurfaceDescriptorD3D10'
     648           0 :             (msg__)->WriteSentinel(2753564567);
     649           0 :             return;
     650             :         }
     651             :     case type__::TSurfaceDescriptorFileMapping:
     652             :         {
     653           0 :             Write((v__).get_SurfaceDescriptorFileMapping(), msg__);
     654             :             // Sentinel = 'TSurfaceDescriptorFileMapping'
     655           0 :             (msg__)->WriteSentinel(722196935);
     656           0 :             return;
     657             :         }
     658             :     case type__::TSurfaceDescriptorDXGIYCbCr:
     659             :         {
     660           0 :             Write((v__).get_SurfaceDescriptorDXGIYCbCr(), msg__);
     661             :             // Sentinel = 'TSurfaceDescriptorDXGIYCbCr'
     662           0 :             (msg__)->WriteSentinel(3061212892);
     663           0 :             return;
     664             :         }
     665             :     case type__::TSurfaceDescriptorX11:
     666             :         {
     667           0 :             Write((v__).get_SurfaceDescriptorX11(), msg__);
     668             :             // Sentinel = 'TSurfaceDescriptorX11'
     669           0 :             (msg__)->WriteSentinel(3923930613);
     670           0 :             return;
     671             :         }
     672             :     case type__::TSurfaceTextureDescriptor:
     673             :         {
     674           0 :             Write((v__).get_SurfaceTextureDescriptor(), msg__);
     675             :             // Sentinel = 'TSurfaceTextureDescriptor'
     676           0 :             (msg__)->WriteSentinel(2253946800);
     677           0 :             return;
     678             :         }
     679             :     case type__::TEGLImageDescriptor:
     680             :         {
     681           0 :             Write((v__).get_EGLImageDescriptor(), msg__);
     682             :             // Sentinel = 'TEGLImageDescriptor'
     683           0 :             (msg__)->WriteSentinel(2680446099);
     684           0 :             return;
     685             :         }
     686             :     case type__::TSurfaceDescriptorMacIOSurface:
     687             :         {
     688           0 :             Write((v__).get_SurfaceDescriptorMacIOSurface(), msg__);
     689             :             // Sentinel = 'TSurfaceDescriptorMacIOSurface'
     690           0 :             (msg__)->WriteSentinel(4267688786);
     691           0 :             return;
     692             :         }
     693             :     case type__::TSurfaceDescriptorSharedGLTexture:
     694             :         {
     695           0 :             Write((v__).get_SurfaceDescriptorSharedGLTexture(), msg__);
     696             :             // Sentinel = 'TSurfaceDescriptorSharedGLTexture'
     697           0 :             (msg__)->WriteSentinel(4169514976);
     698           0 :             return;
     699             :         }
     700             :     case type__::TSurfaceDescriptorGPUVideo:
     701             :         {
     702           0 :             Write((v__).get_SurfaceDescriptorGPUVideo(), msg__);
     703             :             // Sentinel = 'TSurfaceDescriptorGPUVideo'
     704           0 :             (msg__)->WriteSentinel(2406892431);
     705           0 :             return;
     706             :         }
     707             :     case type__::Tnull_t:
     708             :         {
     709           0 :             Write((v__).get_null_t(), msg__);
     710             :             // Sentinel = 'Tnull_t'
     711           0 :             (msg__)->WriteSentinel(3731137201);
     712           0 :             return;
     713             :         }
     714             :     default:
     715             :         {
     716           0 :             FatalError("unknown union type");
     717           0 :             return;
     718             :         }
     719             :     }
     720             : }
     721             : 
     722           0 : auto PImageBridgeChild::Read(
     723             :         SurfaceDescriptor* v__,
     724             :         const Message* msg__,
     725             :         PickleIterator* iter__) -> bool
     726             : {
     727             :     typedef SurfaceDescriptor type__;
     728             :     int type;
     729           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     730           0 :         mozilla::ipc::UnionTypeReadError("SurfaceDescriptor");
     731           0 :         return false;
     732             :     }
     733             :     // Sentinel = 'SurfaceDescriptor'
     734           0 :     if ((!((msg__)->ReadSentinel(iter__, 1058499359)))) {
     735           0 :         mozilla::ipc::SentinelReadError("SurfaceDescriptor");
     736           0 :         return false;
     737             :     }
     738             : 
     739           0 :     switch (type) {
     740             :     case type__::TSurfaceDescriptorBuffer:
     741             :         {
     742           0 :             SurfaceDescriptorBuffer tmp = SurfaceDescriptorBuffer();
     743           0 :             (*(v__)) = tmp;
     744           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorBuffer())), msg__, iter__)))) {
     745           0 :                 FatalError("Error deserializing Union type");
     746           0 :                 return false;
     747             :             }
     748             :             // Sentinel = 'TSurfaceDescriptorBuffer'
     749           0 :             if ((!((msg__)->ReadSentinel(iter__, 2202696360)))) {
     750           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     751           0 :                 return false;
     752             :             }
     753           0 :             return true;
     754             :         }
     755             :     case type__::TSurfaceDescriptorDIB:
     756             :         {
     757           0 :             SurfaceDescriptorDIB tmp = SurfaceDescriptorDIB();
     758           0 :             (*(v__)) = tmp;
     759           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorDIB())), msg__, iter__)))) {
     760           0 :                 FatalError("Error deserializing Union type");
     761           0 :                 return false;
     762             :             }
     763             :             // Sentinel = 'TSurfaceDescriptorDIB'
     764           0 :             if ((!((msg__)->ReadSentinel(iter__, 998410538)))) {
     765           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     766           0 :                 return false;
     767             :             }
     768           0 :             return true;
     769             :         }
     770             :     case type__::TSurfaceDescriptorD3D10:
     771             :         {
     772           0 :             SurfaceDescriptorD3D10 tmp = SurfaceDescriptorD3D10();
     773           0 :             (*(v__)) = tmp;
     774           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorD3D10())), msg__, iter__)))) {
     775           0 :                 FatalError("Error deserializing Union type");
     776           0 :                 return false;
     777             :             }
     778             :             // Sentinel = 'TSurfaceDescriptorD3D10'
     779           0 :             if ((!((msg__)->ReadSentinel(iter__, 2753564567)))) {
     780           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     781           0 :                 return false;
     782             :             }
     783           0 :             return true;
     784             :         }
     785             :     case type__::TSurfaceDescriptorFileMapping:
     786             :         {
     787           0 :             SurfaceDescriptorFileMapping tmp = SurfaceDescriptorFileMapping();
     788           0 :             (*(v__)) = tmp;
     789           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorFileMapping())), msg__, iter__)))) {
     790           0 :                 FatalError("Error deserializing Union type");
     791           0 :                 return false;
     792             :             }
     793             :             // Sentinel = 'TSurfaceDescriptorFileMapping'
     794           0 :             if ((!((msg__)->ReadSentinel(iter__, 722196935)))) {
     795           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     796           0 :                 return false;
     797             :             }
     798           0 :             return true;
     799             :         }
     800             :     case type__::TSurfaceDescriptorDXGIYCbCr:
     801             :         {
     802           0 :             SurfaceDescriptorDXGIYCbCr tmp = SurfaceDescriptorDXGIYCbCr();
     803           0 :             (*(v__)) = tmp;
     804           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorDXGIYCbCr())), msg__, iter__)))) {
     805           0 :                 FatalError("Error deserializing Union type");
     806           0 :                 return false;
     807             :             }
     808             :             // Sentinel = 'TSurfaceDescriptorDXGIYCbCr'
     809           0 :             if ((!((msg__)->ReadSentinel(iter__, 3061212892)))) {
     810           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     811           0 :                 return false;
     812             :             }
     813           0 :             return true;
     814             :         }
     815             :     case type__::TSurfaceDescriptorX11:
     816             :         {
     817           0 :             SurfaceDescriptorX11 tmp = SurfaceDescriptorX11();
     818           0 :             (*(v__)) = tmp;
     819           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorX11())), msg__, iter__)))) {
     820           0 :                 FatalError("Error deserializing Union type");
     821           0 :                 return false;
     822             :             }
     823             :             // Sentinel = 'TSurfaceDescriptorX11'
     824           0 :             if ((!((msg__)->ReadSentinel(iter__, 3923930613)))) {
     825           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     826           0 :                 return false;
     827             :             }
     828           0 :             return true;
     829             :         }
     830             :     case type__::TSurfaceTextureDescriptor:
     831             :         {
     832           0 :             SurfaceTextureDescriptor tmp = SurfaceTextureDescriptor();
     833           0 :             (*(v__)) = tmp;
     834           0 :             if ((!(Read((&((v__)->get_SurfaceTextureDescriptor())), msg__, iter__)))) {
     835           0 :                 FatalError("Error deserializing Union type");
     836           0 :                 return false;
     837             :             }
     838             :             // Sentinel = 'TSurfaceTextureDescriptor'
     839           0 :             if ((!((msg__)->ReadSentinel(iter__, 2253946800)))) {
     840           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     841           0 :                 return false;
     842             :             }
     843           0 :             return true;
     844             :         }
     845             :     case type__::TEGLImageDescriptor:
     846             :         {
     847           0 :             EGLImageDescriptor tmp = EGLImageDescriptor();
     848           0 :             (*(v__)) = tmp;
     849           0 :             if ((!(Read((&((v__)->get_EGLImageDescriptor())), msg__, iter__)))) {
     850           0 :                 FatalError("Error deserializing Union type");
     851           0 :                 return false;
     852             :             }
     853             :             // Sentinel = 'TEGLImageDescriptor'
     854           0 :             if ((!((msg__)->ReadSentinel(iter__, 2680446099)))) {
     855           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     856           0 :                 return false;
     857             :             }
     858           0 :             return true;
     859             :         }
     860             :     case type__::TSurfaceDescriptorMacIOSurface:
     861             :         {
     862           0 :             SurfaceDescriptorMacIOSurface tmp = SurfaceDescriptorMacIOSurface();
     863           0 :             (*(v__)) = tmp;
     864           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorMacIOSurface())), msg__, iter__)))) {
     865           0 :                 FatalError("Error deserializing Union type");
     866           0 :                 return false;
     867             :             }
     868             :             // Sentinel = 'TSurfaceDescriptorMacIOSurface'
     869           0 :             if ((!((msg__)->ReadSentinel(iter__, 4267688786)))) {
     870           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     871           0 :                 return false;
     872             :             }
     873           0 :             return true;
     874             :         }
     875             :     case type__::TSurfaceDescriptorSharedGLTexture:
     876             :         {
     877           0 :             SurfaceDescriptorSharedGLTexture tmp = SurfaceDescriptorSharedGLTexture();
     878           0 :             (*(v__)) = tmp;
     879           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorSharedGLTexture())), msg__, iter__)))) {
     880           0 :                 FatalError("Error deserializing Union type");
     881           0 :                 return false;
     882             :             }
     883             :             // Sentinel = 'TSurfaceDescriptorSharedGLTexture'
     884           0 :             if ((!((msg__)->ReadSentinel(iter__, 4169514976)))) {
     885           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     886           0 :                 return false;
     887             :             }
     888           0 :             return true;
     889             :         }
     890             :     case type__::TSurfaceDescriptorGPUVideo:
     891             :         {
     892           0 :             SurfaceDescriptorGPUVideo tmp = SurfaceDescriptorGPUVideo();
     893           0 :             (*(v__)) = tmp;
     894           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorGPUVideo())), msg__, iter__)))) {
     895           0 :                 FatalError("Error deserializing Union type");
     896           0 :                 return false;
     897             :             }
     898             :             // Sentinel = 'TSurfaceDescriptorGPUVideo'
     899           0 :             if ((!((msg__)->ReadSentinel(iter__, 2406892431)))) {
     900           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     901           0 :                 return false;
     902             :             }
     903           0 :             return true;
     904             :         }
     905             :     case type__::Tnull_t:
     906             :         {
     907             :             null_t tmp = null_t();
     908           0 :             (*(v__)) = tmp;
     909           0 :             if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
     910           0 :                 FatalError("Error deserializing Union type");
     911           0 :                 return false;
     912             :             }
     913             :             // Sentinel = 'Tnull_t'
     914           0 :             if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
     915           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     916           0 :                 return false;
     917             :             }
     918           0 :             return true;
     919             :         }
     920             :     default:
     921             :         {
     922           0 :             FatalError("unknown union type");
     923           0 :             return false;
     924             :         }
     925             :     }
     926             : }
     927             : 
     928           0 : auto PImageBridgeChild::Write(
     929             :         const OpPaintTextureRegion& v__,
     930             :         Message* msg__) -> void
     931             : {
     932           0 :     Write((v__).bufferData(), msg__);
     933             :     // Sentinel = 'bufferData'
     934           0 :     (msg__)->WriteSentinel(1624783476);
     935           0 :     Write((v__).updatedRegion(), msg__);
     936             :     // Sentinel = 'updatedRegion'
     937           0 :     (msg__)->WriteSentinel(2578696480);
     938           0 : }
     939             : 
     940           0 : auto PImageBridgeChild::Read(
     941             :         OpPaintTextureRegion* v__,
     942             :         const Message* msg__,
     943             :         PickleIterator* iter__) -> bool
     944             : {
     945           0 :     if ((!(Read((&((v__)->bufferData())), msg__, iter__)))) {
     946           0 :         FatalError("Error deserializing 'bufferData' (ThebesBufferData) member of 'OpPaintTextureRegion'");
     947           0 :         return false;
     948             :     }
     949             :     // Sentinel = 'bufferData'
     950           0 :     if ((!((msg__)->ReadSentinel(iter__, 1624783476)))) {
     951           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bufferData' (ThebesBufferData) member of 'OpPaintTextureRegion'");
     952           0 :         return false;
     953             :     }
     954           0 :     if ((!(Read((&((v__)->updatedRegion())), msg__, iter__)))) {
     955           0 :         FatalError("Error deserializing 'updatedRegion' (nsIntRegion) member of 'OpPaintTextureRegion'");
     956           0 :         return false;
     957             :     }
     958             :     // Sentinel = 'updatedRegion'
     959           0 :     if ((!((msg__)->ReadSentinel(iter__, 2578696480)))) {
     960           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'updatedRegion' (nsIntRegion) member of 'OpPaintTextureRegion'");
     961           0 :         return false;
     962             :     }
     963           0 :     return true;
     964             : }
     965             : 
     966           0 : auto PImageBridgeChild::Write(
     967             :         const nsTArray<ReadLockInit>& v__,
     968             :         Message* msg__) -> void
     969             : {
     970           0 :     uint32_t length = (v__).Length();
     971           0 :     Write(length, msg__);
     972             :     // Sentinel = ('length', 'ReadLockInit[]')
     973           0 :     (msg__)->WriteSentinel(3010682310);
     974             : 
     975           0 :     for (auto& elem : v__) {
     976           0 :         Write(elem, msg__);
     977             :         // Sentinel = 'ReadLockInit[]'
     978           0 :         (msg__)->WriteSentinel(1659602585);
     979             :     }
     980           0 : }
     981             : 
     982           0 : auto PImageBridgeChild::Read(
     983             :         nsTArray<ReadLockInit>* v__,
     984             :         const Message* msg__,
     985             :         PickleIterator* iter__) -> bool
     986             : {
     987           0 :     nsTArray<ReadLockInit> fa;
     988             :     uint32_t length;
     989           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     990           0 :         mozilla::ipc::ArrayLengthReadError("ReadLockInit[]");
     991           0 :         return false;
     992             :     }
     993             :     // Sentinel = ('length', 'ReadLockInit[]')
     994           0 :     if ((!((msg__)->ReadSentinel(iter__, 3010682310)))) {
     995           0 :         mozilla::ipc::SentinelReadError("ReadLockInit[]");
     996           0 :         return false;
     997             :     }
     998             : 
     999           0 :     ReadLockInit* elems = (fa).AppendElements(length);
    1000           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1001           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1002           0 :             FatalError("Error deserializing 'ReadLockInit[i]'");
    1003           0 :             return false;
    1004             :         }
    1005             :         // Sentinel = 'ReadLockInit[]'
    1006           0 :         if ((!((msg__)->ReadSentinel(iter__, 1659602585)))) {
    1007           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'ReadLockInit[i]'");
    1008           0 :             return false;
    1009             :         }
    1010             :     }
    1011           0 :     (v__)->SwapElements(fa);
    1012           0 :     return true;
    1013             : }
    1014             : 
    1015           0 : auto PImageBridgeChild::Write(
    1016             :         const OpDestroy& v__,
    1017             :         Message* msg__) -> void
    1018             : {
    1019             :     typedef OpDestroy type__;
    1020           0 :     Write(int((v__).type()), msg__);
    1021             :     // Sentinel = 'OpDestroy'
    1022           0 :     (msg__)->WriteSentinel(3796861956);
    1023             : 
    1024           0 :     switch ((v__).type()) {
    1025             :     case type__::TPTextureParent:
    1026             :         {
    1027           0 :             FatalError("wrong side!");
    1028           0 :             return;
    1029             :         }
    1030             :     case type__::TPTextureChild:
    1031             :         {
    1032           0 :             Write((v__).get_PTextureChild(), msg__, false);
    1033             :             // Sentinel = 'TPTextureChild'
    1034           0 :             (msg__)->WriteSentinel(3251900187);
    1035           0 :             return;
    1036             :         }
    1037             :     case type__::TCompositableHandle:
    1038             :         {
    1039           0 :             Write((v__).get_CompositableHandle(), msg__);
    1040             :             // Sentinel = 'TCompositableHandle'
    1041           0 :             (msg__)->WriteSentinel(4258010777);
    1042           0 :             return;
    1043             :         }
    1044             :     default:
    1045             :         {
    1046           0 :             FatalError("unknown union type");
    1047           0 :             return;
    1048             :         }
    1049             :     }
    1050             : }
    1051             : 
    1052           0 : auto PImageBridgeChild::Read(
    1053             :         OpDestroy* v__,
    1054             :         const Message* msg__,
    1055             :         PickleIterator* iter__) -> bool
    1056             : {
    1057             :     typedef OpDestroy type__;
    1058             :     int type;
    1059           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1060           0 :         mozilla::ipc::UnionTypeReadError("OpDestroy");
    1061           0 :         return false;
    1062             :     }
    1063             :     // Sentinel = 'OpDestroy'
    1064           0 :     if ((!((msg__)->ReadSentinel(iter__, 3796861956)))) {
    1065           0 :         mozilla::ipc::SentinelReadError("OpDestroy");
    1066           0 :         return false;
    1067             :     }
    1068             : 
    1069           0 :     switch (type) {
    1070             :     case type__::TPTextureParent:
    1071             :         {
    1072           0 :             PTextureChild* tmp = nullptr;
    1073           0 :             (*(v__)) = tmp;
    1074           0 :             if ((!(Read((&((v__)->get_PTextureChild())), msg__, iter__, false)))) {
    1075           0 :                 FatalError("Error deserializing Union type");
    1076           0 :                 return false;
    1077             :             }
    1078             :             // Sentinel = 'TPTextureParent'
    1079           0 :             if ((!((msg__)->ReadSentinel(iter__, 896696938)))) {
    1080           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1081           0 :                 return false;
    1082             :             }
    1083           0 :             return true;
    1084             :         }
    1085             :     case type__::TPTextureChild:
    1086             :         {
    1087           0 :             return false;
    1088             :         }
    1089             :     case type__::TCompositableHandle:
    1090             :         {
    1091           0 :             CompositableHandle tmp = CompositableHandle();
    1092           0 :             (*(v__)) = tmp;
    1093           0 :             if ((!(Read((&((v__)->get_CompositableHandle())), msg__, iter__)))) {
    1094           0 :                 FatalError("Error deserializing Union type");
    1095           0 :                 return false;
    1096             :             }
    1097             :             // Sentinel = 'TCompositableHandle'
    1098           0 :             if ((!((msg__)->ReadSentinel(iter__, 4258010777)))) {
    1099           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1100           0 :                 return false;
    1101             :             }
    1102           0 :             return true;
    1103             :         }
    1104             :     default:
    1105             :         {
    1106           0 :             FatalError("unknown union type");
    1107           0 :             return false;
    1108             :         }
    1109             :     }
    1110             : }
    1111             : 
    1112           0 : auto PImageBridgeChild::Write(
    1113             :         const nsTArray<ImageCompositeNotification>& v__,
    1114             :         Message* msg__) -> void
    1115             : {
    1116           0 :     uint32_t length = (v__).Length();
    1117           0 :     Write(length, msg__);
    1118             :     // Sentinel = ('length', 'ImageCompositeNotification[]')
    1119           0 :     (msg__)->WriteSentinel(1825170902);
    1120             : 
    1121           0 :     for (auto& elem : v__) {
    1122           0 :         Write(elem, msg__);
    1123             :         // Sentinel = 'ImageCompositeNotification[]'
    1124           0 :         (msg__)->WriteSentinel(2165555657);
    1125             :     }
    1126           0 : }
    1127             : 
    1128           0 : auto PImageBridgeChild::Read(
    1129             :         nsTArray<ImageCompositeNotification>* v__,
    1130             :         const Message* msg__,
    1131             :         PickleIterator* iter__) -> bool
    1132             : {
    1133           0 :     nsTArray<ImageCompositeNotification> fa;
    1134             :     uint32_t length;
    1135           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1136           0 :         mozilla::ipc::ArrayLengthReadError("ImageCompositeNotification[]");
    1137           0 :         return false;
    1138             :     }
    1139             :     // Sentinel = ('length', 'ImageCompositeNotification[]')
    1140           0 :     if ((!((msg__)->ReadSentinel(iter__, 1825170902)))) {
    1141           0 :         mozilla::ipc::SentinelReadError("ImageCompositeNotification[]");
    1142           0 :         return false;
    1143             :     }
    1144             : 
    1145           0 :     ImageCompositeNotification* elems = (fa).AppendElements(length);
    1146           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1147           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1148           0 :             FatalError("Error deserializing 'ImageCompositeNotification[i]'");
    1149           0 :             return false;
    1150             :         }
    1151             :         // Sentinel = 'ImageCompositeNotification[]'
    1152           0 :         if ((!((msg__)->ReadSentinel(iter__, 2165555657)))) {
    1153           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'ImageCompositeNotification[i]'");
    1154           0 :             return false;
    1155             :         }
    1156             :     }
    1157           0 :     (v__)->SwapElements(fa);
    1158           0 :     return true;
    1159             : }
    1160             : 
    1161           0 : auto PImageBridgeChild::Write(
    1162             :         const TileDescriptor& v__,
    1163             :         Message* msg__) -> void
    1164             : {
    1165             :     typedef TileDescriptor type__;
    1166           0 :     Write(int((v__).type()), msg__);
    1167             :     // Sentinel = 'TileDescriptor'
    1168           0 :     (msg__)->WriteSentinel(1522454921);
    1169             : 
    1170           0 :     switch ((v__).type()) {
    1171             :     case type__::TTexturedTileDescriptor:
    1172             :         {
    1173           0 :             Write((v__).get_TexturedTileDescriptor(), msg__);
    1174             :             // Sentinel = 'TTexturedTileDescriptor'
    1175           0 :             (msg__)->WriteSentinel(2237132903);
    1176           0 :             return;
    1177             :         }
    1178             :     case type__::TPlaceholderTileDescriptor:
    1179             :         {
    1180           0 :             Write((v__).get_PlaceholderTileDescriptor(), msg__);
    1181             :             // Sentinel = 'TPlaceholderTileDescriptor'
    1182           0 :             (msg__)->WriteSentinel(1643451770);
    1183           0 :             return;
    1184             :         }
    1185             :     default:
    1186             :         {
    1187           0 :             FatalError("unknown union type");
    1188           0 :             return;
    1189             :         }
    1190             :     }
    1191             : }
    1192             : 
    1193           0 : auto PImageBridgeChild::Read(
    1194             :         TileDescriptor* v__,
    1195             :         const Message* msg__,
    1196             :         PickleIterator* iter__) -> bool
    1197             : {
    1198             :     typedef TileDescriptor type__;
    1199             :     int type;
    1200           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1201           0 :         mozilla::ipc::UnionTypeReadError("TileDescriptor");
    1202           0 :         return false;
    1203             :     }
    1204             :     // Sentinel = 'TileDescriptor'
    1205           0 :     if ((!((msg__)->ReadSentinel(iter__, 1522454921)))) {
    1206           0 :         mozilla::ipc::SentinelReadError("TileDescriptor");
    1207           0 :         return false;
    1208             :     }
    1209             : 
    1210           0 :     switch (type) {
    1211             :     case type__::TTexturedTileDescriptor:
    1212             :         {
    1213           0 :             TexturedTileDescriptor tmp = TexturedTileDescriptor();
    1214           0 :             (*(v__)) = tmp;
    1215           0 :             if ((!(Read((&((v__)->get_TexturedTileDescriptor())), msg__, iter__)))) {
    1216           0 :                 FatalError("Error deserializing Union type");
    1217           0 :                 return false;
    1218             :             }
    1219             :             // Sentinel = 'TTexturedTileDescriptor'
    1220           0 :             if ((!((msg__)->ReadSentinel(iter__, 2237132903)))) {
    1221           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1222           0 :                 return false;
    1223             :             }
    1224           0 :             return true;
    1225             :         }
    1226             :     case type__::TPlaceholderTileDescriptor:
    1227             :         {
    1228           0 :             PlaceholderTileDescriptor tmp = PlaceholderTileDescriptor();
    1229           0 :             (*(v__)) = tmp;
    1230           0 :             if ((!(Read((&((v__)->get_PlaceholderTileDescriptor())), msg__, iter__)))) {
    1231           0 :                 FatalError("Error deserializing Union type");
    1232           0 :                 return false;
    1233             :             }
    1234             :             // Sentinel = 'TPlaceholderTileDescriptor'
    1235           0 :             if ((!((msg__)->ReadSentinel(iter__, 1643451770)))) {
    1236           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1237           0 :                 return false;
    1238             :             }
    1239           0 :             return true;
    1240             :         }
    1241             :     default:
    1242             :         {
    1243           0 :             FatalError("unknown union type");
    1244           0 :             return false;
    1245             :         }
    1246             :     }
    1247             : }
    1248             : 
    1249           0 : auto PImageBridgeChild::Write(
    1250             :         const ThebesBufferData& v__,
    1251             :         Message* msg__) -> void
    1252             : {
    1253           0 :     Write((v__).rect(), msg__);
    1254             :     // Sentinel = 'rect'
    1255           0 :     (msg__)->WriteSentinel(438776542);
    1256           0 :     Write((v__).rotation(), msg__);
    1257             :     // Sentinel = 'rotation'
    1258           0 :     (msg__)->WriteSentinel(289872474);
    1259           0 : }
    1260             : 
    1261           0 : auto PImageBridgeChild::Read(
    1262             :         ThebesBufferData* v__,
    1263             :         const Message* msg__,
    1264             :         PickleIterator* iter__) -> bool
    1265             : {
    1266           0 :     if ((!(Read((&((v__)->rect())), msg__, iter__)))) {
    1267           0 :         FatalError("Error deserializing 'rect' (IntRect) member of 'ThebesBufferData'");
    1268           0 :         return false;
    1269             :     }
    1270             :     // Sentinel = 'rect'
    1271           0 :     if ((!((msg__)->ReadSentinel(iter__, 438776542)))) {
    1272           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'rect' (IntRect) member of 'ThebesBufferData'");
    1273           0 :         return false;
    1274             :     }
    1275           0 :     if ((!(Read((&((v__)->rotation())), msg__, iter__)))) {
    1276           0 :         FatalError("Error deserializing 'rotation' (IntPoint) member of 'ThebesBufferData'");
    1277           0 :         return false;
    1278             :     }
    1279             :     // Sentinel = 'rotation'
    1280           0 :     if ((!((msg__)->ReadSentinel(iter__, 289872474)))) {
    1281           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'rotation' (IntPoint) member of 'ThebesBufferData'");
    1282           0 :         return false;
    1283             :     }
    1284           0 :     return true;
    1285             : }
    1286             : 
    1287           0 : auto PImageBridgeChild::Write(
    1288             :         const SurfaceTextureDescriptor& v__,
    1289             :         Message* msg__) -> void
    1290             : {
    1291           0 :     Write((v__).handle(), msg__);
    1292             :     // Sentinel = 'handle'
    1293           0 :     (msg__)->WriteSentinel(453975108);
    1294           0 :     Write((v__).size(), msg__);
    1295             :     // Sentinel = 'size'
    1296           0 :     (msg__)->WriteSentinel(931048223);
    1297           0 :     Write((v__).continuous(), msg__);
    1298             :     // Sentinel = 'continuous'
    1299           0 :     (msg__)->WriteSentinel(2103626571);
    1300           0 : }
    1301             : 
    1302           0 : auto PImageBridgeChild::Read(
    1303             :         SurfaceTextureDescriptor* v__,
    1304             :         const Message* msg__,
    1305             :         PickleIterator* iter__) -> bool
    1306             : {
    1307           0 :     if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
    1308           0 :         FatalError("Error deserializing 'handle' (uint64_t) member of 'SurfaceTextureDescriptor'");
    1309           0 :         return false;
    1310             :     }
    1311             :     // Sentinel = 'handle'
    1312           0 :     if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
    1313           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handle' (uint64_t) member of 'SurfaceTextureDescriptor'");
    1314           0 :         return false;
    1315             :     }
    1316           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    1317           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceTextureDescriptor'");
    1318           0 :         return false;
    1319             :     }
    1320             :     // Sentinel = 'size'
    1321           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    1322           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceTextureDescriptor'");
    1323           0 :         return false;
    1324             :     }
    1325           0 :     if ((!(Read((&((v__)->continuous())), msg__, iter__)))) {
    1326           0 :         FatalError("Error deserializing 'continuous' (bool) member of 'SurfaceTextureDescriptor'");
    1327           0 :         return false;
    1328             :     }
    1329             :     // Sentinel = 'continuous'
    1330           0 :     if ((!((msg__)->ReadSentinel(iter__, 2103626571)))) {
    1331           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'continuous' (bool) member of 'SurfaceTextureDescriptor'");
    1332           0 :         return false;
    1333             :     }
    1334           0 :     return true;
    1335             : }
    1336             : 
    1337           0 : auto PImageBridgeChild::Write(
    1338             :         const ShmemSection& v__,
    1339             :         Message* msg__) -> void
    1340             : {
    1341           0 :     Write((v__).shmem(), msg__);
    1342             :     // Sentinel = 'shmem'
    1343           0 :     (msg__)->WriteSentinel(4252604405);
    1344           0 :     Write((v__).offset(), msg__);
    1345             :     // Sentinel = 'offset'
    1346           0 :     (msg__)->WriteSentinel(1369947863);
    1347           0 :     Write((v__).size(), msg__);
    1348             :     // Sentinel = 'size'
    1349           0 :     (msg__)->WriteSentinel(931048223);
    1350           0 : }
    1351             : 
    1352           0 : auto PImageBridgeChild::Read(
    1353             :         ShmemSection* v__,
    1354             :         const Message* msg__,
    1355             :         PickleIterator* iter__) -> bool
    1356             : {
    1357           0 :     if ((!(Read((&((v__)->shmem())), msg__, iter__)))) {
    1358           0 :         FatalError("Error deserializing 'shmem' (Shmem) member of 'ShmemSection'");
    1359           0 :         return false;
    1360             :     }
    1361             :     // Sentinel = 'shmem'
    1362           0 :     if ((!((msg__)->ReadSentinel(iter__, 4252604405)))) {
    1363           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'shmem' (Shmem) member of 'ShmemSection'");
    1364           0 :         return false;
    1365             :     }
    1366           0 :     if ((!(Read((&((v__)->offset())), msg__, iter__)))) {
    1367           0 :         FatalError("Error deserializing 'offset' (uint32_t) member of 'ShmemSection'");
    1368           0 :         return false;
    1369             :     }
    1370             :     // Sentinel = 'offset'
    1371           0 :     if ((!((msg__)->ReadSentinel(iter__, 1369947863)))) {
    1372           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'offset' (uint32_t) member of 'ShmemSection'");
    1373           0 :         return false;
    1374             :     }
    1375           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    1376           0 :         FatalError("Error deserializing 'size' (size_t) member of 'ShmemSection'");
    1377           0 :         return false;
    1378             :     }
    1379             :     // Sentinel = 'size'
    1380           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    1381           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (size_t) member of 'ShmemSection'");
    1382           0 :         return false;
    1383             :     }
    1384           0 :     return true;
    1385             : }
    1386             : 
    1387           0 : auto PImageBridgeChild::Write(
    1388             :         const PlaceholderTileDescriptor& v__,
    1389             :         Message* msg__) -> void
    1390             : {
    1391           0 : }
    1392             : 
    1393           0 : auto PImageBridgeChild::Read(
    1394             :         PlaceholderTileDescriptor* v__,
    1395             :         const Message* msg__,
    1396             :         PickleIterator* iter__) -> bool
    1397             : {
    1398           0 :     return true;
    1399             : }
    1400             : 
    1401           0 : auto PImageBridgeChild::Write(
    1402             :         const YCbCrDescriptor& v__,
    1403             :         Message* msg__) -> void
    1404             : {
    1405           0 :     Write((v__).ySize(), msg__);
    1406             :     // Sentinel = 'ySize'
    1407           0 :     (msg__)->WriteSentinel(313512843);
    1408           0 :     Write((v__).cbCrSize(), msg__);
    1409             :     // Sentinel = 'cbCrSize'
    1410           0 :     (msg__)->WriteSentinel(2601117167);
    1411           0 :     Write((v__).yOffset(), msg__);
    1412             :     // Sentinel = 'yOffset'
    1413           0 :     (msg__)->WriteSentinel(983795183);
    1414           0 :     Write((v__).cbOffset(), msg__);
    1415             :     // Sentinel = 'cbOffset'
    1416           0 :     (msg__)->WriteSentinel(4197159602);
    1417           0 :     Write((v__).crOffset(), msg__);
    1418             :     // Sentinel = 'crOffset'
    1419           0 :     (msg__)->WriteSentinel(1739681986);
    1420           0 :     Write((v__).stereoMode(), msg__);
    1421             :     // Sentinel = 'stereoMode'
    1422           0 :     (msg__)->WriteSentinel(2234072623);
    1423           0 :     Write((v__).yUVColorSpace(), msg__);
    1424             :     // Sentinel = 'yUVColorSpace'
    1425           0 :     (msg__)->WriteSentinel(1051398544);
    1426           0 :     Write((v__).hasIntermediateBuffer(), msg__);
    1427             :     // Sentinel = 'hasIntermediateBuffer'
    1428           0 :     (msg__)->WriteSentinel(985857996);
    1429           0 : }
    1430             : 
    1431           0 : auto PImageBridgeChild::Read(
    1432             :         YCbCrDescriptor* v__,
    1433             :         const Message* msg__,
    1434             :         PickleIterator* iter__) -> bool
    1435             : {
    1436           0 :     if ((!(Read((&((v__)->ySize())), msg__, iter__)))) {
    1437           0 :         FatalError("Error deserializing 'ySize' (IntSize) member of 'YCbCrDescriptor'");
    1438           0 :         return false;
    1439             :     }
    1440             :     // Sentinel = 'ySize'
    1441           0 :     if ((!((msg__)->ReadSentinel(iter__, 313512843)))) {
    1442           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ySize' (IntSize) member of 'YCbCrDescriptor'");
    1443           0 :         return false;
    1444             :     }
    1445           0 :     if ((!(Read((&((v__)->cbCrSize())), msg__, iter__)))) {
    1446           0 :         FatalError("Error deserializing 'cbCrSize' (IntSize) member of 'YCbCrDescriptor'");
    1447           0 :         return false;
    1448             :     }
    1449             :     // Sentinel = 'cbCrSize'
    1450           0 :     if ((!((msg__)->ReadSentinel(iter__, 2601117167)))) {
    1451           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'cbCrSize' (IntSize) member of 'YCbCrDescriptor'");
    1452           0 :         return false;
    1453             :     }
    1454           0 :     if ((!(Read((&((v__)->yOffset())), msg__, iter__)))) {
    1455           0 :         FatalError("Error deserializing 'yOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1456           0 :         return false;
    1457             :     }
    1458             :     // Sentinel = 'yOffset'
    1459           0 :     if ((!((msg__)->ReadSentinel(iter__, 983795183)))) {
    1460           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'yOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1461           0 :         return false;
    1462             :     }
    1463           0 :     if ((!(Read((&((v__)->cbOffset())), msg__, iter__)))) {
    1464           0 :         FatalError("Error deserializing 'cbOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1465           0 :         return false;
    1466             :     }
    1467             :     // Sentinel = 'cbOffset'
    1468           0 :     if ((!((msg__)->ReadSentinel(iter__, 4197159602)))) {
    1469           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'cbOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1470           0 :         return false;
    1471             :     }
    1472           0 :     if ((!(Read((&((v__)->crOffset())), msg__, iter__)))) {
    1473           0 :         FatalError("Error deserializing 'crOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1474           0 :         return false;
    1475             :     }
    1476             :     // Sentinel = 'crOffset'
    1477           0 :     if ((!((msg__)->ReadSentinel(iter__, 1739681986)))) {
    1478           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'crOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1479           0 :         return false;
    1480             :     }
    1481           0 :     if ((!(Read((&((v__)->stereoMode())), msg__, iter__)))) {
    1482           0 :         FatalError("Error deserializing 'stereoMode' (StereoMode) member of 'YCbCrDescriptor'");
    1483           0 :         return false;
    1484             :     }
    1485             :     // Sentinel = 'stereoMode'
    1486           0 :     if ((!((msg__)->ReadSentinel(iter__, 2234072623)))) {
    1487           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stereoMode' (StereoMode) member of 'YCbCrDescriptor'");
    1488           0 :         return false;
    1489             :     }
    1490           0 :     if ((!(Read((&((v__)->yUVColorSpace())), msg__, iter__)))) {
    1491           0 :         FatalError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'YCbCrDescriptor'");
    1492           0 :         return false;
    1493             :     }
    1494             :     // Sentinel = 'yUVColorSpace'
    1495           0 :     if ((!((msg__)->ReadSentinel(iter__, 1051398544)))) {
    1496           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'YCbCrDescriptor'");
    1497           0 :         return false;
    1498             :     }
    1499           0 :     if ((!(Read((&((v__)->hasIntermediateBuffer())), msg__, iter__)))) {
    1500           0 :         FatalError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'YCbCrDescriptor'");
    1501           0 :         return false;
    1502             :     }
    1503             :     // Sentinel = 'hasIntermediateBuffer'
    1504           0 :     if ((!((msg__)->ReadSentinel(iter__, 985857996)))) {
    1505           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'YCbCrDescriptor'");
    1506           0 :         return false;
    1507             :     }
    1508           0 :     return true;
    1509             : }
    1510             : 
    1511           0 : auto PImageBridgeChild::Write(
    1512             :         const SurfaceDescriptorFileMapping& v__,
    1513             :         Message* msg__) -> void
    1514             : {
    1515           0 :     Write((v__).handle(), msg__);
    1516             :     // Sentinel = 'handle'
    1517           0 :     (msg__)->WriteSentinel(453975108);
    1518           0 :     Write((v__).format(), msg__);
    1519             :     // Sentinel = 'format'
    1520           0 :     (msg__)->WriteSentinel(2052265543);
    1521           0 :     Write((v__).size(), msg__);
    1522             :     // Sentinel = 'size'
    1523           0 :     (msg__)->WriteSentinel(931048223);
    1524           0 : }
    1525             : 
    1526           0 : auto PImageBridgeChild::Read(
    1527             :         SurfaceDescriptorFileMapping* v__,
    1528             :         const Message* msg__,
    1529             :         PickleIterator* iter__) -> bool
    1530             : {
    1531           0 :     if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
    1532           0 :         FatalError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorFileMapping'");
    1533           0 :         return false;
    1534             :     }
    1535             :     // Sentinel = 'handle'
    1536           0 :     if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
    1537           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorFileMapping'");
    1538           0 :         return false;
    1539             :     }
    1540           0 :     if ((!(Read((&((v__)->format())), msg__, iter__)))) {
    1541           0 :         FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorFileMapping'");
    1542           0 :         return false;
    1543             :     }
    1544             :     // Sentinel = 'format'
    1545           0 :     if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
    1546           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorFileMapping'");
    1547           0 :         return false;
    1548             :     }
    1549           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    1550           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorFileMapping'");
    1551           0 :         return false;
    1552             :     }
    1553             :     // Sentinel = 'size'
    1554           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    1555           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorFileMapping'");
    1556           0 :         return false;
    1557             :     }
    1558           0 :     return true;
    1559             : }
    1560             : 
    1561           0 : auto PImageBridgeChild::Write(
    1562             :         const SurfaceDescriptorTiles& v__,
    1563             :         Message* msg__) -> void
    1564             : {
    1565           0 :     Write((v__).validRegion(), msg__);
    1566             :     // Sentinel = 'validRegion'
    1567           0 :     (msg__)->WriteSentinel(1063106721);
    1568           0 :     Write((v__).tiles(), msg__);
    1569             :     // Sentinel = 'tiles'
    1570           0 :     (msg__)->WriteSentinel(2787066946);
    1571           0 :     Write((v__).tileOrigin(), msg__);
    1572             :     // Sentinel = 'tileOrigin'
    1573           0 :     (msg__)->WriteSentinel(41129744);
    1574           0 :     Write((v__).tileSize(), msg__);
    1575             :     // Sentinel = 'tileSize'
    1576           0 :     (msg__)->WriteSentinel(2603105767);
    1577           0 :     Write((v__).firstTileX(), msg__);
    1578             :     // Sentinel = 'firstTileX'
    1579           0 :     (msg__)->WriteSentinel(1961114936);
    1580           0 :     Write((v__).firstTileY(), msg__);
    1581             :     // Sentinel = 'firstTileY'
    1582           0 :     (msg__)->WriteSentinel(1961114937);
    1583           0 :     Write((v__).retainedWidth(), msg__);
    1584             :     // Sentinel = 'retainedWidth'
    1585           0 :     (msg__)->WriteSentinel(2490297853);
    1586           0 :     Write((v__).retainedHeight(), msg__);
    1587             :     // Sentinel = 'retainedHeight'
    1588           0 :     (msg__)->WriteSentinel(3230772307);
    1589           0 :     Write((v__).resolution(), msg__);
    1590             :     // Sentinel = 'resolution'
    1591           0 :     (msg__)->WriteSentinel(4077768700);
    1592           0 :     Write((v__).frameXResolution(), msg__);
    1593             :     // Sentinel = 'frameXResolution'
    1594           0 :     (msg__)->WriteSentinel(876167199);
    1595           0 :     Write((v__).frameYResolution(), msg__);
    1596             :     // Sentinel = 'frameYResolution'
    1597           0 :     (msg__)->WriteSentinel(2856703858);
    1598           0 :     Write((v__).isProgressive(), msg__);
    1599             :     // Sentinel = 'isProgressive'
    1600           0 :     (msg__)->WriteSentinel(1291560808);
    1601           0 : }
    1602             : 
    1603           0 : auto PImageBridgeChild::Read(
    1604             :         SurfaceDescriptorTiles* v__,
    1605             :         const Message* msg__,
    1606             :         PickleIterator* iter__) -> bool
    1607             : {
    1608           0 :     if ((!(Read((&((v__)->validRegion())), msg__, iter__)))) {
    1609           0 :         FatalError("Error deserializing 'validRegion' (nsIntRegion) member of 'SurfaceDescriptorTiles'");
    1610           0 :         return false;
    1611             :     }
    1612             :     // Sentinel = 'validRegion'
    1613           0 :     if ((!((msg__)->ReadSentinel(iter__, 1063106721)))) {
    1614           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'validRegion' (nsIntRegion) member of 'SurfaceDescriptorTiles'");
    1615           0 :         return false;
    1616             :     }
    1617           0 :     if ((!(Read((&((v__)->tiles())), msg__, iter__)))) {
    1618           0 :         FatalError("Error deserializing 'tiles' (TileDescriptor[]) member of 'SurfaceDescriptorTiles'");
    1619           0 :         return false;
    1620             :     }
    1621             :     // Sentinel = 'tiles'
    1622           0 :     if ((!((msg__)->ReadSentinel(iter__, 2787066946)))) {
    1623           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'tiles' (TileDescriptor[]) member of 'SurfaceDescriptorTiles'");
    1624           0 :         return false;
    1625             :     }
    1626           0 :     if ((!(Read((&((v__)->tileOrigin())), msg__, iter__)))) {
    1627           0 :         FatalError("Error deserializing 'tileOrigin' (IntPoint) member of 'SurfaceDescriptorTiles'");
    1628           0 :         return false;
    1629             :     }
    1630             :     // Sentinel = 'tileOrigin'
    1631           0 :     if ((!((msg__)->ReadSentinel(iter__, 41129744)))) {
    1632           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'tileOrigin' (IntPoint) member of 'SurfaceDescriptorTiles'");
    1633           0 :         return false;
    1634             :     }
    1635           0 :     if ((!(Read((&((v__)->tileSize())), msg__, iter__)))) {
    1636           0 :         FatalError("Error deserializing 'tileSize' (IntSize) member of 'SurfaceDescriptorTiles'");
    1637           0 :         return false;
    1638             :     }
    1639             :     // Sentinel = 'tileSize'
    1640           0 :     if ((!((msg__)->ReadSentinel(iter__, 2603105767)))) {
    1641           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'tileSize' (IntSize) member of 'SurfaceDescriptorTiles'");
    1642           0 :         return false;
    1643             :     }
    1644           0 :     if ((!(Read((&((v__)->firstTileX())), msg__, iter__)))) {
    1645           0 :         FatalError("Error deserializing 'firstTileX' (int) member of 'SurfaceDescriptorTiles'");
    1646           0 :         return false;
    1647             :     }
    1648             :     // Sentinel = 'firstTileX'
    1649           0 :     if ((!((msg__)->ReadSentinel(iter__, 1961114936)))) {
    1650           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'firstTileX' (int) member of 'SurfaceDescriptorTiles'");
    1651           0 :         return false;
    1652             :     }
    1653           0 :     if ((!(Read((&((v__)->firstTileY())), msg__, iter__)))) {
    1654           0 :         FatalError("Error deserializing 'firstTileY' (int) member of 'SurfaceDescriptorTiles'");
    1655           0 :         return false;
    1656             :     }
    1657             :     // Sentinel = 'firstTileY'
    1658           0 :     if ((!((msg__)->ReadSentinel(iter__, 1961114937)))) {
    1659           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'firstTileY' (int) member of 'SurfaceDescriptorTiles'");
    1660           0 :         return false;
    1661             :     }
    1662           0 :     if ((!(Read((&((v__)->retainedWidth())), msg__, iter__)))) {
    1663           0 :         FatalError("Error deserializing 'retainedWidth' (int) member of 'SurfaceDescriptorTiles'");
    1664           0 :         return false;
    1665             :     }
    1666             :     // Sentinel = 'retainedWidth'
    1667           0 :     if ((!((msg__)->ReadSentinel(iter__, 2490297853)))) {
    1668           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'retainedWidth' (int) member of 'SurfaceDescriptorTiles'");
    1669           0 :         return false;
    1670             :     }
    1671           0 :     if ((!(Read((&((v__)->retainedHeight())), msg__, iter__)))) {
    1672           0 :         FatalError("Error deserializing 'retainedHeight' (int) member of 'SurfaceDescriptorTiles'");
    1673           0 :         return false;
    1674             :     }
    1675             :     // Sentinel = 'retainedHeight'
    1676           0 :     if ((!((msg__)->ReadSentinel(iter__, 3230772307)))) {
    1677           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'retainedHeight' (int) member of 'SurfaceDescriptorTiles'");
    1678           0 :         return false;
    1679             :     }
    1680           0 :     if ((!(Read((&((v__)->resolution())), msg__, iter__)))) {
    1681           0 :         FatalError("Error deserializing 'resolution' (float) member of 'SurfaceDescriptorTiles'");
    1682           0 :         return false;
    1683             :     }
    1684             :     // Sentinel = 'resolution'
    1685           0 :     if ((!((msg__)->ReadSentinel(iter__, 4077768700)))) {
    1686           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'resolution' (float) member of 'SurfaceDescriptorTiles'");
    1687           0 :         return false;
    1688             :     }
    1689           0 :     if ((!(Read((&((v__)->frameXResolution())), msg__, iter__)))) {
    1690           0 :         FatalError("Error deserializing 'frameXResolution' (float) member of 'SurfaceDescriptorTiles'");
    1691           0 :         return false;
    1692             :     }
    1693             :     // Sentinel = 'frameXResolution'
    1694           0 :     if ((!((msg__)->ReadSentinel(iter__, 876167199)))) {
    1695           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'frameXResolution' (float) member of 'SurfaceDescriptorTiles'");
    1696           0 :         return false;
    1697             :     }
    1698           0 :     if ((!(Read((&((v__)->frameYResolution())), msg__, iter__)))) {
    1699           0 :         FatalError("Error deserializing 'frameYResolution' (float) member of 'SurfaceDescriptorTiles'");
    1700           0 :         return false;
    1701             :     }
    1702             :     // Sentinel = 'frameYResolution'
    1703           0 :     if ((!((msg__)->ReadSentinel(iter__, 2856703858)))) {
    1704           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'frameYResolution' (float) member of 'SurfaceDescriptorTiles'");
    1705           0 :         return false;
    1706             :     }
    1707           0 :     if ((!(Read((&((v__)->isProgressive())), msg__, iter__)))) {
    1708           0 :         FatalError("Error deserializing 'isProgressive' (bool) member of 'SurfaceDescriptorTiles'");
    1709           0 :         return false;
    1710             :     }
    1711             :     // Sentinel = 'isProgressive'
    1712           0 :     if ((!((msg__)->ReadSentinel(iter__, 1291560808)))) {
    1713           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isProgressive' (bool) member of 'SurfaceDescriptorTiles'");
    1714           0 :         return false;
    1715             :     }
    1716           0 :     return true;
    1717             : }
    1718             : 
    1719           0 : auto PImageBridgeChild::Write(
    1720             :         const AsyncParentMessageData& v__,
    1721             :         Message* msg__) -> void
    1722             : {
    1723             :     typedef AsyncParentMessageData type__;
    1724           0 :     Write(int((v__).type()), msg__);
    1725             :     // Sentinel = 'AsyncParentMessageData'
    1726           0 :     (msg__)->WriteSentinel(3809282103);
    1727             : 
    1728           0 :     switch ((v__).type()) {
    1729             :     case type__::TOpNotifyNotUsed:
    1730             :         {
    1731           0 :             Write((v__).get_OpNotifyNotUsed(), msg__);
    1732             :             // Sentinel = 'TOpNotifyNotUsed'
    1733           0 :             (msg__)->WriteSentinel(2920493638);
    1734           0 :             return;
    1735             :         }
    1736             :     default:
    1737             :         {
    1738           0 :             FatalError("unknown union type");
    1739           0 :             return;
    1740             :         }
    1741             :     }
    1742             : }
    1743             : 
    1744           0 : auto PImageBridgeChild::Read(
    1745             :         AsyncParentMessageData* v__,
    1746             :         const Message* msg__,
    1747             :         PickleIterator* iter__) -> bool
    1748             : {
    1749             :     typedef AsyncParentMessageData type__;
    1750             :     int type;
    1751           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1752           0 :         mozilla::ipc::UnionTypeReadError("AsyncParentMessageData");
    1753           0 :         return false;
    1754             :     }
    1755             :     // Sentinel = 'AsyncParentMessageData'
    1756           0 :     if ((!((msg__)->ReadSentinel(iter__, 3809282103)))) {
    1757           0 :         mozilla::ipc::SentinelReadError("AsyncParentMessageData");
    1758           0 :         return false;
    1759             :     }
    1760             : 
    1761           0 :     switch (type) {
    1762             :     case type__::TOpNotifyNotUsed:
    1763             :         {
    1764           0 :             OpNotifyNotUsed tmp = OpNotifyNotUsed();
    1765           0 :             (*(v__)) = tmp;
    1766           0 :             if ((!(Read((&((v__)->get_OpNotifyNotUsed())), msg__, iter__)))) {
    1767           0 :                 FatalError("Error deserializing Union type");
    1768           0 :                 return false;
    1769             :             }
    1770             :             // Sentinel = 'TOpNotifyNotUsed'
    1771           0 :             if ((!((msg__)->ReadSentinel(iter__, 2920493638)))) {
    1772           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1773           0 :                 return false;
    1774             :             }
    1775           0 :             return true;
    1776             :         }
    1777             :     default:
    1778             :         {
    1779           0 :             FatalError("unknown union type");
    1780           0 :             return false;
    1781             :         }
    1782             :     }
    1783             : }
    1784             : 
    1785           0 : auto PImageBridgeChild::Write(
    1786             :         const SurfaceDescriptorBuffer& v__,
    1787             :         Message* msg__) -> void
    1788             : {
    1789           0 :     Write((v__).desc(), msg__);
    1790             :     // Sentinel = 'desc'
    1791           0 :     (msg__)->WriteSentinel(3761872479);
    1792           0 :     Write((v__).data(), msg__);
    1793             :     // Sentinel = 'data'
    1794           0 :     (msg__)->WriteSentinel(843352540);
    1795           0 : }
    1796             : 
    1797           0 : auto PImageBridgeChild::Read(
    1798             :         SurfaceDescriptorBuffer* v__,
    1799             :         const Message* msg__,
    1800             :         PickleIterator* iter__) -> bool
    1801             : {
    1802           0 :     if ((!(Read((&((v__)->desc())), msg__, iter__)))) {
    1803           0 :         FatalError("Error deserializing 'desc' (BufferDescriptor) member of 'SurfaceDescriptorBuffer'");
    1804           0 :         return false;
    1805             :     }
    1806             :     // Sentinel = 'desc'
    1807           0 :     if ((!((msg__)->ReadSentinel(iter__, 3761872479)))) {
    1808           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'desc' (BufferDescriptor) member of 'SurfaceDescriptorBuffer'");
    1809           0 :         return false;
    1810             :     }
    1811           0 :     if ((!(Read((&((v__)->data())), msg__, iter__)))) {
    1812           0 :         FatalError("Error deserializing 'data' (MemoryOrShmem) member of 'SurfaceDescriptorBuffer'");
    1813           0 :         return false;
    1814             :     }
    1815             :     // Sentinel = 'data'
    1816           0 :     if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
    1817           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'data' (MemoryOrShmem) member of 'SurfaceDescriptorBuffer'");
    1818           0 :         return false;
    1819             :     }
    1820           0 :     return true;
    1821             : }
    1822             : 
    1823           0 : auto PImageBridgeChild::Write(
    1824             :         const OpUseTiledLayerBuffer& v__,
    1825             :         Message* msg__) -> void
    1826             : {
    1827           0 :     Write((v__).tileLayerDescriptor(), msg__);
    1828             :     // Sentinel = 'tileLayerDescriptor'
    1829           0 :     (msg__)->WriteSentinel(1059372119);
    1830           0 : }
    1831             : 
    1832           0 : auto PImageBridgeChild::Read(
    1833             :         OpUseTiledLayerBuffer* v__,
    1834             :         const Message* msg__,
    1835             :         PickleIterator* iter__) -> bool
    1836             : {
    1837           0 :     if ((!(Read((&((v__)->tileLayerDescriptor())), msg__, iter__)))) {
    1838           0 :         FatalError("Error deserializing 'tileLayerDescriptor' (SurfaceDescriptorTiles) member of 'OpUseTiledLayerBuffer'");
    1839           0 :         return false;
    1840             :     }
    1841             :     // Sentinel = 'tileLayerDescriptor'
    1842           0 :     if ((!((msg__)->ReadSentinel(iter__, 1059372119)))) {
    1843           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'tileLayerDescriptor' (SurfaceDescriptorTiles) member of 'OpUseTiledLayerBuffer'");
    1844           0 :         return false;
    1845             :     }
    1846           0 :     return true;
    1847             : }
    1848             : 
    1849           0 : auto PImageBridgeChild::Write(
    1850             :         const TimedTexture& v__,
    1851             :         Message* msg__) -> void
    1852             : {
    1853             :     // skipping actor field that's meaningless on this side
    1854           0 :     Write((v__).textureChild(), msg__, false);
    1855             :     // Sentinel = 'texture'
    1856           0 :     (msg__)->WriteSentinel(3654462510);
    1857           0 :     Write((v__).sharedLock(), msg__);
    1858             :     // Sentinel = 'sharedLock'
    1859           0 :     (msg__)->WriteSentinel(1249896484);
    1860           0 :     Write((v__).timeStamp(), msg__);
    1861             :     // Sentinel = 'timeStamp'
    1862           0 :     (msg__)->WriteSentinel(988250409);
    1863           0 :     Write((v__).picture(), msg__);
    1864             :     // Sentinel = 'picture'
    1865           0 :     (msg__)->WriteSentinel(3195561921);
    1866           0 :     Write((v__).frameID(), msg__);
    1867             :     // Sentinel = 'frameID'
    1868           0 :     (msg__)->WriteSentinel(3054835247);
    1869           0 :     Write((v__).producerID(), msg__);
    1870             :     // Sentinel = 'producerID'
    1871           0 :     (msg__)->WriteSentinel(1942472743);
    1872           0 : }
    1873             : 
    1874           0 : auto PImageBridgeChild::Read(
    1875             :         TimedTexture* v__,
    1876             :         const Message* msg__,
    1877             :         PickleIterator* iter__) -> bool
    1878             : {
    1879             :     // skipping actor field that's meaningless on this side
    1880           0 :     if ((!(Read((&((v__)->textureChild())), msg__, iter__, false)))) {
    1881           0 :         FatalError("Error deserializing 'textureChild' (PTexture) member of 'TimedTexture'");
    1882           0 :         return false;
    1883             :     }
    1884             :     // Sentinel = 'texture'
    1885           0 :     if ((!((msg__)->ReadSentinel(iter__, 3654462510)))) {
    1886           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'textureChild' (PTexture) member of 'TimedTexture'");
    1887           0 :         return false;
    1888             :     }
    1889           0 :     if ((!(Read((&((v__)->sharedLock())), msg__, iter__)))) {
    1890           0 :         FatalError("Error deserializing 'sharedLock' (ReadLockHandle) member of 'TimedTexture'");
    1891           0 :         return false;
    1892             :     }
    1893             :     // Sentinel = 'sharedLock'
    1894           0 :     if ((!((msg__)->ReadSentinel(iter__, 1249896484)))) {
    1895           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sharedLock' (ReadLockHandle) member of 'TimedTexture'");
    1896           0 :         return false;
    1897             :     }
    1898           0 :     if ((!(Read((&((v__)->timeStamp())), msg__, iter__)))) {
    1899           0 :         FatalError("Error deserializing 'timeStamp' (TimeStamp) member of 'TimedTexture'");
    1900           0 :         return false;
    1901             :     }
    1902             :     // Sentinel = 'timeStamp'
    1903           0 :     if ((!((msg__)->ReadSentinel(iter__, 988250409)))) {
    1904           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'timeStamp' (TimeStamp) member of 'TimedTexture'");
    1905           0 :         return false;
    1906             :     }
    1907           0 :     if ((!(Read((&((v__)->picture())), msg__, iter__)))) {
    1908           0 :         FatalError("Error deserializing 'picture' (IntRect) member of 'TimedTexture'");
    1909           0 :         return false;
    1910             :     }
    1911             :     // Sentinel = 'picture'
    1912           0 :     if ((!((msg__)->ReadSentinel(iter__, 3195561921)))) {
    1913           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'picture' (IntRect) member of 'TimedTexture'");
    1914           0 :         return false;
    1915             :     }
    1916           0 :     if ((!(Read((&((v__)->frameID())), msg__, iter__)))) {
    1917           0 :         FatalError("Error deserializing 'frameID' (uint32_t) member of 'TimedTexture'");
    1918           0 :         return false;
    1919             :     }
    1920             :     // Sentinel = 'frameID'
    1921           0 :     if ((!((msg__)->ReadSentinel(iter__, 3054835247)))) {
    1922           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'frameID' (uint32_t) member of 'TimedTexture'");
    1923           0 :         return false;
    1924             :     }
    1925           0 :     if ((!(Read((&((v__)->producerID())), msg__, iter__)))) {
    1926           0 :         FatalError("Error deserializing 'producerID' (uint32_t) member of 'TimedTexture'");
    1927           0 :         return false;
    1928             :     }
    1929             :     // Sentinel = 'producerID'
    1930           0 :     if ((!((msg__)->ReadSentinel(iter__, 1942472743)))) {
    1931           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'producerID' (uint32_t) member of 'TimedTexture'");
    1932           0 :         return false;
    1933             :     }
    1934           0 :     return true;
    1935             : }
    1936             : 
    1937           0 : auto PImageBridgeChild::Write(
    1938             :         const MaybeTexture& v__,
    1939             :         Message* msg__) -> void
    1940             : {
    1941             :     typedef MaybeTexture type__;
    1942           0 :     Write(int((v__).type()), msg__);
    1943             :     // Sentinel = 'MaybeTexture'
    1944           0 :     (msg__)->WriteSentinel(264725529);
    1945             : 
    1946           0 :     switch ((v__).type()) {
    1947             :     case type__::TPTextureParent:
    1948             :         {
    1949           0 :             FatalError("wrong side!");
    1950           0 :             return;
    1951             :         }
    1952             :     case type__::TPTextureChild:
    1953             :         {
    1954           0 :             Write((v__).get_PTextureChild(), msg__, false);
    1955             :             // Sentinel = 'TPTextureChild'
    1956           0 :             (msg__)->WriteSentinel(3251900187);
    1957           0 :             return;
    1958             :         }
    1959             :     case type__::Tnull_t:
    1960             :         {
    1961           0 :             Write((v__).get_null_t(), msg__);
    1962             :             // Sentinel = 'Tnull_t'
    1963           0 :             (msg__)->WriteSentinel(3731137201);
    1964           0 :             return;
    1965             :         }
    1966             :     default:
    1967             :         {
    1968           0 :             FatalError("unknown union type");
    1969           0 :             return;
    1970             :         }
    1971             :     }
    1972             : }
    1973             : 
    1974           0 : auto PImageBridgeChild::Read(
    1975             :         MaybeTexture* v__,
    1976             :         const Message* msg__,
    1977             :         PickleIterator* iter__) -> bool
    1978             : {
    1979             :     typedef MaybeTexture type__;
    1980             :     int type;
    1981           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1982           0 :         mozilla::ipc::UnionTypeReadError("MaybeTexture");
    1983           0 :         return false;
    1984             :     }
    1985             :     // Sentinel = 'MaybeTexture'
    1986           0 :     if ((!((msg__)->ReadSentinel(iter__, 264725529)))) {
    1987           0 :         mozilla::ipc::SentinelReadError("MaybeTexture");
    1988           0 :         return false;
    1989             :     }
    1990             : 
    1991           0 :     switch (type) {
    1992             :     case type__::TPTextureParent:
    1993             :         {
    1994           0 :             PTextureChild* tmp = nullptr;
    1995           0 :             (*(v__)) = tmp;
    1996           0 :             if ((!(Read((&((v__)->get_PTextureChild())), msg__, iter__, false)))) {
    1997           0 :                 FatalError("Error deserializing Union type");
    1998           0 :                 return false;
    1999             :             }
    2000             :             // Sentinel = 'TPTextureParent'
    2001           0 :             if ((!((msg__)->ReadSentinel(iter__, 896696938)))) {
    2002           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2003           0 :                 return false;
    2004             :             }
    2005           0 :             return true;
    2006             :         }
    2007             :     case type__::TPTextureChild:
    2008             :         {
    2009           0 :             return false;
    2010             :         }
    2011             :     case type__::Tnull_t:
    2012             :         {
    2013             :             null_t tmp = null_t();
    2014           0 :             (*(v__)) = tmp;
    2015           0 :             if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
    2016           0 :                 FatalError("Error deserializing Union type");
    2017           0 :                 return false;
    2018             :             }
    2019             :             // Sentinel = 'Tnull_t'
    2020           0 :             if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
    2021           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2022           0 :                 return false;
    2023             :             }
    2024           0 :             return true;
    2025             :         }
    2026             :     default:
    2027             :         {
    2028           0 :             FatalError("unknown union type");
    2029           0 :             return false;
    2030             :         }
    2031             :     }
    2032             : }
    2033             : 
    2034           0 : auto PImageBridgeChild::Write(
    2035             :         const SurfaceDescriptorGPUVideo& v__,
    2036             :         Message* msg__) -> void
    2037             : {
    2038           0 :     Write((v__).handle(), msg__);
    2039             :     // Sentinel = 'handle'
    2040           0 :     (msg__)->WriteSentinel(453975108);
    2041           0 : }
    2042             : 
    2043           0 : auto PImageBridgeChild::Read(
    2044             :         SurfaceDescriptorGPUVideo* v__,
    2045             :         const Message* msg__,
    2046             :         PickleIterator* iter__) -> bool
    2047             : {
    2048           0 :     if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
    2049           0 :         FatalError("Error deserializing 'handle' (uint64_t) member of 'SurfaceDescriptorGPUVideo'");
    2050           0 :         return false;
    2051             :     }
    2052             :     // Sentinel = 'handle'
    2053           0 :     if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
    2054           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handle' (uint64_t) member of 'SurfaceDescriptorGPUVideo'");
    2055           0 :         return false;
    2056             :     }
    2057           0 :     return true;
    2058             : }
    2059             : 
    2060           0 : auto PImageBridgeChild::Write(
    2061             :         const SurfaceDescriptorD3D10& v__,
    2062             :         Message* msg__) -> void
    2063             : {
    2064           0 :     Write((v__).handle(), msg__);
    2065             :     // Sentinel = 'handle'
    2066           0 :     (msg__)->WriteSentinel(453975108);
    2067           0 :     Write((v__).format(), msg__);
    2068             :     // Sentinel = 'format'
    2069           0 :     (msg__)->WriteSentinel(2052265543);
    2070           0 :     Write((v__).size(), msg__);
    2071             :     // Sentinel = 'size'
    2072           0 :     (msg__)->WriteSentinel(931048223);
    2073           0 : }
    2074             : 
    2075           0 : auto PImageBridgeChild::Read(
    2076             :         SurfaceDescriptorD3D10* v__,
    2077             :         const Message* msg__,
    2078             :         PickleIterator* iter__) -> bool
    2079             : {
    2080           0 :     if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
    2081           0 :         FatalError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorD3D10'");
    2082           0 :         return false;
    2083             :     }
    2084             :     // Sentinel = 'handle'
    2085           0 :     if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
    2086           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorD3D10'");
    2087           0 :         return false;
    2088             :     }
    2089           0 :     if ((!(Read((&((v__)->format())), msg__, iter__)))) {
    2090           0 :         FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorD3D10'");
    2091           0 :         return false;
    2092             :     }
    2093             :     // Sentinel = 'format'
    2094           0 :     if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
    2095           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorD3D10'");
    2096           0 :         return false;
    2097             :     }
    2098           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2099           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorD3D10'");
    2100           0 :         return false;
    2101             :     }
    2102             :     // Sentinel = 'size'
    2103           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2104           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorD3D10'");
    2105           0 :         return false;
    2106             :     }
    2107           0 :     return true;
    2108             : }
    2109             : 
    2110           0 : auto PImageBridgeChild::Write(
    2111             :         const OpRemoveTexture& v__,
    2112             :         Message* msg__) -> void
    2113             : {
    2114             :     // skipping actor field that's meaningless on this side
    2115           0 :     Write((v__).textureChild(), msg__, false);
    2116             :     // Sentinel = 'texture'
    2117           0 :     (msg__)->WriteSentinel(3654462510);
    2118           0 : }
    2119             : 
    2120           0 : auto PImageBridgeChild::Read(
    2121             :         OpRemoveTexture* v__,
    2122             :         const Message* msg__,
    2123             :         PickleIterator* iter__) -> bool
    2124             : {
    2125             :     // skipping actor field that's meaningless on this side
    2126           0 :     if ((!(Read((&((v__)->textureChild())), msg__, iter__, false)))) {
    2127           0 :         FatalError("Error deserializing 'textureChild' (PTexture) member of 'OpRemoveTexture'");
    2128           0 :         return false;
    2129             :     }
    2130             :     // Sentinel = 'texture'
    2131           0 :     if ((!((msg__)->ReadSentinel(iter__, 3654462510)))) {
    2132           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'textureChild' (PTexture) member of 'OpRemoveTexture'");
    2133           0 :         return false;
    2134             :     }
    2135           0 :     return true;
    2136             : }
    2137             : 
    2138           0 : auto PImageBridgeChild::Write(
    2139             :         const nsTArray<AsyncParentMessageData>& v__,
    2140             :         Message* msg__) -> void
    2141             : {
    2142           0 :     uint32_t length = (v__).Length();
    2143           0 :     Write(length, msg__);
    2144             :     // Sentinel = ('length', 'AsyncParentMessageData[]')
    2145           0 :     (msg__)->WriteSentinel(3866187970);
    2146             : 
    2147           0 :     for (auto& elem : v__) {
    2148           0 :         Write(elem, msg__);
    2149             :         // Sentinel = 'AsyncParentMessageData[]'
    2150           0 :         (msg__)->WriteSentinel(4194735789);
    2151             :     }
    2152           0 : }
    2153             : 
    2154           0 : auto PImageBridgeChild::Read(
    2155             :         nsTArray<AsyncParentMessageData>* v__,
    2156             :         const Message* msg__,
    2157             :         PickleIterator* iter__) -> bool
    2158             : {
    2159           0 :     nsTArray<AsyncParentMessageData> fa;
    2160             :     uint32_t length;
    2161           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    2162           0 :         mozilla::ipc::ArrayLengthReadError("AsyncParentMessageData[]");
    2163           0 :         return false;
    2164             :     }
    2165             :     // Sentinel = ('length', 'AsyncParentMessageData[]')
    2166           0 :     if ((!((msg__)->ReadSentinel(iter__, 3866187970)))) {
    2167           0 :         mozilla::ipc::SentinelReadError("AsyncParentMessageData[]");
    2168           0 :         return false;
    2169             :     }
    2170             : 
    2171           0 :     AsyncParentMessageData* elems = (fa).AppendElements(length);
    2172           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    2173           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    2174           0 :             FatalError("Error deserializing 'AsyncParentMessageData[i]'");
    2175           0 :             return false;
    2176             :         }
    2177             :         // Sentinel = 'AsyncParentMessageData[]'
    2178           0 :         if ((!((msg__)->ReadSentinel(iter__, 4194735789)))) {
    2179           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'AsyncParentMessageData[i]'");
    2180           0 :             return false;
    2181             :         }
    2182             :     }
    2183           0 :     (v__)->SwapElements(fa);
    2184           0 :     return true;
    2185             : }
    2186             : 
    2187           0 : auto PImageBridgeChild::Write(
    2188             :         const OpNotifyNotUsed& v__,
    2189             :         Message* msg__) -> void
    2190             : {
    2191           0 :     Write((v__).TextureId(), msg__);
    2192             :     // Sentinel = 'TextureId'
    2193           0 :     (msg__)->WriteSentinel(2545498075);
    2194           0 :     Write((v__).fwdTransactionId(), msg__);
    2195             :     // Sentinel = 'fwdTransactionId'
    2196           0 :     (msg__)->WriteSentinel(2023976742);
    2197           0 : }
    2198             : 
    2199           0 : auto PImageBridgeChild::Read(
    2200             :         OpNotifyNotUsed* v__,
    2201             :         const Message* msg__,
    2202             :         PickleIterator* iter__) -> bool
    2203             : {
    2204           0 :     if ((!(Read((&((v__)->TextureId())), msg__, iter__)))) {
    2205           0 :         FatalError("Error deserializing 'TextureId' (uint64_t) member of 'OpNotifyNotUsed'");
    2206           0 :         return false;
    2207             :     }
    2208             :     // Sentinel = 'TextureId'
    2209           0 :     if ((!((msg__)->ReadSentinel(iter__, 2545498075)))) {
    2210           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'TextureId' (uint64_t) member of 'OpNotifyNotUsed'");
    2211           0 :         return false;
    2212             :     }
    2213           0 :     if ((!(Read((&((v__)->fwdTransactionId())), msg__, iter__)))) {
    2214           0 :         FatalError("Error deserializing 'fwdTransactionId' (uint64_t) member of 'OpNotifyNotUsed'");
    2215           0 :         return false;
    2216             :     }
    2217             :     // Sentinel = 'fwdTransactionId'
    2218           0 :     if ((!((msg__)->ReadSentinel(iter__, 2023976742)))) {
    2219           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fwdTransactionId' (uint64_t) member of 'OpNotifyNotUsed'");
    2220           0 :         return false;
    2221             :     }
    2222           0 :     return true;
    2223             : }
    2224             : 
    2225           0 : auto PImageBridgeChild::Write(
    2226             :         Shmem& v__,
    2227             :         Message* msg__) -> void
    2228             : {
    2229           0 :     IPC::WriteParam(msg__, v__);
    2230           0 :     (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    2231           0 :     (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    2232           0 : }
    2233             : 
    2234           0 : auto PImageBridgeChild::Read(
    2235             :         Shmem* v__,
    2236             :         const Message* msg__,
    2237             :         PickleIterator* iter__) -> bool
    2238             : {
    2239           0 :     Shmem tmp;
    2240           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
    2241           0 :         return false;
    2242             :     }
    2243             : 
    2244           0 :     Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    2245           0 :     Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
    2246           0 :     if (rawmem) {
    2247           0 :         (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
    2248           0 :         return true;
    2249             :     }
    2250           0 :     (*(v__)) = Shmem();
    2251           0 :     return true;
    2252             : }
    2253             : 
    2254           0 : auto PImageBridgeChild::Write(
    2255             :         const SurfaceDescriptorDIB& v__,
    2256             :         Message* msg__) -> void
    2257             : {
    2258           0 :     Write((v__).surface(), msg__);
    2259             :     // Sentinel = 'surface'
    2260           0 :     (msg__)->WriteSentinel(2386836878);
    2261           0 : }
    2262             : 
    2263           0 : auto PImageBridgeChild::Read(
    2264             :         SurfaceDescriptorDIB* v__,
    2265             :         const Message* msg__,
    2266             :         PickleIterator* iter__) -> bool
    2267             : {
    2268           0 :     if ((!(Read((&((v__)->surface())), msg__, iter__)))) {
    2269           0 :         FatalError("Error deserializing 'surface' (uintptr_t) member of 'SurfaceDescriptorDIB'");
    2270           0 :         return false;
    2271             :     }
    2272             :     // Sentinel = 'surface'
    2273           0 :     if ((!((msg__)->ReadSentinel(iter__, 2386836878)))) {
    2274           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'surface' (uintptr_t) member of 'SurfaceDescriptorDIB'");
    2275           0 :         return false;
    2276             :     }
    2277           0 :     return true;
    2278             : }
    2279             : 
    2280           0 : auto PImageBridgeChild::Write(
    2281             :         const SurfaceDescriptorSharedGLTexture& v__,
    2282             :         Message* msg__) -> void
    2283             : {
    2284           0 :     Write((v__).texture(), msg__);
    2285             :     // Sentinel = 'texture'
    2286           0 :     (msg__)->WriteSentinel(3654462510);
    2287           0 :     Write((v__).target(), msg__);
    2288             :     // Sentinel = 'target'
    2289           0 :     (msg__)->WriteSentinel(2226365285);
    2290           0 :     Write((v__).fence(), msg__);
    2291             :     // Sentinel = 'fence'
    2292           0 :     (msg__)->WriteSentinel(1225633926);
    2293           0 :     Write((v__).size(), msg__);
    2294             :     // Sentinel = 'size'
    2295           0 :     (msg__)->WriteSentinel(931048223);
    2296           0 :     Write((v__).hasAlpha(), msg__);
    2297             :     // Sentinel = 'hasAlpha'
    2298           0 :     (msg__)->WriteSentinel(309498444);
    2299           0 : }
    2300             : 
    2301           0 : auto PImageBridgeChild::Read(
    2302             :         SurfaceDescriptorSharedGLTexture* v__,
    2303             :         const Message* msg__,
    2304             :         PickleIterator* iter__) -> bool
    2305             : {
    2306           0 :     if ((!(Read((&((v__)->texture())), msg__, iter__)))) {
    2307           0 :         FatalError("Error deserializing 'texture' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
    2308           0 :         return false;
    2309             :     }
    2310             :     // Sentinel = 'texture'
    2311           0 :     if ((!((msg__)->ReadSentinel(iter__, 3654462510)))) {
    2312           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'texture' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
    2313           0 :         return false;
    2314             :     }
    2315           0 :     if ((!(Read((&((v__)->target())), msg__, iter__)))) {
    2316           0 :         FatalError("Error deserializing 'target' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
    2317           0 :         return false;
    2318             :     }
    2319             :     // Sentinel = 'target'
    2320           0 :     if ((!((msg__)->ReadSentinel(iter__, 2226365285)))) {
    2321           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'target' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
    2322           0 :         return false;
    2323             :     }
    2324           0 :     if ((!(Read((&((v__)->fence())), msg__, iter__)))) {
    2325           0 :         FatalError("Error deserializing 'fence' (uintptr_t) member of 'SurfaceDescriptorSharedGLTexture'");
    2326           0 :         return false;
    2327             :     }
    2328             :     // Sentinel = 'fence'
    2329           0 :     if ((!((msg__)->ReadSentinel(iter__, 1225633926)))) {
    2330           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fence' (uintptr_t) member of 'SurfaceDescriptorSharedGLTexture'");
    2331           0 :         return false;
    2332             :     }
    2333           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2334           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorSharedGLTexture'");
    2335           0 :         return false;
    2336             :     }
    2337             :     // Sentinel = 'size'
    2338           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2339           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorSharedGLTexture'");
    2340           0 :         return false;
    2341             :     }
    2342           0 :     if ((!(Read((&((v__)->hasAlpha())), msg__, iter__)))) {
    2343           0 :         FatalError("Error deserializing 'hasAlpha' (bool) member of 'SurfaceDescriptorSharedGLTexture'");
    2344           0 :         return false;
    2345             :     }
    2346             :     // Sentinel = 'hasAlpha'
    2347           0 :     if ((!((msg__)->ReadSentinel(iter__, 309498444)))) {
    2348           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hasAlpha' (bool) member of 'SurfaceDescriptorSharedGLTexture'");
    2349           0 :         return false;
    2350             :     }
    2351           0 :     return true;
    2352             : }
    2353             : 
    2354           0 : auto PImageBridgeChild::Write(
    2355             :         const PMediaSystemResourceManagerChild* v__,
    2356             :         Message* msg__,
    2357             :         bool nullable__) -> void
    2358             : {
    2359             :     int32_t id;
    2360           0 :     if ((!(v__))) {
    2361           0 :         if ((!(nullable__))) {
    2362           0 :             FatalError("NULL actor value passed to non-nullable param");
    2363             :         }
    2364           0 :         id = 0;
    2365             :     }
    2366             :     else {
    2367           0 :         id = (v__)->Id();
    2368           0 :         if ((1) == (id)) {
    2369           0 :             FatalError("actor has been |delete|d");
    2370             :         }
    2371             :     }
    2372             : 
    2373           0 :     Write(id, msg__);
    2374           0 : }
    2375             : 
    2376           0 : auto PImageBridgeChild::Read(
    2377             :         PMediaSystemResourceManagerChild** v__,
    2378             :         const Message* msg__,
    2379             :         PickleIterator* iter__,
    2380             :         bool nullable__) -> bool
    2381             : {
    2382           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PMediaSystemResourceManager", PMediaSystemResourceManagerMsgStart);
    2383           0 :     if ((actor).isNothing()) {
    2384           0 :         return false;
    2385             :     }
    2386             : 
    2387           0 :     (*(v__)) = static_cast<PMediaSystemResourceManagerChild*>((actor).value());
    2388           0 :     return true;
    2389             : }
    2390             : 
    2391           0 : auto PImageBridgeChild::Write(
    2392             :         const nsTArray<TileDescriptor>& v__,
    2393             :         Message* msg__) -> void
    2394             : {
    2395           0 :     uint32_t length = (v__).Length();
    2396           0 :     Write(length, msg__);
    2397             :     // Sentinel = ('length', 'TileDescriptor[]')
    2398           0 :     (msg__)->WriteSentinel(709203120);
    2399             : 
    2400           0 :     for (auto& elem : v__) {
    2401           0 :         Write(elem, msg__);
    2402             :         // Sentinel = 'TileDescriptor[]'
    2403           0 :         (msg__)->WriteSentinel(3848440807);
    2404             :     }
    2405           0 : }
    2406             : 
    2407           0 : auto PImageBridgeChild::Read(
    2408             :         nsTArray<TileDescriptor>* v__,
    2409             :         const Message* msg__,
    2410             :         PickleIterator* iter__) -> bool
    2411             : {
    2412           0 :     nsTArray<TileDescriptor> fa;
    2413             :     uint32_t length;
    2414           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    2415           0 :         mozilla::ipc::ArrayLengthReadError("TileDescriptor[]");
    2416           0 :         return false;
    2417             :     }
    2418             :     // Sentinel = ('length', 'TileDescriptor[]')
    2419           0 :     if ((!((msg__)->ReadSentinel(iter__, 709203120)))) {
    2420           0 :         mozilla::ipc::SentinelReadError("TileDescriptor[]");
    2421           0 :         return false;
    2422             :     }
    2423             : 
    2424           0 :     TileDescriptor* elems = (fa).AppendElements(length);
    2425           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    2426           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    2427           0 :             FatalError("Error deserializing 'TileDescriptor[i]'");
    2428           0 :             return false;
    2429             :         }
    2430             :         // Sentinel = 'TileDescriptor[]'
    2431           0 :         if ((!((msg__)->ReadSentinel(iter__, 3848440807)))) {
    2432           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'TileDescriptor[i]'");
    2433           0 :             return false;
    2434             :         }
    2435             :     }
    2436           0 :     (v__)->SwapElements(fa);
    2437           0 :     return true;
    2438             : }
    2439             : 
    2440           0 : auto PImageBridgeChild::Write(
    2441             :         const ImageCompositeNotification& v__,
    2442             :         Message* msg__) -> void
    2443             : {
    2444           0 :     Write((v__).compositable(), msg__);
    2445             :     // Sentinel = 'compositable'
    2446           0 :     (msg__)->WriteSentinel(4031958248);
    2447           0 :     Write((v__).imageTimeStamp(), msg__);
    2448             :     // Sentinel = 'imageTimeStamp'
    2449           0 :     (msg__)->WriteSentinel(1759084471);
    2450           0 :     Write((v__).firstCompositeTimeStamp(), msg__);
    2451             :     // Sentinel = 'firstCompositeTimeStamp'
    2452           0 :     (msg__)->WriteSentinel(2056815046);
    2453           0 :     Write((v__).frameID(), msg__);
    2454             :     // Sentinel = 'frameID'
    2455           0 :     (msg__)->WriteSentinel(3054835247);
    2456           0 :     Write((v__).producerID(), msg__);
    2457             :     // Sentinel = 'producerID'
    2458           0 :     (msg__)->WriteSentinel(1942472743);
    2459           0 : }
    2460             : 
    2461           0 : auto PImageBridgeChild::Read(
    2462             :         ImageCompositeNotification* v__,
    2463             :         const Message* msg__,
    2464             :         PickleIterator* iter__) -> bool
    2465             : {
    2466           0 :     if ((!(Read((&((v__)->compositable())), msg__, iter__)))) {
    2467           0 :         FatalError("Error deserializing 'compositable' (CompositableHandle) member of 'ImageCompositeNotification'");
    2468           0 :         return false;
    2469             :     }
    2470             :     // Sentinel = 'compositable'
    2471           0 :     if ((!((msg__)->ReadSentinel(iter__, 4031958248)))) {
    2472           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'compositable' (CompositableHandle) member of 'ImageCompositeNotification'");
    2473           0 :         return false;
    2474             :     }
    2475           0 :     if ((!(Read((&((v__)->imageTimeStamp())), msg__, iter__)))) {
    2476           0 :         FatalError("Error deserializing 'imageTimeStamp' (TimeStamp) member of 'ImageCompositeNotification'");
    2477           0 :         return false;
    2478             :     }
    2479             :     // Sentinel = 'imageTimeStamp'
    2480           0 :     if ((!((msg__)->ReadSentinel(iter__, 1759084471)))) {
    2481           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'imageTimeStamp' (TimeStamp) member of 'ImageCompositeNotification'");
    2482           0 :         return false;
    2483             :     }
    2484           0 :     if ((!(Read((&((v__)->firstCompositeTimeStamp())), msg__, iter__)))) {
    2485           0 :         FatalError("Error deserializing 'firstCompositeTimeStamp' (TimeStamp) member of 'ImageCompositeNotification'");
    2486           0 :         return false;
    2487             :     }
    2488             :     // Sentinel = 'firstCompositeTimeStamp'
    2489           0 :     if ((!((msg__)->ReadSentinel(iter__, 2056815046)))) {
    2490           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'firstCompositeTimeStamp' (TimeStamp) member of 'ImageCompositeNotification'");
    2491           0 :         return false;
    2492             :     }
    2493           0 :     if ((!(Read((&((v__)->frameID())), msg__, iter__)))) {
    2494           0 :         FatalError("Error deserializing 'frameID' (uint32_t) member of 'ImageCompositeNotification'");
    2495           0 :         return false;
    2496             :     }
    2497             :     // Sentinel = 'frameID'
    2498           0 :     if ((!((msg__)->ReadSentinel(iter__, 3054835247)))) {
    2499           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'frameID' (uint32_t) member of 'ImageCompositeNotification'");
    2500           0 :         return false;
    2501             :     }
    2502           0 :     if ((!(Read((&((v__)->producerID())), msg__, iter__)))) {
    2503           0 :         FatalError("Error deserializing 'producerID' (uint32_t) member of 'ImageCompositeNotification'");
    2504           0 :         return false;
    2505             :     }
    2506             :     // Sentinel = 'producerID'
    2507           0 :     if ((!((msg__)->ReadSentinel(iter__, 1942472743)))) {
    2508           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'producerID' (uint32_t) member of 'ImageCompositeNotification'");
    2509           0 :         return false;
    2510             :     }
    2511           0 :     return true;
    2512             : }
    2513             : 
    2514           0 : auto PImageBridgeChild::Write(
    2515             :         const ReadLockInit& v__,
    2516             :         Message* msg__) -> void
    2517             : {
    2518           0 :     Write((v__).sharedLock(), msg__);
    2519             :     // Sentinel = 'sharedLock'
    2520           0 :     (msg__)->WriteSentinel(1249896484);
    2521           0 :     Write((v__).handle(), msg__);
    2522             :     // Sentinel = 'handle'
    2523           0 :     (msg__)->WriteSentinel(453975108);
    2524           0 : }
    2525             : 
    2526           0 : auto PImageBridgeChild::Read(
    2527             :         ReadLockInit* v__,
    2528             :         const Message* msg__,
    2529             :         PickleIterator* iter__) -> bool
    2530             : {
    2531           0 :     if ((!(Read((&((v__)->sharedLock())), msg__, iter__)))) {
    2532           0 :         FatalError("Error deserializing 'sharedLock' (ReadLockDescriptor) member of 'ReadLockInit'");
    2533           0 :         return false;
    2534             :     }
    2535             :     // Sentinel = 'sharedLock'
    2536           0 :     if ((!((msg__)->ReadSentinel(iter__, 1249896484)))) {
    2537           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sharedLock' (ReadLockDescriptor) member of 'ReadLockInit'");
    2538           0 :         return false;
    2539             :     }
    2540           0 :     if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
    2541           0 :         FatalError("Error deserializing 'handle' (ReadLockHandle) member of 'ReadLockInit'");
    2542           0 :         return false;
    2543             :     }
    2544             :     // Sentinel = 'handle'
    2545           0 :     if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
    2546           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handle' (ReadLockHandle) member of 'ReadLockInit'");
    2547           0 :         return false;
    2548             :     }
    2549           0 :     return true;
    2550             : }
    2551             : 
    2552           0 : auto PImageBridgeChild::Write(
    2553             :         const EGLImageDescriptor& v__,
    2554             :         Message* msg__) -> void
    2555             : {
    2556           0 :     Write((v__).image(), msg__);
    2557             :     // Sentinel = 'image'
    2558           0 :     (msg__)->WriteSentinel(103190282);
    2559           0 :     Write((v__).fence(), msg__);
    2560             :     // Sentinel = 'fence'
    2561           0 :     (msg__)->WriteSentinel(1225633926);
    2562           0 :     Write((v__).size(), msg__);
    2563             :     // Sentinel = 'size'
    2564           0 :     (msg__)->WriteSentinel(931048223);
    2565           0 :     Write((v__).hasAlpha(), msg__);
    2566             :     // Sentinel = 'hasAlpha'
    2567           0 :     (msg__)->WriteSentinel(309498444);
    2568           0 : }
    2569             : 
    2570           0 : auto PImageBridgeChild::Read(
    2571             :         EGLImageDescriptor* v__,
    2572             :         const Message* msg__,
    2573             :         PickleIterator* iter__) -> bool
    2574             : {
    2575           0 :     if ((!(Read((&((v__)->image())), msg__, iter__)))) {
    2576           0 :         FatalError("Error deserializing 'image' (uintptr_t) member of 'EGLImageDescriptor'");
    2577           0 :         return false;
    2578             :     }
    2579             :     // Sentinel = 'image'
    2580           0 :     if ((!((msg__)->ReadSentinel(iter__, 103190282)))) {
    2581           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'image' (uintptr_t) member of 'EGLImageDescriptor'");
    2582           0 :         return false;
    2583             :     }
    2584           0 :     if ((!(Read((&((v__)->fence())), msg__, iter__)))) {
    2585           0 :         FatalError("Error deserializing 'fence' (uintptr_t) member of 'EGLImageDescriptor'");
    2586           0 :         return false;
    2587             :     }
    2588             :     // Sentinel = 'fence'
    2589           0 :     if ((!((msg__)->ReadSentinel(iter__, 1225633926)))) {
    2590           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fence' (uintptr_t) member of 'EGLImageDescriptor'");
    2591           0 :         return false;
    2592             :     }
    2593           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2594           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'EGLImageDescriptor'");
    2595           0 :         return false;
    2596             :     }
    2597             :     // Sentinel = 'size'
    2598           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2599           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'EGLImageDescriptor'");
    2600           0 :         return false;
    2601             :     }
    2602           0 :     if ((!(Read((&((v__)->hasAlpha())), msg__, iter__)))) {
    2603           0 :         FatalError("Error deserializing 'hasAlpha' (bool) member of 'EGLImageDescriptor'");
    2604           0 :         return false;
    2605             :     }
    2606             :     // Sentinel = 'hasAlpha'
    2607           0 :     if ((!((msg__)->ReadSentinel(iter__, 309498444)))) {
    2608           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hasAlpha' (bool) member of 'EGLImageDescriptor'");
    2609           0 :         return false;
    2610             :     }
    2611           0 :     return true;
    2612             : }
    2613             : 
    2614           0 : auto PImageBridgeChild::Write(
    2615             :         const RGBDescriptor& v__,
    2616             :         Message* msg__) -> void
    2617             : {
    2618           0 :     Write((v__).size(), msg__);
    2619             :     // Sentinel = 'size'
    2620           0 :     (msg__)->WriteSentinel(931048223);
    2621           0 :     Write((v__).format(), msg__);
    2622             :     // Sentinel = 'format'
    2623           0 :     (msg__)->WriteSentinel(2052265543);
    2624           0 :     Write((v__).hasIntermediateBuffer(), msg__);
    2625             :     // Sentinel = 'hasIntermediateBuffer'
    2626           0 :     (msg__)->WriteSentinel(985857996);
    2627           0 : }
    2628             : 
    2629           0 : auto PImageBridgeChild::Read(
    2630             :         RGBDescriptor* v__,
    2631             :         const Message* msg__,
    2632             :         PickleIterator* iter__) -> bool
    2633             : {
    2634           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2635           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'RGBDescriptor'");
    2636           0 :         return false;
    2637             :     }
    2638             :     // Sentinel = 'size'
    2639           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2640           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'RGBDescriptor'");
    2641           0 :         return false;
    2642             :     }
    2643           0 :     if ((!(Read((&((v__)->format())), msg__, iter__)))) {
    2644           0 :         FatalError("Error deserializing 'format' (SurfaceFormat) member of 'RGBDescriptor'");
    2645           0 :         return false;
    2646             :     }
    2647             :     // Sentinel = 'format'
    2648           0 :     if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
    2649           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'RGBDescriptor'");
    2650           0 :         return false;
    2651             :     }
    2652           0 :     if ((!(Read((&((v__)->hasIntermediateBuffer())), msg__, iter__)))) {
    2653           0 :         FatalError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'RGBDescriptor'");
    2654           0 :         return false;
    2655             :     }
    2656             :     // Sentinel = 'hasIntermediateBuffer'
    2657           0 :     if ((!((msg__)->ReadSentinel(iter__, 985857996)))) {
    2658           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'RGBDescriptor'");
    2659           0 :         return false;
    2660             :     }
    2661           0 :     return true;
    2662             : }
    2663             : 
    2664           0 : auto PImageBridgeChild::Write(
    2665             :         const nsTArray<TimedTexture>& v__,
    2666             :         Message* msg__) -> void
    2667             : {
    2668           0 :     uint32_t length = (v__).Length();
    2669           0 :     Write(length, msg__);
    2670             :     // Sentinel = ('length', 'TimedTexture[]')
    2671           0 :     (msg__)->WriteSentinel(3681527117);
    2672             : 
    2673           0 :     for (auto& elem : v__) {
    2674           0 :         Write(elem, msg__);
    2675             :         // Sentinel = 'TimedTexture[]'
    2676           0 :         (msg__)->WriteSentinel(1531351012);
    2677             :     }
    2678           0 : }
    2679             : 
    2680           0 : auto PImageBridgeChild::Read(
    2681             :         nsTArray<TimedTexture>* v__,
    2682             :         const Message* msg__,
    2683             :         PickleIterator* iter__) -> bool
    2684             : {
    2685           0 :     nsTArray<TimedTexture> fa;
    2686             :     uint32_t length;
    2687           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    2688           0 :         mozilla::ipc::ArrayLengthReadError("TimedTexture[]");
    2689           0 :         return false;
    2690             :     }
    2691             :     // Sentinel = ('length', 'TimedTexture[]')
    2692           0 :     if ((!((msg__)->ReadSentinel(iter__, 3681527117)))) {
    2693           0 :         mozilla::ipc::SentinelReadError("TimedTexture[]");
    2694           0 :         return false;
    2695             :     }
    2696             : 
    2697           0 :     TimedTexture* elems = (fa).AppendElements(length);
    2698           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    2699           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    2700           0 :             FatalError("Error deserializing 'TimedTexture[i]'");
    2701           0 :             return false;
    2702             :         }
    2703             :         // Sentinel = 'TimedTexture[]'
    2704           0 :         if ((!((msg__)->ReadSentinel(iter__, 1531351012)))) {
    2705           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'TimedTexture[i]'");
    2706           0 :             return false;
    2707             :         }
    2708             :     }
    2709           0 :     (v__)->SwapElements(fa);
    2710           0 :     return true;
    2711             : }
    2712             : 
    2713           0 : auto PImageBridgeChild::Write(
    2714             :         const SurfaceDescriptorDXGIYCbCr& v__,
    2715             :         Message* msg__) -> void
    2716             : {
    2717           0 :     Write((v__).handleY(), msg__);
    2718             :     // Sentinel = 'handleY'
    2719           0 :     (msg__)->WriteSentinel(2719705368);
    2720           0 :     Write((v__).handleCb(), msg__);
    2721             :     // Sentinel = 'handleCb'
    2722           0 :     (msg__)->WriteSentinel(2777335333);
    2723           0 :     Write((v__).handleCr(), msg__);
    2724             :     // Sentinel = 'handleCr'
    2725           0 :     (msg__)->WriteSentinel(2777335349);
    2726           0 :     Write((v__).size(), msg__);
    2727             :     // Sentinel = 'size'
    2728           0 :     (msg__)->WriteSentinel(931048223);
    2729           0 :     Write((v__).sizeY(), msg__);
    2730             :     // Sentinel = 'sizeY'
    2731           0 :     (msg__)->WriteSentinel(886619725);
    2732           0 :     Write((v__).sizeCbCr(), msg__);
    2733             :     // Sentinel = 'sizeCbCr'
    2734           0 :     (msg__)->WriteSentinel(2196484423);
    2735           0 : }
    2736             : 
    2737           0 : auto PImageBridgeChild::Read(
    2738             :         SurfaceDescriptorDXGIYCbCr* v__,
    2739             :         const Message* msg__,
    2740             :         PickleIterator* iter__) -> bool
    2741             : {
    2742           0 :     if ((!(Read((&((v__)->handleY())), msg__, iter__)))) {
    2743           0 :         FatalError("Error deserializing 'handleY' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2744           0 :         return false;
    2745             :     }
    2746             :     // Sentinel = 'handleY'
    2747           0 :     if ((!((msg__)->ReadSentinel(iter__, 2719705368)))) {
    2748           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handleY' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2749           0 :         return false;
    2750             :     }
    2751           0 :     if ((!(Read((&((v__)->handleCb())), msg__, iter__)))) {
    2752           0 :         FatalError("Error deserializing 'handleCb' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2753           0 :         return false;
    2754             :     }
    2755             :     // Sentinel = 'handleCb'
    2756           0 :     if ((!((msg__)->ReadSentinel(iter__, 2777335333)))) {
    2757           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handleCb' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2758           0 :         return false;
    2759             :     }
    2760           0 :     if ((!(Read((&((v__)->handleCr())), msg__, iter__)))) {
    2761           0 :         FatalError("Error deserializing 'handleCr' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2762           0 :         return false;
    2763             :     }
    2764             :     // Sentinel = 'handleCr'
    2765           0 :     if ((!((msg__)->ReadSentinel(iter__, 2777335349)))) {
    2766           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handleCr' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2767           0 :         return false;
    2768             :     }
    2769           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2770           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2771           0 :         return false;
    2772             :     }
    2773             :     // Sentinel = 'size'
    2774           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2775           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2776           0 :         return false;
    2777             :     }
    2778           0 :     if ((!(Read((&((v__)->sizeY())), msg__, iter__)))) {
    2779           0 :         FatalError("Error deserializing 'sizeY' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2780           0 :         return false;
    2781             :     }
    2782             :     // Sentinel = 'sizeY'
    2783           0 :     if ((!((msg__)->ReadSentinel(iter__, 886619725)))) {
    2784           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sizeY' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2785           0 :         return false;
    2786             :     }
    2787           0 :     if ((!(Read((&((v__)->sizeCbCr())), msg__, iter__)))) {
    2788           0 :         FatalError("Error deserializing 'sizeCbCr' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2789           0 :         return false;
    2790             :     }
    2791             :     // Sentinel = 'sizeCbCr'
    2792           0 :     if ((!((msg__)->ReadSentinel(iter__, 2196484423)))) {
    2793           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sizeCbCr' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2794           0 :         return false;
    2795             :     }
    2796           0 :     return true;
    2797             : }
    2798             : 
    2799           0 : auto PImageBridgeChild::Write(
    2800             :         const MemoryOrShmem& v__,
    2801             :         Message* msg__) -> void
    2802             : {
    2803             :     typedef MemoryOrShmem type__;
    2804           0 :     Write(int((v__).type()), msg__);
    2805             :     // Sentinel = 'MemoryOrShmem'
    2806           0 :     (msg__)->WriteSentinel(3227621763);
    2807             : 
    2808           0 :     switch ((v__).type()) {
    2809             :     case type__::Tuintptr_t:
    2810             :         {
    2811           0 :             Write((v__).get_uintptr_t(), msg__);
    2812             :             // Sentinel = 'Tuintptr_t'
    2813           0 :             (msg__)->WriteSentinel(3218141805);
    2814           0 :             return;
    2815             :         }
    2816             :     case type__::TShmem:
    2817             :         {
    2818           0 :             Write((v__).get_Shmem(), msg__);
    2819             :             // Sentinel = 'TShmem'
    2820           0 :             (msg__)->WriteSentinel(3517971266);
    2821           0 :             return;
    2822             :         }
    2823             :     default:
    2824             :         {
    2825           0 :             FatalError("unknown union type");
    2826           0 :             return;
    2827             :         }
    2828             :     }
    2829             : }
    2830             : 
    2831           0 : auto PImageBridgeChild::Read(
    2832             :         MemoryOrShmem* v__,
    2833             :         const Message* msg__,
    2834             :         PickleIterator* iter__) -> bool
    2835             : {
    2836             :     typedef MemoryOrShmem type__;
    2837             :     int type;
    2838           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2839           0 :         mozilla::ipc::UnionTypeReadError("MemoryOrShmem");
    2840           0 :         return false;
    2841             :     }
    2842             :     // Sentinel = 'MemoryOrShmem'
    2843           0 :     if ((!((msg__)->ReadSentinel(iter__, 3227621763)))) {
    2844           0 :         mozilla::ipc::SentinelReadError("MemoryOrShmem");
    2845           0 :         return false;
    2846             :     }
    2847             : 
    2848           0 :     switch (type) {
    2849             :     case type__::Tuintptr_t:
    2850             :         {
    2851           0 :             uintptr_t tmp = uintptr_t();
    2852           0 :             (*(v__)) = tmp;
    2853           0 :             if ((!(Read((&((v__)->get_uintptr_t())), msg__, iter__)))) {
    2854           0 :                 FatalError("Error deserializing Union type");
    2855           0 :                 return false;
    2856             :             }
    2857             :             // Sentinel = 'Tuintptr_t'
    2858           0 :             if ((!((msg__)->ReadSentinel(iter__, 3218141805)))) {
    2859           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2860           0 :                 return false;
    2861             :             }
    2862           0 :             return true;
    2863             :         }
    2864             :     case type__::TShmem:
    2865             :         {
    2866           0 :             Shmem tmp = Shmem();
    2867           0 :             (*(v__)) = tmp;
    2868           0 :             if ((!(Read((&((v__)->get_Shmem())), msg__, iter__)))) {
    2869           0 :                 FatalError("Error deserializing Union type");
    2870           0 :                 return false;
    2871             :             }
    2872             :             // Sentinel = 'TShmem'
    2873           0 :             if ((!((msg__)->ReadSentinel(iter__, 3517971266)))) {
    2874           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2875           0 :                 return false;
    2876             :             }
    2877           0 :             return true;
    2878             :         }
    2879             :     default:
    2880             :         {
    2881           0 :             FatalError("unknown union type");
    2882           0 :             return false;
    2883             :         }
    2884             :     }
    2885             : }
    2886             : 
    2887           0 : auto PImageBridgeChild::Write(
    2888             :         const CompositableOperation& v__,
    2889             :         Message* msg__) -> void
    2890             : {
    2891           0 :     Write((v__).compositable(), msg__);
    2892             :     // Sentinel = 'compositable'
    2893           0 :     (msg__)->WriteSentinel(4031958248);
    2894           0 :     Write((v__).detail(), msg__);
    2895             :     // Sentinel = 'detail'
    2896           0 :     (msg__)->WriteSentinel(3931660205);
    2897           0 : }
    2898             : 
    2899           0 : auto PImageBridgeChild::Read(
    2900             :         CompositableOperation* v__,
    2901             :         const Message* msg__,
    2902             :         PickleIterator* iter__) -> bool
    2903             : {
    2904           0 :     if ((!(Read((&((v__)->compositable())), msg__, iter__)))) {
    2905           0 :         FatalError("Error deserializing 'compositable' (CompositableHandle) member of 'CompositableOperation'");
    2906           0 :         return false;
    2907             :     }
    2908             :     // Sentinel = 'compositable'
    2909           0 :     if ((!((msg__)->ReadSentinel(iter__, 4031958248)))) {
    2910           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'compositable' (CompositableHandle) member of 'CompositableOperation'");
    2911           0 :         return false;
    2912             :     }
    2913           0 :     if ((!(Read((&((v__)->detail())), msg__, iter__)))) {
    2914           0 :         FatalError("Error deserializing 'detail' (CompositableOperationDetail) member of 'CompositableOperation'");
    2915           0 :         return false;
    2916             :     }
    2917             :     // Sentinel = 'detail'
    2918           0 :     if ((!((msg__)->ReadSentinel(iter__, 3931660205)))) {
    2919           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'detail' (CompositableOperationDetail) member of 'CompositableOperation'");
    2920           0 :         return false;
    2921             :     }
    2922           0 :     return true;
    2923             : }
    2924             : 
    2925           0 : auto PImageBridgeChild::Write(
    2926             :         const CompositableOperationDetail& v__,
    2927             :         Message* msg__) -> void
    2928             : {
    2929             :     typedef CompositableOperationDetail type__;
    2930           0 :     Write(int((v__).type()), msg__);
    2931             :     // Sentinel = 'CompositableOperationDetail'
    2932           0 :     (msg__)->WriteSentinel(676020439);
    2933             : 
    2934           0 :     switch ((v__).type()) {
    2935             :     case type__::TOpPaintTextureRegion:
    2936             :         {
    2937           0 :             Write((v__).get_OpPaintTextureRegion(), msg__);
    2938             :             // Sentinel = 'TOpPaintTextureRegion'
    2939           0 :             (msg__)->WriteSentinel(734509049);
    2940           0 :             return;
    2941             :         }
    2942             :     case type__::TOpUseTiledLayerBuffer:
    2943             :         {
    2944           0 :             Write((v__).get_OpUseTiledLayerBuffer(), msg__);
    2945             :             // Sentinel = 'TOpUseTiledLayerBuffer'
    2946           0 :             (msg__)->WriteSentinel(916924693);
    2947           0 :             return;
    2948             :         }
    2949             :     case type__::TOpRemoveTexture:
    2950             :         {
    2951           0 :             Write((v__).get_OpRemoveTexture(), msg__);
    2952             :             // Sentinel = 'TOpRemoveTexture'
    2953           0 :             (msg__)->WriteSentinel(2379906162);
    2954           0 :             return;
    2955             :         }
    2956             :     case type__::TOpUseTexture:
    2957             :         {
    2958           0 :             Write((v__).get_OpUseTexture(), msg__);
    2959             :             // Sentinel = 'TOpUseTexture'
    2960           0 :             (msg__)->WriteSentinel(581630962);
    2961           0 :             return;
    2962             :         }
    2963             :     case type__::TOpUseComponentAlphaTextures:
    2964             :         {
    2965           0 :             Write((v__).get_OpUseComponentAlphaTextures(), msg__);
    2966             :             // Sentinel = 'TOpUseComponentAlphaTextures'
    2967           0 :             (msg__)->WriteSentinel(457985329);
    2968           0 :             return;
    2969             :         }
    2970             :     default:
    2971             :         {
    2972           0 :             FatalError("unknown union type");
    2973           0 :             return;
    2974             :         }
    2975             :     }
    2976             : }
    2977             : 
    2978           0 : auto PImageBridgeChild::Read(
    2979             :         CompositableOperationDetail* v__,
    2980             :         const Message* msg__,
    2981             :         PickleIterator* iter__) -> bool
    2982             : {
    2983             :     typedef CompositableOperationDetail type__;
    2984             :     int type;
    2985           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2986           0 :         mozilla::ipc::UnionTypeReadError("CompositableOperationDetail");
    2987           0 :         return false;
    2988             :     }
    2989             :     // Sentinel = 'CompositableOperationDetail'
    2990           0 :     if ((!((msg__)->ReadSentinel(iter__, 676020439)))) {
    2991           0 :         mozilla::ipc::SentinelReadError("CompositableOperationDetail");
    2992           0 :         return false;
    2993             :     }
    2994             : 
    2995           0 :     switch (type) {
    2996             :     case type__::TOpPaintTextureRegion:
    2997             :         {
    2998           0 :             OpPaintTextureRegion tmp = OpPaintTextureRegion();
    2999           0 :             (*(v__)) = tmp;
    3000           0 :             if ((!(Read((&((v__)->get_OpPaintTextureRegion())), msg__, iter__)))) {
    3001           0 :                 FatalError("Error deserializing Union type");
    3002           0 :                 return false;
    3003             :             }
    3004             :             // Sentinel = 'TOpPaintTextureRegion'
    3005           0 :             if ((!((msg__)->ReadSentinel(iter__, 734509049)))) {
    3006           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3007           0 :                 return false;
    3008             :             }
    3009           0 :             return true;
    3010             :         }
    3011             :     case type__::TOpUseTiledLayerBuffer:
    3012             :         {
    3013           0 :             OpUseTiledLayerBuffer tmp = OpUseTiledLayerBuffer();
    3014           0 :             (*(v__)) = tmp;
    3015           0 :             if ((!(Read((&((v__)->get_OpUseTiledLayerBuffer())), msg__, iter__)))) {
    3016           0 :                 FatalError("Error deserializing Union type");
    3017           0 :                 return false;
    3018             :             }
    3019             :             // Sentinel = 'TOpUseTiledLayerBuffer'
    3020           0 :             if ((!((msg__)->ReadSentinel(iter__, 916924693)))) {
    3021           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3022           0 :                 return false;
    3023             :             }
    3024           0 :             return true;
    3025             :         }
    3026             :     case type__::TOpRemoveTexture:
    3027             :         {
    3028           0 :             OpRemoveTexture tmp = OpRemoveTexture();
    3029           0 :             (*(v__)) = tmp;
    3030           0 :             if ((!(Read((&((v__)->get_OpRemoveTexture())), msg__, iter__)))) {
    3031           0 :                 FatalError("Error deserializing Union type");
    3032           0 :                 return false;
    3033             :             }
    3034             :             // Sentinel = 'TOpRemoveTexture'
    3035           0 :             if ((!((msg__)->ReadSentinel(iter__, 2379906162)))) {
    3036           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3037           0 :                 return false;
    3038             :             }
    3039           0 :             return true;
    3040             :         }
    3041             :     case type__::TOpUseTexture:
    3042             :         {
    3043           0 :             OpUseTexture tmp = OpUseTexture();
    3044           0 :             (*(v__)) = tmp;
    3045           0 :             if ((!(Read((&((v__)->get_OpUseTexture())), msg__, iter__)))) {
    3046           0 :                 FatalError("Error deserializing Union type");
    3047           0 :                 return false;
    3048             :             }
    3049             :             // Sentinel = 'TOpUseTexture'
    3050           0 :             if ((!((msg__)->ReadSentinel(iter__, 581630962)))) {
    3051           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3052           0 :                 return false;
    3053             :             }
    3054           0 :             return true;
    3055             :         }
    3056             :     case type__::TOpUseComponentAlphaTextures:
    3057             :         {
    3058           0 :             OpUseComponentAlphaTextures tmp = OpUseComponentAlphaTextures();
    3059           0 :             (*(v__)) = tmp;
    3060           0 :             if ((!(Read((&((v__)->get_OpUseComponentAlphaTextures())), msg__, iter__)))) {
    3061           0 :                 FatalError("Error deserializing Union type");
    3062           0 :                 return false;
    3063             :             }
    3064             :             // Sentinel = 'TOpUseComponentAlphaTextures'
    3065           0 :             if ((!((msg__)->ReadSentinel(iter__, 457985329)))) {
    3066           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3067           0 :                 return false;
    3068             :             }
    3069           0 :             return true;
    3070             :         }
    3071             :     default:
    3072             :         {
    3073           0 :             FatalError("unknown union type");
    3074           0 :             return false;
    3075             :         }
    3076             :     }
    3077             : }
    3078             : 
    3079           0 : auto PImageBridgeChild::Write(
    3080             :         const nsTArray<OpDestroy>& v__,
    3081             :         Message* msg__) -> void
    3082             : {
    3083           0 :     uint32_t length = (v__).Length();
    3084           0 :     Write(length, msg__);
    3085             :     // Sentinel = ('length', 'OpDestroy[]')
    3086           0 :     (msg__)->WriteSentinel(1887202695);
    3087             : 
    3088           0 :     for (auto& elem : v__) {
    3089           0 :         Write(elem, msg__);
    3090             :         // Sentinel = 'OpDestroy[]'
    3091           0 :         (msg__)->WriteSentinel(2935587554);
    3092             :     }
    3093           0 : }
    3094             : 
    3095           0 : auto PImageBridgeChild::Read(
    3096             :         nsTArray<OpDestroy>* v__,
    3097             :         const Message* msg__,
    3098             :         PickleIterator* iter__) -> bool
    3099             : {
    3100           0 :     nsTArray<OpDestroy> fa;
    3101             :     uint32_t length;
    3102           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    3103           0 :         mozilla::ipc::ArrayLengthReadError("OpDestroy[]");
    3104           0 :         return false;
    3105             :     }
    3106             :     // Sentinel = ('length', 'OpDestroy[]')
    3107           0 :     if ((!((msg__)->ReadSentinel(iter__, 1887202695)))) {
    3108           0 :         mozilla::ipc::SentinelReadError("OpDestroy[]");
    3109           0 :         return false;
    3110             :     }
    3111             : 
    3112           0 :     OpDestroy* elems = (fa).AppendElements(length);
    3113           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    3114           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    3115           0 :             FatalError("Error deserializing 'OpDestroy[i]'");
    3116           0 :             return false;
    3117             :         }
    3118             :         // Sentinel = 'OpDestroy[]'
    3119           0 :         if ((!((msg__)->ReadSentinel(iter__, 2935587554)))) {
    3120           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'OpDestroy[i]'");
    3121           0 :             return false;
    3122             :         }
    3123             :     }
    3124           0 :     (v__)->SwapElements(fa);
    3125           0 :     return true;
    3126             : }
    3127             : 
    3128           0 : auto PImageBridgeChild::Write(
    3129             :         const OpUseTexture& v__,
    3130             :         Message* msg__) -> void
    3131             : {
    3132           0 :     Write((v__).textures(), msg__);
    3133             :     // Sentinel = 'textures'
    3134           0 :     (msg__)->WriteSentinel(1760338112);
    3135           0 : }
    3136             : 
    3137           0 : auto PImageBridgeChild::Read(
    3138             :         OpUseTexture* v__,
    3139             :         const Message* msg__,
    3140             :         PickleIterator* iter__) -> bool
    3141             : {
    3142           0 :     if ((!(Read((&((v__)->textures())), msg__, iter__)))) {
    3143           0 :         FatalError("Error deserializing 'textures' (TimedTexture[]) member of 'OpUseTexture'");
    3144           0 :         return false;
    3145             :     }
    3146             :     // Sentinel = 'textures'
    3147           0 :     if ((!((msg__)->ReadSentinel(iter__, 1760338112)))) {
    3148           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'textures' (TimedTexture[]) member of 'OpUseTexture'");
    3149           0 :         return false;
    3150             :     }
    3151           0 :     return true;
    3152             : }
    3153             : 
    3154           0 : auto PImageBridgeChild::Write(
    3155             :         const CrossProcessSemaphoreDescriptor& v__,
    3156             :         Message* msg__) -> void
    3157             : {
    3158           0 :     Write((v__).sem(), msg__);
    3159             :     // Sentinel = 'sem'
    3160           0 :     (msg__)->WriteSentinel(3763377306);
    3161           0 : }
    3162             : 
    3163           0 : auto PImageBridgeChild::Read(
    3164             :         CrossProcessSemaphoreDescriptor* v__,
    3165             :         const Message* msg__,
    3166             :         PickleIterator* iter__) -> bool
    3167             : {
    3168           0 :     if ((!(Read((&((v__)->sem())), msg__, iter__)))) {
    3169           0 :         FatalError("Error deserializing 'sem' (CrossProcessSemaphoreHandle) member of 'CrossProcessSemaphoreDescriptor'");
    3170           0 :         return false;
    3171             :     }
    3172             :     // Sentinel = 'sem'
    3173           0 :     if ((!((msg__)->ReadSentinel(iter__, 3763377306)))) {
    3174           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sem' (CrossProcessSemaphoreHandle) member of 'CrossProcessSemaphoreDescriptor'");
    3175           0 :         return false;
    3176             :     }
    3177           0 :     return true;
    3178             : }
    3179             : 
    3180           0 : auto PImageBridgeChild::Write(
    3181             :         const ReadLockDescriptor& v__,
    3182             :         Message* msg__) -> void
    3183             : {
    3184             :     typedef ReadLockDescriptor type__;
    3185           0 :     Write(int((v__).type()), msg__);
    3186             :     // Sentinel = 'ReadLockDescriptor'
    3187           0 :     (msg__)->WriteSentinel(3238270764);
    3188             : 
    3189           0 :     switch ((v__).type()) {
    3190             :     case type__::TShmemSection:
    3191             :         {
    3192           0 :             Write((v__).get_ShmemSection(), msg__);
    3193             :             // Sentinel = 'TShmemSection'
    3194           0 :             (msg__)->WriteSentinel(3037204004);
    3195           0 :             return;
    3196             :         }
    3197             :     case type__::TCrossProcessSemaphoreDescriptor:
    3198             :         {
    3199           0 :             Write((v__).get_CrossProcessSemaphoreDescriptor(), msg__);
    3200             :             // Sentinel = 'TCrossProcessSemaphoreDescriptor'
    3201           0 :             (msg__)->WriteSentinel(2516853580);
    3202           0 :             return;
    3203             :         }
    3204             :     case type__::Tuintptr_t:
    3205             :         {
    3206           0 :             Write((v__).get_uintptr_t(), msg__);
    3207             :             // Sentinel = 'Tuintptr_t'
    3208           0 :             (msg__)->WriteSentinel(3218141805);
    3209           0 :             return;
    3210             :         }
    3211             :     case type__::Tnull_t:
    3212             :         {
    3213           0 :             Write((v__).get_null_t(), msg__);
    3214             :             // Sentinel = 'Tnull_t'
    3215           0 :             (msg__)->WriteSentinel(3731137201);
    3216           0 :             return;
    3217             :         }
    3218             :     default:
    3219             :         {
    3220           0 :             FatalError("unknown union type");
    3221           0 :             return;
    3222             :         }
    3223             :     }
    3224             : }
    3225             : 
    3226           0 : auto PImageBridgeChild::Read(
    3227             :         ReadLockDescriptor* v__,
    3228             :         const Message* msg__,
    3229             :         PickleIterator* iter__) -> bool
    3230             : {
    3231             :     typedef ReadLockDescriptor type__;
    3232             :     int type;
    3233           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    3234           0 :         mozilla::ipc::UnionTypeReadError("ReadLockDescriptor");
    3235           0 :         return false;
    3236             :     }
    3237             :     // Sentinel = 'ReadLockDescriptor'
    3238           0 :     if ((!((msg__)->ReadSentinel(iter__, 3238270764)))) {
    3239           0 :         mozilla::ipc::SentinelReadError("ReadLockDescriptor");
    3240           0 :         return false;
    3241             :     }
    3242             : 
    3243           0 :     switch (type) {
    3244             :     case type__::TShmemSection:
    3245             :         {
    3246           0 :             ShmemSection tmp = ShmemSection();
    3247           0 :             (*(v__)) = tmp;
    3248           0 :             if ((!(Read((&((v__)->get_ShmemSection())), msg__, iter__)))) {
    3249           0 :                 FatalError("Error deserializing Union type");
    3250           0 :                 return false;
    3251             :             }
    3252             :             // Sentinel = 'TShmemSection'
    3253           0 :             if ((!((msg__)->ReadSentinel(iter__, 3037204004)))) {
    3254           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3255           0 :                 return false;
    3256             :             }
    3257           0 :             return true;
    3258             :         }
    3259             :     case type__::TCrossProcessSemaphoreDescriptor:
    3260             :         {
    3261           0 :             CrossProcessSemaphoreDescriptor tmp = CrossProcessSemaphoreDescriptor();
    3262           0 :             (*(v__)) = tmp;
    3263           0 :             if ((!(Read((&((v__)->get_CrossProcessSemaphoreDescriptor())), msg__, iter__)))) {
    3264           0 :                 FatalError("Error deserializing Union type");
    3265           0 :                 return false;
    3266             :             }
    3267             :             // Sentinel = 'TCrossProcessSemaphoreDescriptor'
    3268           0 :             if ((!((msg__)->ReadSentinel(iter__, 2516853580)))) {
    3269           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3270           0 :                 return false;
    3271             :             }
    3272           0 :             return true;
    3273             :         }
    3274             :     case type__::Tuintptr_t:
    3275             :         {
    3276           0 :             uintptr_t tmp = uintptr_t();
    3277           0 :             (*(v__)) = tmp;
    3278           0 :             if ((!(Read((&((v__)->get_uintptr_t())), msg__, iter__)))) {
    3279           0 :                 FatalError("Error deserializing Union type");
    3280           0 :                 return false;
    3281             :             }
    3282             :             // Sentinel = 'Tuintptr_t'
    3283           0 :             if ((!((msg__)->ReadSentinel(iter__, 3218141805)))) {
    3284           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3285           0 :                 return false;
    3286             :             }
    3287           0 :             return true;
    3288             :         }
    3289             :     case type__::Tnull_t:
    3290             :         {
    3291             :             null_t tmp = null_t();
    3292           0 :             (*(v__)) = tmp;
    3293           0 :             if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
    3294           0 :                 FatalError("Error deserializing Union type");
    3295           0 :                 return false;
    3296             :             }
    3297             :             // Sentinel = 'Tnull_t'
    3298           0 :             if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
    3299           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3300           0 :                 return false;
    3301             :             }
    3302           0 :             return true;
    3303             :         }
    3304             :     default:
    3305             :         {
    3306           0 :             FatalError("unknown union type");
    3307           0 :             return false;
    3308             :         }
    3309             :     }
    3310             : }
    3311             : 
    3312           0 : auto PImageBridgeChild::Write(
    3313             :         const TexturedTileDescriptor& v__,
    3314             :         Message* msg__) -> void
    3315             : {
    3316             :     // skipping actor field that's meaningless on this side
    3317           0 :     Write((v__).textureChild(), msg__, false);
    3318             :     // Sentinel = 'texture'
    3319           0 :     (msg__)->WriteSentinel(3654462510);
    3320           0 :     Write((v__).textureOnWhite(), msg__);
    3321             :     // Sentinel = 'textureOnWhite'
    3322           0 :     (msg__)->WriteSentinel(4123373327);
    3323           0 :     Write((v__).updateRect(), msg__);
    3324             :     // Sentinel = 'updateRect'
    3325           0 :     (msg__)->WriteSentinel(655450235);
    3326           0 :     Write((v__).sharedLock(), msg__);
    3327             :     // Sentinel = 'sharedLock'
    3328           0 :     (msg__)->WriteSentinel(1249896484);
    3329           0 :     Write((v__).sharedLockOnWhite(), msg__);
    3330             :     // Sentinel = 'sharedLockOnWhite'
    3331           0 :     (msg__)->WriteSentinel(2954092853);
    3332           0 :     Write((v__).wasPlaceholder(), msg__);
    3333             :     // Sentinel = 'wasPlaceholder'
    3334           0 :     (msg__)->WriteSentinel(3801375384);
    3335           0 : }
    3336             : 
    3337           0 : auto PImageBridgeChild::Read(
    3338             :         TexturedTileDescriptor* v__,
    3339             :         const Message* msg__,
    3340             :         PickleIterator* iter__) -> bool
    3341             : {
    3342             :     // skipping actor field that's meaningless on this side
    3343           0 :     if ((!(Read((&((v__)->textureChild())), msg__, iter__, false)))) {
    3344           0 :         FatalError("Error deserializing 'textureChild' (PTexture) member of 'TexturedTileDescriptor'");
    3345           0 :         return false;
    3346             :     }
    3347             :     // Sentinel = 'texture'
    3348           0 :     if ((!((msg__)->ReadSentinel(iter__, 3654462510)))) {
    3349           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'textureChild' (PTexture) member of 'TexturedTileDescriptor'");
    3350           0 :         return false;
    3351             :     }
    3352           0 :     if ((!(Read((&((v__)->textureOnWhite())), msg__, iter__)))) {
    3353           0 :         FatalError("Error deserializing 'textureOnWhite' (MaybeTexture) member of 'TexturedTileDescriptor'");
    3354           0 :         return false;
    3355             :     }
    3356             :     // Sentinel = 'textureOnWhite'
    3357           0 :     if ((!((msg__)->ReadSentinel(iter__, 4123373327)))) {
    3358           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'textureOnWhite' (MaybeTexture) member of 'TexturedTileDescriptor'");
    3359           0 :         return false;
    3360             :     }
    3361           0 :     if ((!(Read((&((v__)->updateRect())), msg__, iter__)))) {
    3362           0 :         FatalError("Error deserializing 'updateRect' (IntRect) member of 'TexturedTileDescriptor'");
    3363           0 :         return false;
    3364             :     }
    3365             :     // Sentinel = 'updateRect'
    3366           0 :     if ((!((msg__)->ReadSentinel(iter__, 655450235)))) {
    3367           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'updateRect' (IntRect) member of 'TexturedTileDescriptor'");
    3368           0 :         return false;
    3369             :     }
    3370           0 :     if ((!(Read((&((v__)->sharedLock())), msg__, iter__)))) {
    3371           0 :         FatalError("Error deserializing 'sharedLock' (ReadLockDescriptor) member of 'TexturedTileDescriptor'");
    3372           0 :         return false;
    3373             :     }
    3374             :     // Sentinel = 'sharedLock'
    3375           0 :     if ((!((msg__)->ReadSentinel(iter__, 1249896484)))) {
    3376           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sharedLock' (ReadLockDescriptor) member of 'TexturedTileDescriptor'");
    3377           0 :         return false;
    3378             :     }
    3379           0 :     if ((!(Read((&((v__)->sharedLockOnWhite())), msg__, iter__)))) {
    3380           0 :         FatalError("Error deserializing 'sharedLockOnWhite' (ReadLockDescriptor) member of 'TexturedTileDescriptor'");
    3381           0 :         return false;
    3382             :     }
    3383             :     // Sentinel = 'sharedLockOnWhite'
    3384           0 :     if ((!((msg__)->ReadSentinel(iter__, 2954092853)))) {
    3385           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sharedLockOnWhite' (ReadLockDescriptor) member of 'TexturedTileDescriptor'");
    3386           0 :         return false;
    3387             :     }
    3388           0 :     if ((!(Read((&((v__)->wasPlaceholder())), msg__, iter__)))) {
    3389           0 :         FatalError("Error deserializing 'wasPlaceholder' (bool) member of 'TexturedTileDescriptor'");
    3390           0 :         return false;
    3391             :     }
    3392             :     // Sentinel = 'wasPlaceholder'
    3393           0 :     if ((!((msg__)->ReadSentinel(iter__, 3801375384)))) {
    3394           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'wasPlaceholder' (bool) member of 'TexturedTileDescriptor'");
    3395           0 :         return false;
    3396             :     }
    3397           0 :     return true;
    3398             : }
    3399             : 
    3400           0 : auto PImageBridgeChild::Write(
    3401             :         const OpUseComponentAlphaTextures& v__,
    3402             :         Message* msg__) -> void
    3403             : {
    3404             :     // skipping actor field that's meaningless on this side
    3405           0 :     Write((v__).textureOnBlackChild(), msg__, false);
    3406             :     // Sentinel = 'textureOnBlack'
    3407           0 :     (msg__)->WriteSentinel(2782165397);
    3408             :     // skipping actor field that's meaningless on this side
    3409           0 :     Write((v__).textureOnWhiteChild(), msg__, false);
    3410             :     // Sentinel = 'textureOnWhite'
    3411           0 :     (msg__)->WriteSentinel(4123373327);
    3412           0 :     Write((v__).sharedLockBlack(), msg__);
    3413             :     // Sentinel = 'sharedLockBlack'
    3414           0 :     (msg__)->WriteSentinel(3577180696);
    3415           0 :     Write((v__).sharedLockWhite(), msg__);
    3416             :     // Sentinel = 'sharedLockWhite'
    3417           0 :     (msg__)->WriteSentinel(3643157938);
    3418           0 : }
    3419             : 
    3420           0 : auto PImageBridgeChild::Read(
    3421             :         OpUseComponentAlphaTextures* v__,
    3422             :         const Message* msg__,
    3423             :         PickleIterator* iter__) -> bool
    3424             : {
    3425             :     // skipping actor field that's meaningless on this side
    3426           0 :     if ((!(Read((&((v__)->textureOnBlackChild())), msg__, iter__, false)))) {
    3427           0 :         FatalError("Error deserializing 'textureOnBlackChild' (PTexture) member of 'OpUseComponentAlphaTextures'");
    3428           0 :         return false;
    3429             :     }
    3430             :     // Sentinel = 'textureOnBlack'
    3431           0 :     if ((!((msg__)->ReadSentinel(iter__, 2782165397)))) {
    3432           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'textureOnBlackChild' (PTexture) member of 'OpUseComponentAlphaTextures'");
    3433           0 :         return false;
    3434             :     }
    3435             :     // skipping actor field that's meaningless on this side
    3436           0 :     if ((!(Read((&((v__)->textureOnWhiteChild())), msg__, iter__, false)))) {
    3437           0 :         FatalError("Error deserializing 'textureOnWhiteChild' (PTexture) member of 'OpUseComponentAlphaTextures'");
    3438           0 :         return false;
    3439             :     }
    3440             :     // Sentinel = 'textureOnWhite'
    3441           0 :     if ((!((msg__)->ReadSentinel(iter__, 4123373327)))) {
    3442           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'textureOnWhiteChild' (PTexture) member of 'OpUseComponentAlphaTextures'");
    3443           0 :         return false;
    3444             :     }
    3445           0 :     if ((!(Read((&((v__)->sharedLockBlack())), msg__, iter__)))) {
    3446           0 :         FatalError("Error deserializing 'sharedLockBlack' (ReadLockHandle) member of 'OpUseComponentAlphaTextures'");
    3447           0 :         return false;
    3448             :     }
    3449             :     // Sentinel = 'sharedLockBlack'
    3450           0 :     if ((!((msg__)->ReadSentinel(iter__, 3577180696)))) {
    3451           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sharedLockBlack' (ReadLockHandle) member of 'OpUseComponentAlphaTextures'");
    3452           0 :         return false;
    3453             :     }
    3454           0 :     if ((!(Read((&((v__)->sharedLockWhite())), msg__, iter__)))) {
    3455           0 :         FatalError("Error deserializing 'sharedLockWhite' (ReadLockHandle) member of 'OpUseComponentAlphaTextures'");
    3456           0 :         return false;
    3457             :     }
    3458             :     // Sentinel = 'sharedLockWhite'
    3459           0 :     if ((!((msg__)->ReadSentinel(iter__, 3643157938)))) {
    3460           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sharedLockWhite' (ReadLockHandle) member of 'OpUseComponentAlphaTextures'");
    3461           0 :         return false;
    3462             :     }
    3463           0 :     return true;
    3464             : }
    3465             : 
    3466           0 : auto PImageBridgeChild::Write(
    3467             :         const SurfaceDescriptorMacIOSurface& v__,
    3468             :         Message* msg__) -> void
    3469             : {
    3470           0 :     Write((v__).surfaceId(), msg__);
    3471             :     // Sentinel = 'surfaceId'
    3472           0 :     (msg__)->WriteSentinel(4108848731);
    3473           0 :     Write((v__).scaleFactor(), msg__);
    3474             :     // Sentinel = 'scaleFactor'
    3475           0 :     (msg__)->WriteSentinel(1184637148);
    3476           0 :     Write((v__).isOpaque(), msg__);
    3477             :     // Sentinel = 'isOpaque'
    3478           0 :     (msg__)->WriteSentinel(3519081617);
    3479           0 : }
    3480             : 
    3481           0 : auto PImageBridgeChild::Read(
    3482             :         SurfaceDescriptorMacIOSurface* v__,
    3483             :         const Message* msg__,
    3484             :         PickleIterator* iter__) -> bool
    3485             : {
    3486           0 :     if ((!(Read((&((v__)->surfaceId())), msg__, iter__)))) {
    3487           0 :         FatalError("Error deserializing 'surfaceId' (uint32_t) member of 'SurfaceDescriptorMacIOSurface'");
    3488           0 :         return false;
    3489             :     }
    3490             :     // Sentinel = 'surfaceId'
    3491           0 :     if ((!((msg__)->ReadSentinel(iter__, 4108848731)))) {
    3492           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'surfaceId' (uint32_t) member of 'SurfaceDescriptorMacIOSurface'");
    3493           0 :         return false;
    3494             :     }
    3495           0 :     if ((!(Read((&((v__)->scaleFactor())), msg__, iter__)))) {
    3496           0 :         FatalError("Error deserializing 'scaleFactor' (double) member of 'SurfaceDescriptorMacIOSurface'");
    3497           0 :         return false;
    3498             :     }
    3499             :     // Sentinel = 'scaleFactor'
    3500           0 :     if ((!((msg__)->ReadSentinel(iter__, 1184637148)))) {
    3501           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'scaleFactor' (double) member of 'SurfaceDescriptorMacIOSurface'");
    3502           0 :         return false;
    3503             :     }
    3504           0 :     if ((!(Read((&((v__)->isOpaque())), msg__, iter__)))) {
    3505           0 :         FatalError("Error deserializing 'isOpaque' (bool) member of 'SurfaceDescriptorMacIOSurface'");
    3506           0 :         return false;
    3507             :     }
    3508             :     // Sentinel = 'isOpaque'
    3509           0 :     if ((!((msg__)->ReadSentinel(iter__, 3519081617)))) {
    3510           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isOpaque' (bool) member of 'SurfaceDescriptorMacIOSurface'");
    3511           0 :         return false;
    3512             :     }
    3513           0 :     return true;
    3514             : }
    3515             : 
    3516           0 : auto PImageBridgeChild::Write(
    3517             :         const BufferDescriptor& v__,
    3518             :         Message* msg__) -> void
    3519             : {
    3520             :     typedef BufferDescriptor type__;
    3521           0 :     Write(int((v__).type()), msg__);
    3522             :     // Sentinel = 'BufferDescriptor'
    3523           0 :     (msg__)->WriteSentinel(764535685);
    3524             : 
    3525           0 :     switch ((v__).type()) {
    3526             :     case type__::TRGBDescriptor:
    3527             :         {
    3528           0 :             Write((v__).get_RGBDescriptor(), msg__);
    3529             :             // Sentinel = 'TRGBDescriptor'
    3530           0 :             (msg__)->WriteSentinel(2888062100);
    3531           0 :             return;
    3532             :         }
    3533             :     case type__::TYCbCrDescriptor:
    3534             :         {
    3535           0 :             Write((v__).get_YCbCrDescriptor(), msg__);
    3536             :             // Sentinel = 'TYCbCrDescriptor'
    3537           0 :             (msg__)->WriteSentinel(3533945878);
    3538           0 :             return;
    3539             :         }
    3540             :     default:
    3541             :         {
    3542           0 :             FatalError("unknown union type");
    3543           0 :             return;
    3544             :         }
    3545             :     }
    3546             : }
    3547             : 
    3548           0 : auto PImageBridgeChild::Read(
    3549             :         BufferDescriptor* v__,
    3550             :         const Message* msg__,
    3551             :         PickleIterator* iter__) -> bool
    3552             : {
    3553             :     typedef BufferDescriptor type__;
    3554             :     int type;
    3555           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    3556           0 :         mozilla::ipc::UnionTypeReadError("BufferDescriptor");
    3557           0 :         return false;
    3558             :     }
    3559             :     // Sentinel = 'BufferDescriptor'
    3560           0 :     if ((!((msg__)->ReadSentinel(iter__, 764535685)))) {
    3561           0 :         mozilla::ipc::SentinelReadError("BufferDescriptor");
    3562           0 :         return false;
    3563             :     }
    3564             : 
    3565           0 :     switch (type) {
    3566             :     case type__::TRGBDescriptor:
    3567             :         {
    3568           0 :             RGBDescriptor tmp = RGBDescriptor();
    3569           0 :             (*(v__)) = tmp;
    3570           0 :             if ((!(Read((&((v__)->get_RGBDescriptor())), msg__, iter__)))) {
    3571           0 :                 FatalError("Error deserializing Union type");
    3572           0 :                 return false;
    3573             :             }
    3574             :             // Sentinel = 'TRGBDescriptor'
    3575           0 :             if ((!((msg__)->ReadSentinel(iter__, 2888062100)))) {
    3576           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3577           0 :                 return false;
    3578             :             }
    3579           0 :             return true;
    3580             :         }
    3581             :     case type__::TYCbCrDescriptor:
    3582             :         {
    3583           0 :             YCbCrDescriptor tmp = YCbCrDescriptor();
    3584           0 :             (*(v__)) = tmp;
    3585           0 :             if ((!(Read((&((v__)->get_YCbCrDescriptor())), msg__, iter__)))) {
    3586           0 :                 FatalError("Error deserializing Union type");
    3587           0 :                 return false;
    3588             :             }
    3589             :             // Sentinel = 'TYCbCrDescriptor'
    3590           0 :             if ((!((msg__)->ReadSentinel(iter__, 3533945878)))) {
    3591           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3592           0 :                 return false;
    3593             :             }
    3594           0 :             return true;
    3595             :         }
    3596             :     default:
    3597             :         {
    3598           0 :             FatalError("unknown union type");
    3599           0 :             return false;
    3600             :         }
    3601             :     }
    3602             : }
    3603             : 
    3604           0 : auto PImageBridgeChild::Write(
    3605             :         const nsTArray<CompositableOperation>& v__,
    3606             :         Message* msg__) -> void
    3607             : {
    3608           0 :     uint32_t length = (v__).Length();
    3609           0 :     Write(length, msg__);
    3610             :     // Sentinel = ('length', 'CompositableOperation[]')
    3611           0 :     (msg__)->WriteSentinel(1164254785);
    3612             : 
    3613           0 :     for (auto& elem : v__) {
    3614           0 :         Write(elem, msg__);
    3615             :         // Sentinel = 'CompositableOperation[]'
    3616           0 :         (msg__)->WriteSentinel(574132320);
    3617             :     }
    3618           0 : }
    3619             : 
    3620           0 : auto PImageBridgeChild::Read(
    3621             :         nsTArray<CompositableOperation>* v__,
    3622             :         const Message* msg__,
    3623             :         PickleIterator* iter__) -> bool
    3624             : {
    3625           0 :     nsTArray<CompositableOperation> fa;
    3626             :     uint32_t length;
    3627           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    3628           0 :         mozilla::ipc::ArrayLengthReadError("CompositableOperation[]");
    3629           0 :         return false;
    3630             :     }
    3631             :     // Sentinel = ('length', 'CompositableOperation[]')
    3632           0 :     if ((!((msg__)->ReadSentinel(iter__, 1164254785)))) {
    3633           0 :         mozilla::ipc::SentinelReadError("CompositableOperation[]");
    3634           0 :         return false;
    3635             :     }
    3636             : 
    3637           0 :     CompositableOperation* elems = (fa).AppendElements(length);
    3638           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    3639           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    3640           0 :             FatalError("Error deserializing 'CompositableOperation[i]'");
    3641           0 :             return false;
    3642             :         }
    3643             :         // Sentinel = 'CompositableOperation[]'
    3644           0 :         if ((!((msg__)->ReadSentinel(iter__, 574132320)))) {
    3645           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'CompositableOperation[i]'");
    3646           0 :             return false;
    3647             :         }
    3648             :     }
    3649           0 :     (v__)->SwapElements(fa);
    3650           0 :     return true;
    3651             : }
    3652             : 
    3653           0 : auto PImageBridgeChild::Write(
    3654             :         const PTextureChild* v__,
    3655             :         Message* msg__,
    3656             :         bool nullable__) -> void
    3657             : {
    3658             :     int32_t id;
    3659           0 :     if ((!(v__))) {
    3660           0 :         if ((!(nullable__))) {
    3661           0 :             FatalError("NULL actor value passed to non-nullable param");
    3662             :         }
    3663           0 :         id = 0;
    3664             :     }
    3665             :     else {
    3666           0 :         id = (v__)->Id();
    3667           0 :         if ((1) == (id)) {
    3668           0 :             FatalError("actor has been |delete|d");
    3669             :         }
    3670             :     }
    3671             : 
    3672           0 :     Write(id, msg__);
    3673           0 : }
    3674             : 
    3675           0 : auto PImageBridgeChild::Read(
    3676             :         PTextureChild** v__,
    3677             :         const Message* msg__,
    3678             :         PickleIterator* iter__,
    3679             :         bool nullable__) -> bool
    3680             : {
    3681           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTexture", PTextureMsgStart);
    3682           0 :     if ((actor).isNothing()) {
    3683           0 :         return false;
    3684             :     }
    3685             : 
    3686           0 :     (*(v__)) = static_cast<PTextureChild*>((actor).value());
    3687           0 :     return true;
    3688             : }
    3689             : 
    3690             : 
    3691             : 
    3692             : } // namespace layers
    3693             : } // namespace mozilla

Generated by: LCOV version 1.13