LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PVRManagerParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 6 1717 0.3 %
Date: 2017-07-14 16:53:18 Functions: 2 91 2.2 %
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/gfx/PVRManagerParent.h"
       8             : #include "gfxVR.h"
       9             : #ifdef MOZ_CRASHREPORTER
      10             : #  include "nsXULAppAPI.h"
      11             : #endif
      12             : 
      13             : #include "mozilla/layers/PTextureParent.h"
      14             : #include "mozilla/gfx/PVRLayerParent.h"
      15             : 
      16             : #include "nsIFile.h"
      17             : #include "GeckoProfiler.h"
      18             : 
      19             : namespace mozilla {
      20             : namespace gfx {
      21             : 
      22             : 
      23           0 : auto PVRManagerParent::RecvPTextureConstructor(
      24             :         PTextureParent* actor,
      25             :         const SurfaceDescriptor& aSharedData,
      26             :         const LayersBackend& aBackend,
      27             :         const TextureFlags& aTextureFlags,
      28             :         const uint64_t& aSerial) -> mozilla::ipc::IPCResult
      29             : {
      30           0 :     return IPC_OK();
      31             : }
      32             : 
      33           0 : auto PVRManagerParent::RecvPVRLayerConstructor(
      34             :         PVRLayerParent* actor,
      35             :         const uint32_t& aDisplayID,
      36             :         const float& aLeftEyeX,
      37             :         const float& aLeftEyeY,
      38             :         const float& aLeftEyeWidth,
      39             :         const float& aLeftEyeHeight,
      40             :         const float& aRightEyeX,
      41             :         const float& aRightEyeY,
      42             :         const float& aRightEyeWidth,
      43             :         const float& aRightEyeHeight,
      44             :         const uint32_t& aGroup) -> mozilla::ipc::IPCResult
      45             : {
      46           0 :     return IPC_OK();
      47             : }
      48             : 
      49             : 
      50           0 : auto PVRManagerParent::ProcessingError(
      51             :         Result aCode,
      52             :         const char* aReason) -> void
      53             : {
      54           0 : }
      55             : 
      56           0 : auto PVRManagerParent::ShouldContinueFromReplyTimeout() -> bool
      57             : {
      58           0 :     return true;
      59             : }
      60             : 
      61           0 : auto PVRManagerParent::EnteredCxxStack() -> void
      62             : {
      63           0 : }
      64             : 
      65           0 : auto PVRManagerParent::ExitedCxxStack() -> void
      66             : {
      67           0 : }
      68             : 
      69           0 : auto PVRManagerParent::EnteredCall() -> void
      70             : {
      71           0 : }
      72             : 
      73           0 : auto PVRManagerParent::ExitedCall() -> void
      74             : {
      75           0 : }
      76             : 
      77           3 : MOZ_IMPLICIT PVRManagerParent::PVRManagerParent() :
      78             :     mozilla::ipc::IToplevelProtocol(PVRManagerMsgStart, mozilla::ipc::ParentSide),
      79             :     mChannel("PVRManagerParent", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
      80           3 :     mState(PVRManager::__Start)
      81             : {
      82           3 :     MOZ_COUNT_CTOR(PVRManagerParent);
      83           3 : }
      84             : 
      85           0 : PVRManagerParent::~PVRManagerParent()
      86             : {
      87           0 :     MOZ_COUNT_DTOR(PVRManagerParent);
      88           0 : }
      89             : 
      90           0 : auto PVRManagerParent::ManagedPTextureParent(nsTArray<PTextureParent*>& aArr) const -> void
      91             : {
      92           0 :     (mManagedPTextureParent).ToArray(aArr);
      93           0 : }
      94             : 
      95           0 : auto PVRManagerParent::ManagedPTextureParent() const -> const ManagedContainer<PTextureParent>&
      96             : {
      97           0 :     return mManagedPTextureParent;
      98             : }
      99             : 
     100           0 : auto PVRManagerParent::ManagedPVRLayerParent(nsTArray<PVRLayerParent*>& aArr) const -> void
     101             : {
     102           0 :     (mManagedPVRLayerParent).ToArray(aArr);
     103           0 : }
     104             : 
     105           0 : auto PVRManagerParent::ManagedPVRLayerParent() const -> const ManagedContainer<PVRLayerParent>&
     106             : {
     107           0 :     return mManagedPVRLayerParent;
     108             : }
     109             : 
     110           0 : auto PVRManagerParent::SendParentAsyncMessages(const nsTArray<AsyncParentMessageData>& aMessages) -> bool
     111             : {
     112           0 :     IPC::Message* msg__ = PVRManager::Msg_ParentAsyncMessages(MSG_ROUTING_CONTROL);
     113             : 
     114           0 :     Write(aMessages, msg__);
     115             :     // Sentinel = 'aMessages'
     116           0 :     (msg__)->WriteSentinel(1923086976);
     117             : 
     118             : 
     119             : 
     120             : 
     121           0 :     if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     122           0 :         mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     123             :     }
     124           0 :     AUTO_PROFILER_LABEL("PVRManager::Msg_ParentAsyncMessages", OTHER);
     125           0 :     PVRManager::Transition(PVRManager::Msg_ParentAsyncMessages__ID, (&(mState)));
     126             : 
     127           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     128           0 :     return sendok__;
     129             : }
     130             : 
     131           0 : auto PVRManagerParent::SendUpdateDisplayInfo(const nsTArray<VRDisplayInfo>& aDisplayUpdates) -> bool
     132             : {
     133           0 :     IPC::Message* msg__ = PVRManager::Msg_UpdateDisplayInfo(MSG_ROUTING_CONTROL);
     134             : 
     135           0 :     Write(aDisplayUpdates, msg__);
     136             :     // Sentinel = 'aDisplayUpdates'
     137           0 :     (msg__)->WriteSentinel(4278158622);
     138             : 
     139             : 
     140             : 
     141             : 
     142           0 :     if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     143           0 :         mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     144             :     }
     145           0 :     AUTO_PROFILER_LABEL("PVRManager::Msg_UpdateDisplayInfo", OTHER);
     146           0 :     PVRManager::Transition(PVRManager::Msg_UpdateDisplayInfo__ID, (&(mState)));
     147             : 
     148           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     149           0 :     return sendok__;
     150             : }
     151             : 
     152           0 : auto PVRManagerParent::SendDispatchSubmitFrameResult(
     153             :         const uint32_t& aDisplayID,
     154             :         const VRSubmitFrameResultInfo& aResult) -> bool
     155             : {
     156           0 :     IPC::Message* msg__ = PVRManager::Msg_DispatchSubmitFrameResult(MSG_ROUTING_CONTROL);
     157             : 
     158           0 :     Write(aDisplayID, msg__);
     159             :     // Sentinel = 'aDisplayID'
     160           0 :     (msg__)->WriteSentinel(2139184880);
     161           0 :     Write(aResult, msg__);
     162             :     // Sentinel = 'aResult'
     163           0 :     (msg__)->WriteSentinel(3888726089);
     164             : 
     165             : 
     166             : 
     167             : 
     168           0 :     if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     169           0 :         mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     170             :     }
     171           0 :     AUTO_PROFILER_LABEL("PVRManager::Msg_DispatchSubmitFrameResult", OTHER);
     172           0 :     PVRManager::Transition(PVRManager::Msg_DispatchSubmitFrameResult__ID, (&(mState)));
     173             : 
     174           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     175           0 :     return sendok__;
     176             : }
     177             : 
     178           0 : auto PVRManagerParent::SendGamepadUpdate(const GamepadChangeEvent& aGamepadEvent) -> bool
     179             : {
     180           0 :     IPC::Message* msg__ = PVRManager::Msg_GamepadUpdate(MSG_ROUTING_CONTROL);
     181             : 
     182           0 :     Write(aGamepadEvent, msg__);
     183             :     // Sentinel = 'aGamepadEvent'
     184           0 :     (msg__)->WriteSentinel(1167032459);
     185             : 
     186             : 
     187             : 
     188             : 
     189           0 :     if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     190           0 :         mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     191             :     }
     192           0 :     AUTO_PROFILER_LABEL("PVRManager::Msg_GamepadUpdate", OTHER);
     193           0 :     PVRManager::Transition(PVRManager::Msg_GamepadUpdate__ID, (&(mState)));
     194             : 
     195           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     196           0 :     return sendok__;
     197             : }
     198             : 
     199           0 : auto PVRManagerParent::SendReplyGamepadVibrateHaptic(const uint32_t& aPromiseID) -> bool
     200             : {
     201           0 :     IPC::Message* msg__ = PVRManager::Msg_ReplyGamepadVibrateHaptic(MSG_ROUTING_CONTROL);
     202             : 
     203           0 :     Write(aPromiseID, msg__);
     204             :     // Sentinel = 'aPromiseID'
     205           0 :     (msg__)->WriteSentinel(1396174117);
     206             : 
     207             : 
     208             : 
     209             : 
     210           0 :     if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     211           0 :         mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     212             :     }
     213           0 :     AUTO_PROFILER_LABEL("PVRManager::Msg_ReplyGamepadVibrateHaptic", OTHER);
     214           0 :     PVRManager::Transition(PVRManager::Msg_ReplyGamepadVibrateHaptic__ID, (&(mState)));
     215             : 
     216           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     217           0 :     return sendok__;
     218             : }
     219             : 
     220           0 : auto PVRManagerParent::SendReplyCreateVRServiceTestDisplay(
     221             :         const nsCString& aID,
     222             :         const uint32_t& aPromiseID,
     223             :         const uint32_t& aDeviceID) -> bool
     224             : {
     225           0 :     IPC::Message* msg__ = PVRManager::Msg_ReplyCreateVRServiceTestDisplay(MSG_ROUTING_CONTROL);
     226             : 
     227           0 :     Write(aID, msg__);
     228             :     // Sentinel = 'aID'
     229           0 :     (msg__)->WriteSentinel(2735041849);
     230           0 :     Write(aPromiseID, msg__);
     231             :     // Sentinel = 'aPromiseID'
     232           0 :     (msg__)->WriteSentinel(1396174117);
     233           0 :     Write(aDeviceID, msg__);
     234             :     // Sentinel = 'aDeviceID'
     235           0 :     (msg__)->WriteSentinel(1963457757);
     236             : 
     237             : 
     238             : 
     239             : 
     240           0 :     if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     241           0 :         mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     242             :     }
     243           0 :     AUTO_PROFILER_LABEL("PVRManager::Msg_ReplyCreateVRServiceTestDisplay", OTHER);
     244           0 :     PVRManager::Transition(PVRManager::Msg_ReplyCreateVRServiceTestDisplay__ID, (&(mState)));
     245             : 
     246           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     247           0 :     return sendok__;
     248             : }
     249             : 
     250           0 : auto PVRManagerParent::SendReplyCreateVRServiceTestController(
     251             :         const nsCString& aID,
     252             :         const uint32_t& aPromiseID,
     253             :         const uint32_t& aDeviceID) -> bool
     254             : {
     255           0 :     IPC::Message* msg__ = PVRManager::Msg_ReplyCreateVRServiceTestController(MSG_ROUTING_CONTROL);
     256             : 
     257           0 :     Write(aID, msg__);
     258             :     // Sentinel = 'aID'
     259           0 :     (msg__)->WriteSentinel(2735041849);
     260           0 :     Write(aPromiseID, msg__);
     261             :     // Sentinel = 'aPromiseID'
     262           0 :     (msg__)->WriteSentinel(1396174117);
     263           0 :     Write(aDeviceID, msg__);
     264             :     // Sentinel = 'aDeviceID'
     265           0 :     (msg__)->WriteSentinel(1963457757);
     266             : 
     267             : 
     268             : 
     269             : 
     270           0 :     if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     271           0 :         mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     272             :     }
     273           0 :     AUTO_PROFILER_LABEL("PVRManager::Msg_ReplyCreateVRServiceTestController", OTHER);
     274           0 :     PVRManager::Transition(PVRManager::Msg_ReplyCreateVRServiceTestController__ID, (&(mState)));
     275             : 
     276           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     277           0 :     return sendok__;
     278             : }
     279             : 
     280           3 : auto PVRManagerParent::GetIPCChannel() -> MessageChannel*
     281             : {
     282           3 :     return (&(mChannel));
     283             : }
     284             : 
     285           0 : auto PVRManagerParent::GetIPCChannel() const -> const MessageChannel*
     286             : {
     287           0 :     return (&(mChannel));
     288             : }
     289             : 
     290           0 : auto PVRManagerParent::RemoveManagee(
     291             :         int32_t aProtocolId,
     292             :         ProtocolBase* aListener) -> void
     293             : {
     294           0 :     switch (aProtocolId) {
     295             :     case PTextureMsgStart:
     296             :         {
     297           0 :             PTextureParent* actor = static_cast<PTextureParent*>(aListener);
     298           0 :             auto& container = mManagedPTextureParent;
     299           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     300             : 
     301           0 :             (container).RemoveEntry(actor);
     302           0 :             DeallocPTextureParent(actor);
     303           0 :             return;
     304             :         }
     305             :     case PVRLayerMsgStart:
     306             :         {
     307           0 :             PVRLayerParent* actor = static_cast<PVRLayerParent*>(aListener);
     308           0 :             auto& container = mManagedPVRLayerParent;
     309           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     310             : 
     311           0 :             (container).RemoveEntry(actor);
     312           0 :             DeallocPVRLayerParent(actor);
     313           0 :             return;
     314             :         }
     315             :     default:
     316             :         {
     317           0 :             FatalError("unreached");
     318           0 :             return;
     319             :         }
     320             :     }
     321             : }
     322             : 
     323           0 : auto PVRManagerParent::OnMessageReceived(const Message& msg__) -> PVRManagerParent::Result
     324             : {
     325           0 :     int32_t route__ = (msg__).routing_id();
     326           0 :     if ((MSG_ROUTING_CONTROL) != (route__)) {
     327           0 :         ChannelListener* routed__ = Lookup(route__);
     328           0 :         if ((!(routed__))) {
     329           0 :             return MsgRouteError;
     330             :         }
     331           0 :         return (routed__)->OnMessageReceived(msg__);
     332             :     }
     333             : 
     334           0 :     switch ((msg__).type()) {
     335             :     case PVRManager::Msg_PTextureConstructor__ID:
     336             :         {
     337           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     338           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     339             :             }
     340           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_PTextureConstructor", OTHER);
     341             : 
     342           0 :             PickleIterator iter__(msg__);
     343             :             ActorHandle handle__;
     344             :             PTextureParent* actor;
     345           0 :             SurfaceDescriptor aSharedData;
     346             :             LayersBackend aBackend;
     347             :             TextureFlags aTextureFlags;
     348             :             uint64_t aSerial;
     349             : 
     350           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
     351           0 :                 FatalError("Error deserializing 'ActorHandle'");
     352           0 :                 return MsgValueError;
     353             :             }
     354             :             // Sentinel = 'actor'
     355           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     356           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
     357           0 :                 return MsgValueError;
     358             :             }
     359           0 :             if ((!(Read((&(aSharedData)), (&(msg__)), (&(iter__)))))) {
     360           0 :                 FatalError("Error deserializing 'SurfaceDescriptor'");
     361           0 :                 return MsgValueError;
     362             :             }
     363             :             // Sentinel = 'aSharedData'
     364           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3013593029)))) {
     365           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'SurfaceDescriptor'");
     366           0 :                 return MsgValueError;
     367             :             }
     368           0 :             if ((!(Read((&(aBackend)), (&(msg__)), (&(iter__)))))) {
     369           0 :                 FatalError("Error deserializing 'LayersBackend'");
     370           0 :                 return MsgValueError;
     371             :             }
     372             :             // Sentinel = 'aBackend'
     373           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2878499283)))) {
     374           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'LayersBackend'");
     375           0 :                 return MsgValueError;
     376             :             }
     377           0 :             if ((!(Read((&(aTextureFlags)), (&(msg__)), (&(iter__)))))) {
     378           0 :                 FatalError("Error deserializing 'TextureFlags'");
     379           0 :                 return MsgValueError;
     380             :             }
     381             :             // Sentinel = 'aTextureFlags'
     382           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3005687826)))) {
     383           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'TextureFlags'");
     384           0 :                 return MsgValueError;
     385             :             }
     386           0 :             if ((!(Read((&(aSerial)), (&(msg__)), (&(iter__)))))) {
     387           0 :                 FatalError("Error deserializing 'uint64_t'");
     388           0 :                 return MsgValueError;
     389             :             }
     390             :             // Sentinel = 'aSerial'
     391           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1247987114)))) {
     392           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     393           0 :                 return MsgValueError;
     394             :             }
     395           0 :             (msg__).EndRead(iter__, (msg__).type());
     396           0 :             PVRManager::Transition(PVRManager::Msg_PTextureConstructor__ID, (&(mState)));
     397           0 :             actor = AllocPTextureParent(aSharedData, aBackend, aTextureFlags, aSerial);
     398           0 :             if ((!(actor))) {
     399           0 :                 NS_WARNING("Error constructing actor PTextureParent");
     400           0 :                 return MsgValueError;
     401             :             }
     402           0 :             (actor)->SetManager(this);
     403           0 :             RegisterID(actor, (handle__).mId);
     404           0 :             (actor)->SetIPCChannel(GetIPCChannel());
     405           0 :             (mManagedPTextureParent).PutEntry(actor);
     406           0 :             (actor)->mState = mozilla::layers::PTexture::__Start;
     407             : 
     408           0 :             if ((!(RecvPTextureConstructor(mozilla::Move(actor), mozilla::Move(aSharedData), mozilla::Move(aBackend), mozilla::Move(aTextureFlags), mozilla::Move(aSerial))))) {
     409           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     410             :                 // Error handled in mozilla::ipc::IPCResult
     411           0 :                 return MsgProcessingError;
     412             :             }
     413             : 
     414           0 :             return MsgProcessed;
     415             :         }
     416             :     case PVRManager::Msg_PVRLayerConstructor__ID:
     417             :         {
     418           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     419           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     420             :             }
     421           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_PVRLayerConstructor", OTHER);
     422             : 
     423           0 :             PickleIterator iter__(msg__);
     424             :             ActorHandle handle__;
     425             :             PVRLayerParent* actor;
     426             :             uint32_t aDisplayID;
     427             :             float aLeftEyeX;
     428             :             float aLeftEyeY;
     429             :             float aLeftEyeWidth;
     430             :             float aLeftEyeHeight;
     431             :             float aRightEyeX;
     432             :             float aRightEyeY;
     433             :             float aRightEyeWidth;
     434             :             float aRightEyeHeight;
     435             :             uint32_t aGroup;
     436             : 
     437           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
     438           0 :                 FatalError("Error deserializing 'ActorHandle'");
     439           0 :                 return MsgValueError;
     440             :             }
     441             :             // Sentinel = 'actor'
     442           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     443           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
     444           0 :                 return MsgValueError;
     445             :             }
     446           0 :             if ((!(Read((&(aDisplayID)), (&(msg__)), (&(iter__)))))) {
     447           0 :                 FatalError("Error deserializing 'uint32_t'");
     448           0 :                 return MsgValueError;
     449             :             }
     450             :             // Sentinel = 'aDisplayID'
     451           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2139184880)))) {
     452           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     453           0 :                 return MsgValueError;
     454             :             }
     455           0 :             if ((!(Read((&(aLeftEyeX)), (&(msg__)), (&(iter__)))))) {
     456           0 :                 FatalError("Error deserializing 'float'");
     457           0 :                 return MsgValueError;
     458             :             }
     459             :             // Sentinel = 'aLeftEyeX'
     460           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2446933466)))) {
     461           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     462           0 :                 return MsgValueError;
     463             :             }
     464           0 :             if ((!(Read((&(aLeftEyeY)), (&(msg__)), (&(iter__)))))) {
     465           0 :                 FatalError("Error deserializing 'float'");
     466           0 :                 return MsgValueError;
     467             :             }
     468             :             // Sentinel = 'aLeftEyeY'
     469           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2446933467)))) {
     470           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     471           0 :                 return MsgValueError;
     472             :             }
     473           0 :             if ((!(Read((&(aLeftEyeWidth)), (&(msg__)), (&(iter__)))))) {
     474           0 :                 FatalError("Error deserializing 'float'");
     475           0 :                 return MsgValueError;
     476             :             }
     477             :             // Sentinel = 'aLeftEyeWidth'
     478           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3161986242)))) {
     479           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     480           0 :                 return MsgValueError;
     481             :             }
     482           0 :             if ((!(Read((&(aLeftEyeHeight)), (&(msg__)), (&(iter__)))))) {
     483           0 :                 FatalError("Error deserializing 'float'");
     484           0 :                 return MsgValueError;
     485             :             }
     486             :             // Sentinel = 'aLeftEyeHeight'
     487           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3521652706)))) {
     488           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     489           0 :                 return MsgValueError;
     490             :             }
     491           0 :             if ((!(Read((&(aRightEyeX)), (&(msg__)), (&(iter__)))))) {
     492           0 :                 FatalError("Error deserializing 'float'");
     493           0 :                 return MsgValueError;
     494             :             }
     495             :             // Sentinel = 'aRightEyeX'
     496           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1817577882)))) {
     497           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     498           0 :                 return MsgValueError;
     499             :             }
     500           0 :             if ((!(Read((&(aRightEyeY)), (&(msg__)), (&(iter__)))))) {
     501           0 :                 FatalError("Error deserializing 'float'");
     502           0 :                 return MsgValueError;
     503             :             }
     504             :             // Sentinel = 'aRightEyeY'
     505           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1817577883)))) {
     506           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     507           0 :                 return MsgValueError;
     508             :             }
     509           0 :             if ((!(Read((&(aRightEyeWidth)), (&(msg__)), (&(iter__)))))) {
     510           0 :                 FatalError("Error deserializing 'float'");
     511           0 :                 return MsgValueError;
     512             :             }
     513             :             // Sentinel = 'aRightEyeWidth'
     514           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 65324402)))) {
     515           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     516           0 :                 return MsgValueError;
     517             :             }
     518           0 :             if ((!(Read((&(aRightEyeHeight)), (&(msg__)), (&(iter__)))))) {
     519           0 :                 FatalError("Error deserializing 'float'");
     520           0 :                 return MsgValueError;
     521             :             }
     522             :             // Sentinel = 'aRightEyeHeight'
     523           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1578021086)))) {
     524           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     525           0 :                 return MsgValueError;
     526             :             }
     527           0 :             if ((!(Read((&(aGroup)), (&(msg__)), (&(iter__)))))) {
     528           0 :                 FatalError("Error deserializing 'uint32_t'");
     529           0 :                 return MsgValueError;
     530             :             }
     531             :             // Sentinel = 'aGroup'
     532           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1323513608)))) {
     533           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     534           0 :                 return MsgValueError;
     535             :             }
     536           0 :             (msg__).EndRead(iter__, (msg__).type());
     537           0 :             PVRManager::Transition(PVRManager::Msg_PVRLayerConstructor__ID, (&(mState)));
     538           0 :             actor = AllocPVRLayerParent(aDisplayID, aLeftEyeX, aLeftEyeY, aLeftEyeWidth, aLeftEyeHeight, aRightEyeX, aRightEyeY, aRightEyeWidth, aRightEyeHeight, aGroup);
     539           0 :             if ((!(actor))) {
     540           0 :                 NS_WARNING("Error constructing actor PVRLayerParent");
     541           0 :                 return MsgValueError;
     542             :             }
     543           0 :             (actor)->SetManager(this);
     544           0 :             RegisterID(actor, (handle__).mId);
     545           0 :             (actor)->SetIPCChannel(GetIPCChannel());
     546           0 :             (mManagedPVRLayerParent).PutEntry(actor);
     547           0 :             (actor)->mState = mozilla::gfx::PVRLayer::__Start;
     548             : 
     549           0 :             if ((!(RecvPVRLayerConstructor(mozilla::Move(actor), mozilla::Move(aDisplayID), mozilla::Move(aLeftEyeX), mozilla::Move(aLeftEyeY), mozilla::Move(aLeftEyeWidth), mozilla::Move(aLeftEyeHeight), mozilla::Move(aRightEyeX), mozilla::Move(aRightEyeY), mozilla::Move(aRightEyeWidth), mozilla::Move(aRightEyeHeight), mozilla::Move(aGroup))))) {
     550           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     551             :                 // Error handled in mozilla::ipc::IPCResult
     552           0 :                 return MsgProcessingError;
     553             :             }
     554             : 
     555           0 :             return MsgProcessed;
     556             :         }
     557             :     case PVRManager::Msg_RefreshDisplays__ID:
     558             :         {
     559           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     560           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     561             :             }
     562           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_RefreshDisplays", OTHER);
     563             : 
     564           0 :             PVRManager::Transition(PVRManager::Msg_RefreshDisplays__ID, (&(mState)));
     565           0 :             if ((!(RecvRefreshDisplays()))) {
     566           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     567             :                 // Error handled in mozilla::ipc::IPCResult
     568           0 :                 return MsgProcessingError;
     569             :             }
     570             : 
     571           0 :             return MsgProcessed;
     572             :         }
     573             :     case PVRManager::Msg_ResetSensor__ID:
     574             :         {
     575           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     576           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     577             :             }
     578           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_ResetSensor", OTHER);
     579             : 
     580           0 :             PickleIterator iter__(msg__);
     581             :             uint32_t aDisplayID;
     582             : 
     583           0 :             if ((!(Read((&(aDisplayID)), (&(msg__)), (&(iter__)))))) {
     584           0 :                 FatalError("Error deserializing 'uint32_t'");
     585           0 :                 return MsgValueError;
     586             :             }
     587             :             // Sentinel = 'aDisplayID'
     588           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2139184880)))) {
     589           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     590           0 :                 return MsgValueError;
     591             :             }
     592           0 :             (msg__).EndRead(iter__, (msg__).type());
     593           0 :             PVRManager::Transition(PVRManager::Msg_ResetSensor__ID, (&(mState)));
     594           0 :             if ((!(RecvResetSensor(mozilla::Move(aDisplayID))))) {
     595           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     596             :                 // Error handled in mozilla::ipc::IPCResult
     597           0 :                 return MsgProcessingError;
     598             :             }
     599             : 
     600           0 :             return MsgProcessed;
     601             :         }
     602             :     case PVRManager::Msg_SetGroupMask__ID:
     603             :         {
     604           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     605           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     606             :             }
     607           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_SetGroupMask", OTHER);
     608             : 
     609           0 :             PickleIterator iter__(msg__);
     610             :             uint32_t aDisplayID;
     611             :             uint32_t aGroupMask;
     612             : 
     613           0 :             if ((!(Read((&(aDisplayID)), (&(msg__)), (&(iter__)))))) {
     614           0 :                 FatalError("Error deserializing 'uint32_t'");
     615           0 :                 return MsgValueError;
     616             :             }
     617             :             // Sentinel = 'aDisplayID'
     618           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2139184880)))) {
     619           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     620           0 :                 return MsgValueError;
     621             :             }
     622           0 :             if ((!(Read((&(aGroupMask)), (&(msg__)), (&(iter__)))))) {
     623           0 :                 FatalError("Error deserializing 'uint32_t'");
     624           0 :                 return MsgValueError;
     625             :             }
     626             :             // Sentinel = 'aGroupMask'
     627           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4157390796)))) {
     628           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     629           0 :                 return MsgValueError;
     630             :             }
     631           0 :             (msg__).EndRead(iter__, (msg__).type());
     632           0 :             PVRManager::Transition(PVRManager::Msg_SetGroupMask__ID, (&(mState)));
     633           0 :             if ((!(RecvSetGroupMask(mozilla::Move(aDisplayID), mozilla::Move(aGroupMask))))) {
     634           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     635             :                 // Error handled in mozilla::ipc::IPCResult
     636           0 :                 return MsgProcessingError;
     637             :             }
     638             : 
     639           0 :             return MsgProcessed;
     640             :         }
     641             :     case PVRManager::Msg_SetHaveEventListener__ID:
     642             :         {
     643           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     644           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     645             :             }
     646           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_SetHaveEventListener", OTHER);
     647             : 
     648           0 :             PickleIterator iter__(msg__);
     649             :             bool aHaveEventListener;
     650             : 
     651           0 :             if ((!(Read((&(aHaveEventListener)), (&(msg__)), (&(iter__)))))) {
     652           0 :                 FatalError("Error deserializing 'bool'");
     653           0 :                 return MsgValueError;
     654             :             }
     655             :             // Sentinel = 'aHaveEventListener'
     656           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3921043303)))) {
     657           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     658           0 :                 return MsgValueError;
     659             :             }
     660           0 :             (msg__).EndRead(iter__, (msg__).type());
     661           0 :             PVRManager::Transition(PVRManager::Msg_SetHaveEventListener__ID, (&(mState)));
     662           0 :             if ((!(RecvSetHaveEventListener(mozilla::Move(aHaveEventListener))))) {
     663           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     664             :                 // Error handled in mozilla::ipc::IPCResult
     665           0 :                 return MsgProcessingError;
     666             :             }
     667             : 
     668           0 :             return MsgProcessed;
     669             :         }
     670             :     case PVRManager::Msg_ControllerListenerAdded__ID:
     671             :         {
     672           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     673           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     674             :             }
     675           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_ControllerListenerAdded", OTHER);
     676             : 
     677           0 :             PVRManager::Transition(PVRManager::Msg_ControllerListenerAdded__ID, (&(mState)));
     678           0 :             if ((!(RecvControllerListenerAdded()))) {
     679           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     680             :                 // Error handled in mozilla::ipc::IPCResult
     681           0 :                 return MsgProcessingError;
     682             :             }
     683             : 
     684           0 :             return MsgProcessed;
     685             :         }
     686             :     case PVRManager::Msg_ControllerListenerRemoved__ID:
     687             :         {
     688           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     689           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     690             :             }
     691           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_ControllerListenerRemoved", OTHER);
     692             : 
     693           0 :             PVRManager::Transition(PVRManager::Msg_ControllerListenerRemoved__ID, (&(mState)));
     694           0 :             if ((!(RecvControllerListenerRemoved()))) {
     695           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     696             :                 // Error handled in mozilla::ipc::IPCResult
     697           0 :                 return MsgProcessingError;
     698             :             }
     699             : 
     700           0 :             return MsgProcessed;
     701             :         }
     702             :     case PVRManager::Msg_VibrateHaptic__ID:
     703             :         {
     704           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     705           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     706             :             }
     707           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_VibrateHaptic", OTHER);
     708             : 
     709           0 :             PickleIterator iter__(msg__);
     710             :             uint32_t aControllerIdx;
     711             :             uint32_t aHapticIndex;
     712             :             double aIntensity;
     713             :             double aDuration;
     714             :             uint32_t aPromiseID;
     715             : 
     716           0 :             if ((!(Read((&(aControllerIdx)), (&(msg__)), (&(iter__)))))) {
     717           0 :                 FatalError("Error deserializing 'uint32_t'");
     718           0 :                 return MsgValueError;
     719             :             }
     720             :             // Sentinel = 'aControllerIdx'
     721           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1525026068)))) {
     722           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     723           0 :                 return MsgValueError;
     724             :             }
     725           0 :             if ((!(Read((&(aHapticIndex)), (&(msg__)), (&(iter__)))))) {
     726           0 :                 FatalError("Error deserializing 'uint32_t'");
     727           0 :                 return MsgValueError;
     728             :             }
     729             :             // Sentinel = 'aHapticIndex'
     730           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3997306204)))) {
     731           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     732           0 :                 return MsgValueError;
     733             :             }
     734           0 :             if ((!(Read((&(aIntensity)), (&(msg__)), (&(iter__)))))) {
     735           0 :                 FatalError("Error deserializing 'double'");
     736           0 :                 return MsgValueError;
     737             :             }
     738             :             // Sentinel = 'aIntensity'
     739           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 701797642)))) {
     740           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'double'");
     741           0 :                 return MsgValueError;
     742             :             }
     743           0 :             if ((!(Read((&(aDuration)), (&(msg__)), (&(iter__)))))) {
     744           0 :                 FatalError("Error deserializing 'double'");
     745           0 :                 return MsgValueError;
     746             :             }
     747             :             // Sentinel = 'aDuration'
     748           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3213285508)))) {
     749           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'double'");
     750           0 :                 return MsgValueError;
     751             :             }
     752           0 :             if ((!(Read((&(aPromiseID)), (&(msg__)), (&(iter__)))))) {
     753           0 :                 FatalError("Error deserializing 'uint32_t'");
     754           0 :                 return MsgValueError;
     755             :             }
     756             :             // Sentinel = 'aPromiseID'
     757           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174117)))) {
     758           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     759           0 :                 return MsgValueError;
     760             :             }
     761           0 :             (msg__).EndRead(iter__, (msg__).type());
     762           0 :             PVRManager::Transition(PVRManager::Msg_VibrateHaptic__ID, (&(mState)));
     763           0 :             if ((!(RecvVibrateHaptic(mozilla::Move(aControllerIdx), mozilla::Move(aHapticIndex), mozilla::Move(aIntensity), mozilla::Move(aDuration), mozilla::Move(aPromiseID))))) {
     764           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     765             :                 // Error handled in mozilla::ipc::IPCResult
     766           0 :                 return MsgProcessingError;
     767             :             }
     768             : 
     769           0 :             return MsgProcessed;
     770             :         }
     771             :     case PVRManager::Msg_StopVibrateHaptic__ID:
     772             :         {
     773           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     774           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     775             :             }
     776           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_StopVibrateHaptic", OTHER);
     777             : 
     778           0 :             PickleIterator iter__(msg__);
     779             :             uint32_t aControllerIdx;
     780             : 
     781           0 :             if ((!(Read((&(aControllerIdx)), (&(msg__)), (&(iter__)))))) {
     782           0 :                 FatalError("Error deserializing 'uint32_t'");
     783           0 :                 return MsgValueError;
     784             :             }
     785             :             // Sentinel = 'aControllerIdx'
     786           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1525026068)))) {
     787           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     788           0 :                 return MsgValueError;
     789             :             }
     790           0 :             (msg__).EndRead(iter__, (msg__).type());
     791           0 :             PVRManager::Transition(PVRManager::Msg_StopVibrateHaptic__ID, (&(mState)));
     792           0 :             if ((!(RecvStopVibrateHaptic(mozilla::Move(aControllerIdx))))) {
     793           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     794             :                 // Error handled in mozilla::ipc::IPCResult
     795           0 :                 return MsgProcessingError;
     796             :             }
     797             : 
     798           0 :             return MsgProcessed;
     799             :         }
     800             :     case PVRManager::Msg_CreateVRTestSystem__ID:
     801             :         {
     802           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     803           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     804             :             }
     805           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_CreateVRTestSystem", OTHER);
     806             : 
     807           0 :             PVRManager::Transition(PVRManager::Msg_CreateVRTestSystem__ID, (&(mState)));
     808           0 :             if ((!(RecvCreateVRTestSystem()))) {
     809           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     810             :                 // Error handled in mozilla::ipc::IPCResult
     811           0 :                 return MsgProcessingError;
     812             :             }
     813             : 
     814           0 :             return MsgProcessed;
     815             :         }
     816             :     case PVRManager::Msg_CreateVRServiceTestDisplay__ID:
     817             :         {
     818           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     819           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     820             :             }
     821           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_CreateVRServiceTestDisplay", OTHER);
     822             : 
     823           0 :             PickleIterator iter__(msg__);
     824           0 :             nsCString aID;
     825             :             uint32_t aPromiseID;
     826             : 
     827           0 :             if ((!(Read((&(aID)), (&(msg__)), (&(iter__)))))) {
     828           0 :                 FatalError("Error deserializing 'nsCString'");
     829           0 :                 return MsgValueError;
     830             :             }
     831             :             // Sentinel = 'aID'
     832           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
     833           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     834           0 :                 return MsgValueError;
     835             :             }
     836           0 :             if ((!(Read((&(aPromiseID)), (&(msg__)), (&(iter__)))))) {
     837           0 :                 FatalError("Error deserializing 'uint32_t'");
     838           0 :                 return MsgValueError;
     839             :             }
     840             :             // Sentinel = 'aPromiseID'
     841           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174117)))) {
     842           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     843           0 :                 return MsgValueError;
     844             :             }
     845           0 :             (msg__).EndRead(iter__, (msg__).type());
     846           0 :             PVRManager::Transition(PVRManager::Msg_CreateVRServiceTestDisplay__ID, (&(mState)));
     847           0 :             if ((!(RecvCreateVRServiceTestDisplay(mozilla::Move(aID), mozilla::Move(aPromiseID))))) {
     848           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     849             :                 // Error handled in mozilla::ipc::IPCResult
     850           0 :                 return MsgProcessingError;
     851             :             }
     852             : 
     853           0 :             return MsgProcessed;
     854             :         }
     855             :     case PVRManager::Msg_CreateVRServiceTestController__ID:
     856             :         {
     857           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     858           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     859             :             }
     860           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_CreateVRServiceTestController", OTHER);
     861             : 
     862           0 :             PickleIterator iter__(msg__);
     863           0 :             nsCString aID;
     864             :             uint32_t aPromiseID;
     865             : 
     866           0 :             if ((!(Read((&(aID)), (&(msg__)), (&(iter__)))))) {
     867           0 :                 FatalError("Error deserializing 'nsCString'");
     868           0 :                 return MsgValueError;
     869             :             }
     870             :             // Sentinel = 'aID'
     871           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
     872           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     873           0 :                 return MsgValueError;
     874             :             }
     875           0 :             if ((!(Read((&(aPromiseID)), (&(msg__)), (&(iter__)))))) {
     876           0 :                 FatalError("Error deserializing 'uint32_t'");
     877           0 :                 return MsgValueError;
     878             :             }
     879             :             // Sentinel = 'aPromiseID'
     880           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174117)))) {
     881           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     882           0 :                 return MsgValueError;
     883             :             }
     884           0 :             (msg__).EndRead(iter__, (msg__).type());
     885           0 :             PVRManager::Transition(PVRManager::Msg_CreateVRServiceTestController__ID, (&(mState)));
     886           0 :             if ((!(RecvCreateVRServiceTestController(mozilla::Move(aID), mozilla::Move(aPromiseID))))) {
     887           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     888             :                 // Error handled in mozilla::ipc::IPCResult
     889           0 :                 return MsgProcessingError;
     890             :             }
     891             : 
     892           0 :             return MsgProcessed;
     893             :         }
     894             :     case PVRManager::Msg_SetDisplayInfoToMockDisplay__ID:
     895             :         {
     896           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     897           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     898             :             }
     899           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_SetDisplayInfoToMockDisplay", OTHER);
     900             : 
     901           0 :             PickleIterator iter__(msg__);
     902             :             uint32_t aDeviceID;
     903           0 :             VRDisplayInfo aDisplayInfo;
     904             : 
     905           0 :             if ((!(Read((&(aDeviceID)), (&(msg__)), (&(iter__)))))) {
     906           0 :                 FatalError("Error deserializing 'uint32_t'");
     907           0 :                 return MsgValueError;
     908             :             }
     909             :             // Sentinel = 'aDeviceID'
     910           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1963457757)))) {
     911           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     912           0 :                 return MsgValueError;
     913             :             }
     914           0 :             if ((!(Read((&(aDisplayInfo)), (&(msg__)), (&(iter__)))))) {
     915           0 :                 FatalError("Error deserializing 'VRDisplayInfo'");
     916           0 :                 return MsgValueError;
     917             :             }
     918             :             // Sentinel = 'aDisplayInfo'
     919           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2651062689)))) {
     920           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'VRDisplayInfo'");
     921           0 :                 return MsgValueError;
     922             :             }
     923           0 :             (msg__).EndRead(iter__, (msg__).type());
     924           0 :             PVRManager::Transition(PVRManager::Msg_SetDisplayInfoToMockDisplay__ID, (&(mState)));
     925           0 :             if ((!(RecvSetDisplayInfoToMockDisplay(mozilla::Move(aDeviceID), mozilla::Move(aDisplayInfo))))) {
     926           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     927             :                 // Error handled in mozilla::ipc::IPCResult
     928           0 :                 return MsgProcessingError;
     929             :             }
     930             : 
     931           0 :             return MsgProcessed;
     932             :         }
     933             :     case PVRManager::Msg_SetSensorStateToMockDisplay__ID:
     934             :         {
     935           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     936           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     937             :             }
     938           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_SetSensorStateToMockDisplay", OTHER);
     939             : 
     940           0 :             PickleIterator iter__(msg__);
     941             :             uint32_t aDeviceID;
     942           0 :             VRHMDSensorState aSensorState;
     943             : 
     944           0 :             if ((!(Read((&(aDeviceID)), (&(msg__)), (&(iter__)))))) {
     945           0 :                 FatalError("Error deserializing 'uint32_t'");
     946           0 :                 return MsgValueError;
     947             :             }
     948             :             // Sentinel = 'aDeviceID'
     949           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1963457757)))) {
     950           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     951           0 :                 return MsgValueError;
     952             :             }
     953           0 :             if ((!(Read((&(aSensorState)), (&(msg__)), (&(iter__)))))) {
     954           0 :                 FatalError("Error deserializing 'VRHMDSensorState'");
     955           0 :                 return MsgValueError;
     956             :             }
     957             :             // Sentinel = 'aSensorState'
     958           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3074518118)))) {
     959           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'VRHMDSensorState'");
     960           0 :                 return MsgValueError;
     961             :             }
     962           0 :             (msg__).EndRead(iter__, (msg__).type());
     963           0 :             PVRManager::Transition(PVRManager::Msg_SetSensorStateToMockDisplay__ID, (&(mState)));
     964           0 :             if ((!(RecvSetSensorStateToMockDisplay(mozilla::Move(aDeviceID), mozilla::Move(aSensorState))))) {
     965           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     966             :                 // Error handled in mozilla::ipc::IPCResult
     967           0 :                 return MsgProcessingError;
     968             :             }
     969             : 
     970           0 :             return MsgProcessed;
     971             :         }
     972             :     case PVRManager::Msg_NewButtonEventToMockController__ID:
     973             :         {
     974           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
     975           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     976             :             }
     977           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_NewButtonEventToMockController", OTHER);
     978             : 
     979           0 :             PickleIterator iter__(msg__);
     980             :             uint32_t aDeviceID;
     981             :             long aButton;
     982             :             bool aPressed;
     983             : 
     984           0 :             if ((!(Read((&(aDeviceID)), (&(msg__)), (&(iter__)))))) {
     985           0 :                 FatalError("Error deserializing 'uint32_t'");
     986           0 :                 return MsgValueError;
     987             :             }
     988             :             // Sentinel = 'aDeviceID'
     989           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1963457757)))) {
     990           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     991           0 :                 return MsgValueError;
     992             :             }
     993           0 :             if ((!(Read((&(aButton)), (&(msg__)), (&(iter__)))))) {
     994           0 :                 FatalError("Error deserializing 'long'");
     995           0 :                 return MsgValueError;
     996             :             }
     997             :             // Sentinel = 'aButton'
     998           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1126532398)))) {
     999           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'long'");
    1000           0 :                 return MsgValueError;
    1001             :             }
    1002           0 :             if ((!(Read((&(aPressed)), (&(msg__)), (&(iter__)))))) {
    1003           0 :                 FatalError("Error deserializing 'bool'");
    1004           0 :                 return MsgValueError;
    1005             :             }
    1006             :             // Sentinel = 'aPressed'
    1007           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 511193633)))) {
    1008           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
    1009           0 :                 return MsgValueError;
    1010             :             }
    1011           0 :             (msg__).EndRead(iter__, (msg__).type());
    1012           0 :             PVRManager::Transition(PVRManager::Msg_NewButtonEventToMockController__ID, (&(mState)));
    1013           0 :             if ((!(RecvNewButtonEventToMockController(mozilla::Move(aDeviceID), mozilla::Move(aButton), mozilla::Move(aPressed))))) {
    1014           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1015             :                 // Error handled in mozilla::ipc::IPCResult
    1016           0 :                 return MsgProcessingError;
    1017             :             }
    1018             : 
    1019           0 :             return MsgProcessed;
    1020             :         }
    1021             :     case PVRManager::Msg_NewAxisMoveEventToMockController__ID:
    1022             :         {
    1023           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
    1024           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1025             :             }
    1026           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_NewAxisMoveEventToMockController", OTHER);
    1027             : 
    1028           0 :             PickleIterator iter__(msg__);
    1029             :             uint32_t aDeviceID;
    1030             :             long aAxis;
    1031             :             double aValue;
    1032             : 
    1033           0 :             if ((!(Read((&(aDeviceID)), (&(msg__)), (&(iter__)))))) {
    1034           0 :                 FatalError("Error deserializing 'uint32_t'");
    1035           0 :                 return MsgValueError;
    1036             :             }
    1037             :             // Sentinel = 'aDeviceID'
    1038           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1963457757)))) {
    1039           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
    1040           0 :                 return MsgValueError;
    1041             :             }
    1042           0 :             if ((!(Read((&(aAxis)), (&(msg__)), (&(iter__)))))) {
    1043           0 :                 FatalError("Error deserializing 'long'");
    1044           0 :                 return MsgValueError;
    1045             :             }
    1046             :             // Sentinel = 'aAxis'
    1047           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1730285743)))) {
    1048           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'long'");
    1049           0 :                 return MsgValueError;
    1050             :             }
    1051           0 :             if ((!(Read((&(aValue)), (&(msg__)), (&(iter__)))))) {
    1052           0 :                 FatalError("Error deserializing 'double'");
    1053           0 :                 return MsgValueError;
    1054             :             }
    1055             :             // Sentinel = 'aValue'
    1056           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2522186438)))) {
    1057           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'double'");
    1058           0 :                 return MsgValueError;
    1059             :             }
    1060           0 :             (msg__).EndRead(iter__, (msg__).type());
    1061           0 :             PVRManager::Transition(PVRManager::Msg_NewAxisMoveEventToMockController__ID, (&(mState)));
    1062           0 :             if ((!(RecvNewAxisMoveEventToMockController(mozilla::Move(aDeviceID), mozilla::Move(aAxis), mozilla::Move(aValue))))) {
    1063           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1064             :                 // Error handled in mozilla::ipc::IPCResult
    1065           0 :                 return MsgProcessingError;
    1066             :             }
    1067             : 
    1068           0 :             return MsgProcessed;
    1069             :         }
    1070             :     case PVRManager::Msg_NewPoseMoveToMockController__ID:
    1071             :         {
    1072           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRManagerParent")) {
    1073           0 :                 mozilla::ipc::LogMessageForProtocol("PVRManagerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1074             :             }
    1075           0 :             AUTO_PROFILER_LABEL("PVRManager::Msg_NewPoseMoveToMockController", OTHER);
    1076             : 
    1077           0 :             PickleIterator iter__(msg__);
    1078             :             uint32_t aDeviceID;
    1079           0 :             GamepadPoseState aPose;
    1080             : 
    1081           0 :             if ((!(Read((&(aDeviceID)), (&(msg__)), (&(iter__)))))) {
    1082           0 :                 FatalError("Error deserializing 'uint32_t'");
    1083           0 :                 return MsgValueError;
    1084             :             }
    1085             :             // Sentinel = 'aDeviceID'
    1086           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1963457757)))) {
    1087           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
    1088           0 :                 return MsgValueError;
    1089             :             }
    1090           0 :             if ((!(Read((&(aPose)), (&(msg__)), (&(iter__)))))) {
    1091           0 :                 FatalError("Error deserializing 'GamepadPoseState'");
    1092           0 :                 return MsgValueError;
    1093             :             }
    1094             :             // Sentinel = 'aPose'
    1095           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2231333587)))) {
    1096           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'GamepadPoseState'");
    1097           0 :                 return MsgValueError;
    1098             :             }
    1099           0 :             (msg__).EndRead(iter__, (msg__).type());
    1100           0 :             PVRManager::Transition(PVRManager::Msg_NewPoseMoveToMockController__ID, (&(mState)));
    1101           0 :             if ((!(RecvNewPoseMoveToMockController(mozilla::Move(aDeviceID), mozilla::Move(aPose))))) {
    1102           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1103             :                 // Error handled in mozilla::ipc::IPCResult
    1104           0 :                 return MsgProcessingError;
    1105             :             }
    1106             : 
    1107           0 :             return MsgProcessed;
    1108             :         }
    1109             :     case PVRManager::Reply___delete____ID:
    1110             :         {
    1111           0 :             return MsgProcessed;
    1112             :         }
    1113             :     default:
    1114             :         {
    1115           0 :             return MsgNotKnown;
    1116             :         }
    1117             :     case SHMEM_CREATED_MESSAGE_TYPE:
    1118             :         {
    1119           0 :             if ((!(ShmemCreated(msg__)))) {
    1120           0 :                 return MsgPayloadError;
    1121             :             }
    1122           0 :             return MsgProcessed;
    1123             :         }
    1124             :     case SHMEM_DESTROYED_MESSAGE_TYPE:
    1125             :         {
    1126           0 :             if ((!(ShmemDestroyed(msg__)))) {
    1127           0 :                 return MsgPayloadError;
    1128             :             }
    1129           0 :             return MsgProcessed;
    1130             :         }
    1131             :     }
    1132             : }
    1133             : 
    1134           0 : auto PVRManagerParent::OnMessageReceived(
    1135             :         const Message& msg__,
    1136             :         Message*& reply__) -> PVRManagerParent::Result
    1137             : {
    1138           0 :     int32_t route__ = (msg__).routing_id();
    1139           0 :     if ((MSG_ROUTING_CONTROL) != (route__)) {
    1140           0 :         ChannelListener* routed__ = Lookup(route__);
    1141           0 :         if ((!(routed__))) {
    1142           0 :             return MsgRouteError;
    1143             :         }
    1144           0 :         return (routed__)->OnMessageReceived(msg__, reply__);
    1145             :     }
    1146             : 
    1147           0 :     return MsgNotKnown;
    1148             : }
    1149             : 
    1150           0 : auto PVRManagerParent::OnCallReceived(
    1151             :         const Message& msg__,
    1152             :         Message*& reply__) -> PVRManagerParent::Result
    1153             : {
    1154           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
    1155             :     return MsgNotKnown;
    1156             : }
    1157             : 
    1158           0 : auto PVRManagerParent::GetProtocolTypeId() -> int32_t
    1159             : {
    1160           0 :     return PVRManagerMsgStart;
    1161             : }
    1162             : 
    1163           0 : auto PVRManagerParent::OnChannelClose() -> void
    1164             : {
    1165           0 :     DestroySubtree(NormalShutdown);
    1166           0 :     DeallocSubtree();
    1167           0 :     DeallocShmems();
    1168           0 :     DeallocPVRManagerParent();
    1169           0 : }
    1170             : 
    1171           0 : auto PVRManagerParent::OnChannelError() -> void
    1172             : {
    1173           0 :     DestroySubtree(AbnormalShutdown);
    1174           0 :     DeallocSubtree();
    1175           0 :     DeallocShmems();
    1176           0 :     DeallocPVRManagerParent();
    1177           0 : }
    1178             : 
    1179           0 : auto PVRManagerParent::ProtocolName() const -> const char*
    1180             : {
    1181           0 :     return "PVRManagerParent";
    1182             : }
    1183             : 
    1184           0 : auto PVRManagerParent::DestroySubtree(ActorDestroyReason why) -> void
    1185             : {
    1186           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
    1187             : 
    1188             :     {
    1189             :         // Recursively shutting down PTexture kids
    1190           0 :         nsTArray<PTextureParent*> kids;
    1191             :         // Accumulate kids into a stable structure to iterate over
    1192           0 :         ManagedPTextureParent(kids);
    1193           0 :         for (auto& kid : kids) {
    1194             :             // Guarding against a child removing a sibling from the list during the iteration.
    1195           0 :             if ((mManagedPTextureParent).Contains(kid)) {
    1196           0 :                 (kid)->DestroySubtree(subtreewhy);
    1197             :             }
    1198             :         }
    1199             :     }
    1200             :     {
    1201             :         // Recursively shutting down PVRLayer kids
    1202           0 :         nsTArray<PVRLayerParent*> kids;
    1203             :         // Accumulate kids into a stable structure to iterate over
    1204           0 :         ManagedPVRLayerParent(kids);
    1205           0 :         for (auto& kid : kids) {
    1206             :             // Guarding against a child removing a sibling from the list during the iteration.
    1207           0 :             if ((mManagedPVRLayerParent).Contains(kid)) {
    1208           0 :                 (kid)->DestroySubtree(subtreewhy);
    1209             :             }
    1210             :         }
    1211             :     }
    1212             : 
    1213             :     // Reject owning pending promises.
    1214           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
    1215             : 
    1216             :     // Finally, destroy "us".
    1217           0 :     ActorDestroy(why);
    1218           0 : }
    1219             : 
    1220           0 : auto PVRManagerParent::DeallocSubtree() -> void
    1221             : {
    1222             :     {
    1223             :         // Recursively deleting PTexture kids
    1224           0 :         for (auto iter = (mManagedPTextureParent).Iter(); (!((iter).Done())); (iter).Next()) {
    1225           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
    1226             :         }
    1227             : 
    1228           0 :         for (auto iter = (mManagedPTextureParent).Iter(); (!((iter).Done())); (iter).Next()) {
    1229           0 :             DeallocPTextureParent(((iter).Get())->GetKey());
    1230             :         }
    1231           0 :         (mManagedPTextureParent).Clear();
    1232             :     }
    1233             :     {
    1234             :         // Recursively deleting PVRLayer kids
    1235           0 :         for (auto iter = (mManagedPVRLayerParent).Iter(); (!((iter).Done())); (iter).Next()) {
    1236           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
    1237             :         }
    1238             : 
    1239           0 :         for (auto iter = (mManagedPVRLayerParent).Iter(); (!((iter).Done())); (iter).Next()) {
    1240           0 :             DeallocPVRLayerParent(((iter).Get())->GetKey());
    1241             :         }
    1242           0 :         (mManagedPVRLayerParent).Clear();
    1243             :     }
    1244           0 : }
    1245             : 
    1246           0 : auto PVRManagerParent::DeallocPVRManagerParent() -> void
    1247             : {
    1248           0 : }
    1249             : 
    1250           0 : auto PVRManagerParent::Write(
    1251             :         const SurfaceDescriptor& v__,
    1252             :         Message* msg__) -> void
    1253             : {
    1254             :     typedef SurfaceDescriptor type__;
    1255           0 :     Write(int((v__).type()), msg__);
    1256             :     // Sentinel = 'SurfaceDescriptor'
    1257           0 :     (msg__)->WriteSentinel(1058499359);
    1258             : 
    1259           0 :     switch ((v__).type()) {
    1260             :     case type__::TSurfaceDescriptorBuffer:
    1261             :         {
    1262           0 :             Write((v__).get_SurfaceDescriptorBuffer(), msg__);
    1263             :             // Sentinel = 'TSurfaceDescriptorBuffer'
    1264           0 :             (msg__)->WriteSentinel(2202696360);
    1265           0 :             return;
    1266             :         }
    1267             :     case type__::TSurfaceDescriptorDIB:
    1268             :         {
    1269           0 :             Write((v__).get_SurfaceDescriptorDIB(), msg__);
    1270             :             // Sentinel = 'TSurfaceDescriptorDIB'
    1271           0 :             (msg__)->WriteSentinel(998410538);
    1272           0 :             return;
    1273             :         }
    1274             :     case type__::TSurfaceDescriptorD3D10:
    1275             :         {
    1276           0 :             Write((v__).get_SurfaceDescriptorD3D10(), msg__);
    1277             :             // Sentinel = 'TSurfaceDescriptorD3D10'
    1278           0 :             (msg__)->WriteSentinel(2753564567);
    1279           0 :             return;
    1280             :         }
    1281             :     case type__::TSurfaceDescriptorFileMapping:
    1282             :         {
    1283           0 :             Write((v__).get_SurfaceDescriptorFileMapping(), msg__);
    1284             :             // Sentinel = 'TSurfaceDescriptorFileMapping'
    1285           0 :             (msg__)->WriteSentinel(722196935);
    1286           0 :             return;
    1287             :         }
    1288             :     case type__::TSurfaceDescriptorDXGIYCbCr:
    1289             :         {
    1290           0 :             Write((v__).get_SurfaceDescriptorDXGIYCbCr(), msg__);
    1291             :             // Sentinel = 'TSurfaceDescriptorDXGIYCbCr'
    1292           0 :             (msg__)->WriteSentinel(3061212892);
    1293           0 :             return;
    1294             :         }
    1295             :     case type__::TSurfaceDescriptorX11:
    1296             :         {
    1297           0 :             Write((v__).get_SurfaceDescriptorX11(), msg__);
    1298             :             // Sentinel = 'TSurfaceDescriptorX11'
    1299           0 :             (msg__)->WriteSentinel(3923930613);
    1300           0 :             return;
    1301             :         }
    1302             :     case type__::TSurfaceTextureDescriptor:
    1303             :         {
    1304           0 :             Write((v__).get_SurfaceTextureDescriptor(), msg__);
    1305             :             // Sentinel = 'TSurfaceTextureDescriptor'
    1306           0 :             (msg__)->WriteSentinel(2253946800);
    1307           0 :             return;
    1308             :         }
    1309             :     case type__::TEGLImageDescriptor:
    1310             :         {
    1311           0 :             Write((v__).get_EGLImageDescriptor(), msg__);
    1312             :             // Sentinel = 'TEGLImageDescriptor'
    1313           0 :             (msg__)->WriteSentinel(2680446099);
    1314           0 :             return;
    1315             :         }
    1316             :     case type__::TSurfaceDescriptorMacIOSurface:
    1317             :         {
    1318           0 :             Write((v__).get_SurfaceDescriptorMacIOSurface(), msg__);
    1319             :             // Sentinel = 'TSurfaceDescriptorMacIOSurface'
    1320           0 :             (msg__)->WriteSentinel(4267688786);
    1321           0 :             return;
    1322             :         }
    1323             :     case type__::TSurfaceDescriptorSharedGLTexture:
    1324             :         {
    1325           0 :             Write((v__).get_SurfaceDescriptorSharedGLTexture(), msg__);
    1326             :             // Sentinel = 'TSurfaceDescriptorSharedGLTexture'
    1327           0 :             (msg__)->WriteSentinel(4169514976);
    1328           0 :             return;
    1329             :         }
    1330             :     case type__::TSurfaceDescriptorGPUVideo:
    1331             :         {
    1332           0 :             Write((v__).get_SurfaceDescriptorGPUVideo(), msg__);
    1333             :             // Sentinel = 'TSurfaceDescriptorGPUVideo'
    1334           0 :             (msg__)->WriteSentinel(2406892431);
    1335           0 :             return;
    1336             :         }
    1337             :     case type__::Tnull_t:
    1338             :         {
    1339           0 :             Write((v__).get_null_t(), msg__);
    1340             :             // Sentinel = 'Tnull_t'
    1341           0 :             (msg__)->WriteSentinel(3731137201);
    1342           0 :             return;
    1343             :         }
    1344             :     default:
    1345             :         {
    1346           0 :             FatalError("unknown union type");
    1347           0 :             return;
    1348             :         }
    1349             :     }
    1350             : }
    1351             : 
    1352           0 : auto PVRManagerParent::Read(
    1353             :         SurfaceDescriptor* v__,
    1354             :         const Message* msg__,
    1355             :         PickleIterator* iter__) -> bool
    1356             : {
    1357             :     typedef SurfaceDescriptor type__;
    1358             :     int type;
    1359           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1360           0 :         mozilla::ipc::UnionTypeReadError("SurfaceDescriptor");
    1361           0 :         return false;
    1362             :     }
    1363             :     // Sentinel = 'SurfaceDescriptor'
    1364           0 :     if ((!((msg__)->ReadSentinel(iter__, 1058499359)))) {
    1365           0 :         mozilla::ipc::SentinelReadError("SurfaceDescriptor");
    1366           0 :         return false;
    1367             :     }
    1368             : 
    1369           0 :     switch (type) {
    1370             :     case type__::TSurfaceDescriptorBuffer:
    1371             :         {
    1372           0 :             SurfaceDescriptorBuffer tmp = SurfaceDescriptorBuffer();
    1373           0 :             (*(v__)) = tmp;
    1374           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorBuffer())), msg__, iter__)))) {
    1375           0 :                 FatalError("Error deserializing Union type");
    1376           0 :                 return false;
    1377             :             }
    1378             :             // Sentinel = 'TSurfaceDescriptorBuffer'
    1379           0 :             if ((!((msg__)->ReadSentinel(iter__, 2202696360)))) {
    1380           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1381           0 :                 return false;
    1382             :             }
    1383           0 :             return true;
    1384             :         }
    1385             :     case type__::TSurfaceDescriptorDIB:
    1386             :         {
    1387           0 :             SurfaceDescriptorDIB tmp = SurfaceDescriptorDIB();
    1388           0 :             (*(v__)) = tmp;
    1389           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorDIB())), msg__, iter__)))) {
    1390           0 :                 FatalError("Error deserializing Union type");
    1391           0 :                 return false;
    1392             :             }
    1393             :             // Sentinel = 'TSurfaceDescriptorDIB'
    1394           0 :             if ((!((msg__)->ReadSentinel(iter__, 998410538)))) {
    1395           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1396           0 :                 return false;
    1397             :             }
    1398           0 :             return true;
    1399             :         }
    1400             :     case type__::TSurfaceDescriptorD3D10:
    1401             :         {
    1402           0 :             SurfaceDescriptorD3D10 tmp = SurfaceDescriptorD3D10();
    1403           0 :             (*(v__)) = tmp;
    1404           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorD3D10())), msg__, iter__)))) {
    1405           0 :                 FatalError("Error deserializing Union type");
    1406           0 :                 return false;
    1407             :             }
    1408             :             // Sentinel = 'TSurfaceDescriptorD3D10'
    1409           0 :             if ((!((msg__)->ReadSentinel(iter__, 2753564567)))) {
    1410           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1411           0 :                 return false;
    1412             :             }
    1413           0 :             return true;
    1414             :         }
    1415             :     case type__::TSurfaceDescriptorFileMapping:
    1416             :         {
    1417           0 :             SurfaceDescriptorFileMapping tmp = SurfaceDescriptorFileMapping();
    1418           0 :             (*(v__)) = tmp;
    1419           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorFileMapping())), msg__, iter__)))) {
    1420           0 :                 FatalError("Error deserializing Union type");
    1421           0 :                 return false;
    1422             :             }
    1423             :             // Sentinel = 'TSurfaceDescriptorFileMapping'
    1424           0 :             if ((!((msg__)->ReadSentinel(iter__, 722196935)))) {
    1425           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1426           0 :                 return false;
    1427             :             }
    1428           0 :             return true;
    1429             :         }
    1430             :     case type__::TSurfaceDescriptorDXGIYCbCr:
    1431             :         {
    1432           0 :             SurfaceDescriptorDXGIYCbCr tmp = SurfaceDescriptorDXGIYCbCr();
    1433           0 :             (*(v__)) = tmp;
    1434           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorDXGIYCbCr())), msg__, iter__)))) {
    1435           0 :                 FatalError("Error deserializing Union type");
    1436           0 :                 return false;
    1437             :             }
    1438             :             // Sentinel = 'TSurfaceDescriptorDXGIYCbCr'
    1439           0 :             if ((!((msg__)->ReadSentinel(iter__, 3061212892)))) {
    1440           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1441           0 :                 return false;
    1442             :             }
    1443           0 :             return true;
    1444             :         }
    1445             :     case type__::TSurfaceDescriptorX11:
    1446             :         {
    1447           0 :             SurfaceDescriptorX11 tmp = SurfaceDescriptorX11();
    1448           0 :             (*(v__)) = tmp;
    1449           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorX11())), msg__, iter__)))) {
    1450           0 :                 FatalError("Error deserializing Union type");
    1451           0 :                 return false;
    1452             :             }
    1453             :             // Sentinel = 'TSurfaceDescriptorX11'
    1454           0 :             if ((!((msg__)->ReadSentinel(iter__, 3923930613)))) {
    1455           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1456           0 :                 return false;
    1457             :             }
    1458           0 :             return true;
    1459             :         }
    1460             :     case type__::TSurfaceTextureDescriptor:
    1461             :         {
    1462           0 :             SurfaceTextureDescriptor tmp = SurfaceTextureDescriptor();
    1463           0 :             (*(v__)) = tmp;
    1464           0 :             if ((!(Read((&((v__)->get_SurfaceTextureDescriptor())), msg__, iter__)))) {
    1465           0 :                 FatalError("Error deserializing Union type");
    1466           0 :                 return false;
    1467             :             }
    1468             :             // Sentinel = 'TSurfaceTextureDescriptor'
    1469           0 :             if ((!((msg__)->ReadSentinel(iter__, 2253946800)))) {
    1470           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1471           0 :                 return false;
    1472             :             }
    1473           0 :             return true;
    1474             :         }
    1475             :     case type__::TEGLImageDescriptor:
    1476             :         {
    1477           0 :             EGLImageDescriptor tmp = EGLImageDescriptor();
    1478           0 :             (*(v__)) = tmp;
    1479           0 :             if ((!(Read((&((v__)->get_EGLImageDescriptor())), msg__, iter__)))) {
    1480           0 :                 FatalError("Error deserializing Union type");
    1481           0 :                 return false;
    1482             :             }
    1483             :             // Sentinel = 'TEGLImageDescriptor'
    1484           0 :             if ((!((msg__)->ReadSentinel(iter__, 2680446099)))) {
    1485           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1486           0 :                 return false;
    1487             :             }
    1488           0 :             return true;
    1489             :         }
    1490             :     case type__::TSurfaceDescriptorMacIOSurface:
    1491             :         {
    1492           0 :             SurfaceDescriptorMacIOSurface tmp = SurfaceDescriptorMacIOSurface();
    1493           0 :             (*(v__)) = tmp;
    1494           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorMacIOSurface())), msg__, iter__)))) {
    1495           0 :                 FatalError("Error deserializing Union type");
    1496           0 :                 return false;
    1497             :             }
    1498             :             // Sentinel = 'TSurfaceDescriptorMacIOSurface'
    1499           0 :             if ((!((msg__)->ReadSentinel(iter__, 4267688786)))) {
    1500           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1501           0 :                 return false;
    1502             :             }
    1503           0 :             return true;
    1504             :         }
    1505             :     case type__::TSurfaceDescriptorSharedGLTexture:
    1506             :         {
    1507           0 :             SurfaceDescriptorSharedGLTexture tmp = SurfaceDescriptorSharedGLTexture();
    1508           0 :             (*(v__)) = tmp;
    1509           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorSharedGLTexture())), msg__, iter__)))) {
    1510           0 :                 FatalError("Error deserializing Union type");
    1511           0 :                 return false;
    1512             :             }
    1513             :             // Sentinel = 'TSurfaceDescriptorSharedGLTexture'
    1514           0 :             if ((!((msg__)->ReadSentinel(iter__, 4169514976)))) {
    1515           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1516           0 :                 return false;
    1517             :             }
    1518           0 :             return true;
    1519             :         }
    1520             :     case type__::TSurfaceDescriptorGPUVideo:
    1521             :         {
    1522           0 :             SurfaceDescriptorGPUVideo tmp = SurfaceDescriptorGPUVideo();
    1523           0 :             (*(v__)) = tmp;
    1524           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorGPUVideo())), msg__, iter__)))) {
    1525           0 :                 FatalError("Error deserializing Union type");
    1526           0 :                 return false;
    1527             :             }
    1528             :             // Sentinel = 'TSurfaceDescriptorGPUVideo'
    1529           0 :             if ((!((msg__)->ReadSentinel(iter__, 2406892431)))) {
    1530           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1531           0 :                 return false;
    1532             :             }
    1533           0 :             return true;
    1534             :         }
    1535             :     case type__::Tnull_t:
    1536             :         {
    1537             :             null_t tmp = null_t();
    1538           0 :             (*(v__)) = tmp;
    1539           0 :             if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
    1540           0 :                 FatalError("Error deserializing Union type");
    1541           0 :                 return false;
    1542             :             }
    1543             :             // Sentinel = 'Tnull_t'
    1544           0 :             if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
    1545           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1546           0 :                 return false;
    1547             :             }
    1548           0 :             return true;
    1549             :         }
    1550             :     default:
    1551             :         {
    1552           0 :             FatalError("unknown union type");
    1553           0 :             return false;
    1554             :         }
    1555             :     }
    1556             : }
    1557             : 
    1558           0 : auto PVRManagerParent::Write(
    1559             :         const SurfaceDescriptorMacIOSurface& v__,
    1560             :         Message* msg__) -> void
    1561             : {
    1562           0 :     Write((v__).surfaceId(), msg__);
    1563             :     // Sentinel = 'surfaceId'
    1564           0 :     (msg__)->WriteSentinel(4108848731);
    1565           0 :     Write((v__).scaleFactor(), msg__);
    1566             :     // Sentinel = 'scaleFactor'
    1567           0 :     (msg__)->WriteSentinel(1184637148);
    1568           0 :     Write((v__).isOpaque(), msg__);
    1569             :     // Sentinel = 'isOpaque'
    1570           0 :     (msg__)->WriteSentinel(3519081617);
    1571           0 : }
    1572             : 
    1573           0 : auto PVRManagerParent::Read(
    1574             :         SurfaceDescriptorMacIOSurface* v__,
    1575             :         const Message* msg__,
    1576             :         PickleIterator* iter__) -> bool
    1577             : {
    1578           0 :     if ((!(Read((&((v__)->surfaceId())), msg__, iter__)))) {
    1579           0 :         FatalError("Error deserializing 'surfaceId' (uint32_t) member of 'SurfaceDescriptorMacIOSurface'");
    1580           0 :         return false;
    1581             :     }
    1582             :     // Sentinel = 'surfaceId'
    1583           0 :     if ((!((msg__)->ReadSentinel(iter__, 4108848731)))) {
    1584           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'surfaceId' (uint32_t) member of 'SurfaceDescriptorMacIOSurface'");
    1585           0 :         return false;
    1586             :     }
    1587           0 :     if ((!(Read((&((v__)->scaleFactor())), msg__, iter__)))) {
    1588           0 :         FatalError("Error deserializing 'scaleFactor' (double) member of 'SurfaceDescriptorMacIOSurface'");
    1589           0 :         return false;
    1590             :     }
    1591             :     // Sentinel = 'scaleFactor'
    1592           0 :     if ((!((msg__)->ReadSentinel(iter__, 1184637148)))) {
    1593           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'scaleFactor' (double) member of 'SurfaceDescriptorMacIOSurface'");
    1594           0 :         return false;
    1595             :     }
    1596           0 :     if ((!(Read((&((v__)->isOpaque())), msg__, iter__)))) {
    1597           0 :         FatalError("Error deserializing 'isOpaque' (bool) member of 'SurfaceDescriptorMacIOSurface'");
    1598           0 :         return false;
    1599             :     }
    1600             :     // Sentinel = 'isOpaque'
    1601           0 :     if ((!((msg__)->ReadSentinel(iter__, 3519081617)))) {
    1602           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isOpaque' (bool) member of 'SurfaceDescriptorMacIOSurface'");
    1603           0 :         return false;
    1604             :     }
    1605           0 :     return true;
    1606             : }
    1607             : 
    1608           0 : auto PVRManagerParent::Write(
    1609             :         const GamepadHandInformation& v__,
    1610             :         Message* msg__) -> void
    1611             : {
    1612           0 :     Write((v__).index(), msg__);
    1613             :     // Sentinel = 'index'
    1614           0 :     (msg__)->WriteSentinel(2111871137);
    1615           0 :     Write((v__).service_type(), msg__);
    1616             :     // Sentinel = 'service_type'
    1617           0 :     (msg__)->WriteSentinel(269243832);
    1618           0 :     Write((v__).hand(), msg__);
    1619             :     // Sentinel = 'hand'
    1620           0 :     (msg__)->WriteSentinel(2604541391);
    1621           0 : }
    1622             : 
    1623           0 : auto PVRManagerParent::Read(
    1624             :         GamepadHandInformation* v__,
    1625             :         const Message* msg__,
    1626             :         PickleIterator* iter__) -> bool
    1627             : {
    1628           0 :     if ((!(Read((&((v__)->index())), msg__, iter__)))) {
    1629           0 :         FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadHandInformation'");
    1630           0 :         return false;
    1631             :     }
    1632             :     // Sentinel = 'index'
    1633           0 :     if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
    1634           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadHandInformation'");
    1635           0 :         return false;
    1636             :     }
    1637           0 :     if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
    1638           0 :         FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadHandInformation'");
    1639           0 :         return false;
    1640             :     }
    1641             :     // Sentinel = 'service_type'
    1642           0 :     if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
    1643           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadHandInformation'");
    1644           0 :         return false;
    1645             :     }
    1646           0 :     if ((!(Read((&((v__)->hand())), msg__, iter__)))) {
    1647           0 :         FatalError("Error deserializing 'hand' (GamepadHand) member of 'GamepadHandInformation'");
    1648           0 :         return false;
    1649             :     }
    1650             :     // Sentinel = 'hand'
    1651           0 :     if ((!((msg__)->ReadSentinel(iter__, 2604541391)))) {
    1652           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hand' (GamepadHand) member of 'GamepadHandInformation'");
    1653           0 :         return false;
    1654             :     }
    1655           0 :     return true;
    1656             : }
    1657             : 
    1658           0 : auto PVRManagerParent::Write(
    1659             :         const YCbCrDescriptor& v__,
    1660             :         Message* msg__) -> void
    1661             : {
    1662           0 :     Write((v__).ySize(), msg__);
    1663             :     // Sentinel = 'ySize'
    1664           0 :     (msg__)->WriteSentinel(313512843);
    1665           0 :     Write((v__).cbCrSize(), msg__);
    1666             :     // Sentinel = 'cbCrSize'
    1667           0 :     (msg__)->WriteSentinel(2601117167);
    1668           0 :     Write((v__).yOffset(), msg__);
    1669             :     // Sentinel = 'yOffset'
    1670           0 :     (msg__)->WriteSentinel(983795183);
    1671           0 :     Write((v__).cbOffset(), msg__);
    1672             :     // Sentinel = 'cbOffset'
    1673           0 :     (msg__)->WriteSentinel(4197159602);
    1674           0 :     Write((v__).crOffset(), msg__);
    1675             :     // Sentinel = 'crOffset'
    1676           0 :     (msg__)->WriteSentinel(1739681986);
    1677           0 :     Write((v__).stereoMode(), msg__);
    1678             :     // Sentinel = 'stereoMode'
    1679           0 :     (msg__)->WriteSentinel(2234072623);
    1680           0 :     Write((v__).yUVColorSpace(), msg__);
    1681             :     // Sentinel = 'yUVColorSpace'
    1682           0 :     (msg__)->WriteSentinel(1051398544);
    1683           0 :     Write((v__).hasIntermediateBuffer(), msg__);
    1684             :     // Sentinel = 'hasIntermediateBuffer'
    1685           0 :     (msg__)->WriteSentinel(985857996);
    1686           0 : }
    1687             : 
    1688           0 : auto PVRManagerParent::Read(
    1689             :         YCbCrDescriptor* v__,
    1690             :         const Message* msg__,
    1691             :         PickleIterator* iter__) -> bool
    1692             : {
    1693           0 :     if ((!(Read((&((v__)->ySize())), msg__, iter__)))) {
    1694           0 :         FatalError("Error deserializing 'ySize' (IntSize) member of 'YCbCrDescriptor'");
    1695           0 :         return false;
    1696             :     }
    1697             :     // Sentinel = 'ySize'
    1698           0 :     if ((!((msg__)->ReadSentinel(iter__, 313512843)))) {
    1699           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ySize' (IntSize) member of 'YCbCrDescriptor'");
    1700           0 :         return false;
    1701             :     }
    1702           0 :     if ((!(Read((&((v__)->cbCrSize())), msg__, iter__)))) {
    1703           0 :         FatalError("Error deserializing 'cbCrSize' (IntSize) member of 'YCbCrDescriptor'");
    1704           0 :         return false;
    1705             :     }
    1706             :     // Sentinel = 'cbCrSize'
    1707           0 :     if ((!((msg__)->ReadSentinel(iter__, 2601117167)))) {
    1708           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'cbCrSize' (IntSize) member of 'YCbCrDescriptor'");
    1709           0 :         return false;
    1710             :     }
    1711           0 :     if ((!(Read((&((v__)->yOffset())), msg__, iter__)))) {
    1712           0 :         FatalError("Error deserializing 'yOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1713           0 :         return false;
    1714             :     }
    1715             :     // Sentinel = 'yOffset'
    1716           0 :     if ((!((msg__)->ReadSentinel(iter__, 983795183)))) {
    1717           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'yOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1718           0 :         return false;
    1719             :     }
    1720           0 :     if ((!(Read((&((v__)->cbOffset())), msg__, iter__)))) {
    1721           0 :         FatalError("Error deserializing 'cbOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1722           0 :         return false;
    1723             :     }
    1724             :     // Sentinel = 'cbOffset'
    1725           0 :     if ((!((msg__)->ReadSentinel(iter__, 4197159602)))) {
    1726           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'cbOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1727           0 :         return false;
    1728             :     }
    1729           0 :     if ((!(Read((&((v__)->crOffset())), msg__, iter__)))) {
    1730           0 :         FatalError("Error deserializing 'crOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1731           0 :         return false;
    1732             :     }
    1733             :     // Sentinel = 'crOffset'
    1734           0 :     if ((!((msg__)->ReadSentinel(iter__, 1739681986)))) {
    1735           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'crOffset' (uint32_t) member of 'YCbCrDescriptor'");
    1736           0 :         return false;
    1737             :     }
    1738           0 :     if ((!(Read((&((v__)->stereoMode())), msg__, iter__)))) {
    1739           0 :         FatalError("Error deserializing 'stereoMode' (StereoMode) member of 'YCbCrDescriptor'");
    1740           0 :         return false;
    1741             :     }
    1742             :     // Sentinel = 'stereoMode'
    1743           0 :     if ((!((msg__)->ReadSentinel(iter__, 2234072623)))) {
    1744           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stereoMode' (StereoMode) member of 'YCbCrDescriptor'");
    1745           0 :         return false;
    1746             :     }
    1747           0 :     if ((!(Read((&((v__)->yUVColorSpace())), msg__, iter__)))) {
    1748           0 :         FatalError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'YCbCrDescriptor'");
    1749           0 :         return false;
    1750             :     }
    1751             :     // Sentinel = 'yUVColorSpace'
    1752           0 :     if ((!((msg__)->ReadSentinel(iter__, 1051398544)))) {
    1753           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'YCbCrDescriptor'");
    1754           0 :         return false;
    1755             :     }
    1756           0 :     if ((!(Read((&((v__)->hasIntermediateBuffer())), msg__, iter__)))) {
    1757           0 :         FatalError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'YCbCrDescriptor'");
    1758           0 :         return false;
    1759             :     }
    1760             :     // Sentinel = 'hasIntermediateBuffer'
    1761           0 :     if ((!((msg__)->ReadSentinel(iter__, 985857996)))) {
    1762           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'YCbCrDescriptor'");
    1763           0 :         return false;
    1764             :     }
    1765           0 :     return true;
    1766             : }
    1767             : 
    1768           0 : auto PVRManagerParent::Write(
    1769             :         Shmem& v__,
    1770             :         Message* msg__) -> void
    1771             : {
    1772           0 :     IPC::WriteParam(msg__, v__);
    1773           0 :     (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1774           0 :     (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1775           0 : }
    1776             : 
    1777           0 : auto PVRManagerParent::Read(
    1778             :         Shmem* v__,
    1779             :         const Message* msg__,
    1780             :         PickleIterator* iter__) -> bool
    1781             : {
    1782           0 :     Shmem tmp;
    1783           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
    1784           0 :         return false;
    1785             :     }
    1786             : 
    1787           0 :     Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1788           0 :     Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
    1789           0 :     if (rawmem) {
    1790           0 :         (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
    1791           0 :         return true;
    1792             :     }
    1793           0 :     (*(v__)) = Shmem();
    1794           0 :     return true;
    1795             : }
    1796             : 
    1797           0 : auto PVRManagerParent::Write(
    1798             :         const AsyncParentMessageData& v__,
    1799             :         Message* msg__) -> void
    1800             : {
    1801             :     typedef AsyncParentMessageData type__;
    1802           0 :     Write(int((v__).type()), msg__);
    1803             :     // Sentinel = 'AsyncParentMessageData'
    1804           0 :     (msg__)->WriteSentinel(3809282103);
    1805             : 
    1806           0 :     switch ((v__).type()) {
    1807             :     case type__::TOpNotifyNotUsed:
    1808             :         {
    1809           0 :             Write((v__).get_OpNotifyNotUsed(), msg__);
    1810             :             // Sentinel = 'TOpNotifyNotUsed'
    1811           0 :             (msg__)->WriteSentinel(2920493638);
    1812           0 :             return;
    1813             :         }
    1814             :     default:
    1815             :         {
    1816           0 :             FatalError("unknown union type");
    1817           0 :             return;
    1818             :         }
    1819             :     }
    1820             : }
    1821             : 
    1822           0 : auto PVRManagerParent::Read(
    1823             :         AsyncParentMessageData* v__,
    1824             :         const Message* msg__,
    1825             :         PickleIterator* iter__) -> bool
    1826             : {
    1827             :     typedef AsyncParentMessageData type__;
    1828             :     int type;
    1829           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1830           0 :         mozilla::ipc::UnionTypeReadError("AsyncParentMessageData");
    1831           0 :         return false;
    1832             :     }
    1833             :     // Sentinel = 'AsyncParentMessageData'
    1834           0 :     if ((!((msg__)->ReadSentinel(iter__, 3809282103)))) {
    1835           0 :         mozilla::ipc::SentinelReadError("AsyncParentMessageData");
    1836           0 :         return false;
    1837             :     }
    1838             : 
    1839           0 :     switch (type) {
    1840             :     case type__::TOpNotifyNotUsed:
    1841             :         {
    1842           0 :             OpNotifyNotUsed tmp = OpNotifyNotUsed();
    1843           0 :             (*(v__)) = tmp;
    1844           0 :             if ((!(Read((&((v__)->get_OpNotifyNotUsed())), msg__, iter__)))) {
    1845           0 :                 FatalError("Error deserializing Union type");
    1846           0 :                 return false;
    1847             :             }
    1848             :             // Sentinel = 'TOpNotifyNotUsed'
    1849           0 :             if ((!((msg__)->ReadSentinel(iter__, 2920493638)))) {
    1850           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1851           0 :                 return false;
    1852             :             }
    1853           0 :             return true;
    1854             :         }
    1855             :     default:
    1856             :         {
    1857           0 :             FatalError("unknown union type");
    1858           0 :             return false;
    1859             :         }
    1860             :     }
    1861             : }
    1862             : 
    1863           0 : auto PVRManagerParent::Write(
    1864             :         const SurfaceDescriptorBuffer& v__,
    1865             :         Message* msg__) -> void
    1866             : {
    1867           0 :     Write((v__).desc(), msg__);
    1868             :     // Sentinel = 'desc'
    1869           0 :     (msg__)->WriteSentinel(3761872479);
    1870           0 :     Write((v__).data(), msg__);
    1871             :     // Sentinel = 'data'
    1872           0 :     (msg__)->WriteSentinel(843352540);
    1873           0 : }
    1874             : 
    1875           0 : auto PVRManagerParent::Read(
    1876             :         SurfaceDescriptorBuffer* v__,
    1877             :         const Message* msg__,
    1878             :         PickleIterator* iter__) -> bool
    1879             : {
    1880           0 :     if ((!(Read((&((v__)->desc())), msg__, iter__)))) {
    1881           0 :         FatalError("Error deserializing 'desc' (BufferDescriptor) member of 'SurfaceDescriptorBuffer'");
    1882           0 :         return false;
    1883             :     }
    1884             :     // Sentinel = 'desc'
    1885           0 :     if ((!((msg__)->ReadSentinel(iter__, 3761872479)))) {
    1886           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'desc' (BufferDescriptor) member of 'SurfaceDescriptorBuffer'");
    1887           0 :         return false;
    1888             :     }
    1889           0 :     if ((!(Read((&((v__)->data())), msg__, iter__)))) {
    1890           0 :         FatalError("Error deserializing 'data' (MemoryOrShmem) member of 'SurfaceDescriptorBuffer'");
    1891           0 :         return false;
    1892             :     }
    1893             :     // Sentinel = 'data'
    1894           0 :     if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
    1895           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'data' (MemoryOrShmem) member of 'SurfaceDescriptorBuffer'");
    1896           0 :         return false;
    1897             :     }
    1898           0 :     return true;
    1899             : }
    1900             : 
    1901           0 : auto PVRManagerParent::Write(
    1902             :         const SurfaceDescriptorSharedGLTexture& v__,
    1903             :         Message* msg__) -> void
    1904             : {
    1905           0 :     Write((v__).texture(), msg__);
    1906             :     // Sentinel = 'texture'
    1907           0 :     (msg__)->WriteSentinel(3654462510);
    1908           0 :     Write((v__).target(), msg__);
    1909             :     // Sentinel = 'target'
    1910           0 :     (msg__)->WriteSentinel(2226365285);
    1911           0 :     Write((v__).fence(), msg__);
    1912             :     // Sentinel = 'fence'
    1913           0 :     (msg__)->WriteSentinel(1225633926);
    1914           0 :     Write((v__).size(), msg__);
    1915             :     // Sentinel = 'size'
    1916           0 :     (msg__)->WriteSentinel(931048223);
    1917           0 :     Write((v__).hasAlpha(), msg__);
    1918             :     // Sentinel = 'hasAlpha'
    1919           0 :     (msg__)->WriteSentinel(309498444);
    1920           0 : }
    1921             : 
    1922           0 : auto PVRManagerParent::Read(
    1923             :         SurfaceDescriptorSharedGLTexture* v__,
    1924             :         const Message* msg__,
    1925             :         PickleIterator* iter__) -> bool
    1926             : {
    1927           0 :     if ((!(Read((&((v__)->texture())), msg__, iter__)))) {
    1928           0 :         FatalError("Error deserializing 'texture' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
    1929           0 :         return false;
    1930             :     }
    1931             :     // Sentinel = 'texture'
    1932           0 :     if ((!((msg__)->ReadSentinel(iter__, 3654462510)))) {
    1933           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'texture' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
    1934           0 :         return false;
    1935             :     }
    1936           0 :     if ((!(Read((&((v__)->target())), msg__, iter__)))) {
    1937           0 :         FatalError("Error deserializing 'target' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
    1938           0 :         return false;
    1939             :     }
    1940             :     // Sentinel = 'target'
    1941           0 :     if ((!((msg__)->ReadSentinel(iter__, 2226365285)))) {
    1942           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'target' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
    1943           0 :         return false;
    1944             :     }
    1945           0 :     if ((!(Read((&((v__)->fence())), msg__, iter__)))) {
    1946           0 :         FatalError("Error deserializing 'fence' (uintptr_t) member of 'SurfaceDescriptorSharedGLTexture'");
    1947           0 :         return false;
    1948             :     }
    1949             :     // Sentinel = 'fence'
    1950           0 :     if ((!((msg__)->ReadSentinel(iter__, 1225633926)))) {
    1951           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fence' (uintptr_t) member of 'SurfaceDescriptorSharedGLTexture'");
    1952           0 :         return false;
    1953             :     }
    1954           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    1955           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorSharedGLTexture'");
    1956           0 :         return false;
    1957             :     }
    1958             :     // Sentinel = 'size'
    1959           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    1960           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorSharedGLTexture'");
    1961           0 :         return false;
    1962             :     }
    1963           0 :     if ((!(Read((&((v__)->hasAlpha())), msg__, iter__)))) {
    1964           0 :         FatalError("Error deserializing 'hasAlpha' (bool) member of 'SurfaceDescriptorSharedGLTexture'");
    1965           0 :         return false;
    1966             :     }
    1967             :     // Sentinel = 'hasAlpha'
    1968           0 :     if ((!((msg__)->ReadSentinel(iter__, 309498444)))) {
    1969           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hasAlpha' (bool) member of 'SurfaceDescriptorSharedGLTexture'");
    1970           0 :         return false;
    1971             :     }
    1972           0 :     return true;
    1973             : }
    1974             : 
    1975           0 : auto PVRManagerParent::Write(
    1976             :         const SurfaceDescriptorGPUVideo& v__,
    1977             :         Message* msg__) -> void
    1978             : {
    1979           0 :     Write((v__).handle(), msg__);
    1980             :     // Sentinel = 'handle'
    1981           0 :     (msg__)->WriteSentinel(453975108);
    1982           0 : }
    1983             : 
    1984           0 : auto PVRManagerParent::Read(
    1985             :         SurfaceDescriptorGPUVideo* v__,
    1986             :         const Message* msg__,
    1987             :         PickleIterator* iter__) -> bool
    1988             : {
    1989           0 :     if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
    1990           0 :         FatalError("Error deserializing 'handle' (uint64_t) member of 'SurfaceDescriptorGPUVideo'");
    1991           0 :         return false;
    1992             :     }
    1993             :     // Sentinel = 'handle'
    1994           0 :     if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
    1995           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handle' (uint64_t) member of 'SurfaceDescriptorGPUVideo'");
    1996           0 :         return false;
    1997             :     }
    1998           0 :     return true;
    1999             : }
    2000             : 
    2001           0 : auto PVRManagerParent::Write(
    2002             :         const SurfaceDescriptorD3D10& v__,
    2003             :         Message* msg__) -> void
    2004             : {
    2005           0 :     Write((v__).handle(), msg__);
    2006             :     // Sentinel = 'handle'
    2007           0 :     (msg__)->WriteSentinel(453975108);
    2008           0 :     Write((v__).format(), msg__);
    2009             :     // Sentinel = 'format'
    2010           0 :     (msg__)->WriteSentinel(2052265543);
    2011           0 :     Write((v__).size(), msg__);
    2012             :     // Sentinel = 'size'
    2013           0 :     (msg__)->WriteSentinel(931048223);
    2014           0 : }
    2015             : 
    2016           0 : auto PVRManagerParent::Read(
    2017             :         SurfaceDescriptorD3D10* v__,
    2018             :         const Message* msg__,
    2019             :         PickleIterator* iter__) -> bool
    2020             : {
    2021           0 :     if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
    2022           0 :         FatalError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorD3D10'");
    2023           0 :         return false;
    2024             :     }
    2025             :     // Sentinel = 'handle'
    2026           0 :     if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
    2027           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorD3D10'");
    2028           0 :         return false;
    2029             :     }
    2030           0 :     if ((!(Read((&((v__)->format())), msg__, iter__)))) {
    2031           0 :         FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorD3D10'");
    2032           0 :         return false;
    2033             :     }
    2034             :     // Sentinel = 'format'
    2035           0 :     if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
    2036           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorD3D10'");
    2037           0 :         return false;
    2038             :     }
    2039           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2040           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorD3D10'");
    2041           0 :         return false;
    2042             :     }
    2043             :     // Sentinel = 'size'
    2044           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2045           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorD3D10'");
    2046           0 :         return false;
    2047             :     }
    2048           0 :     return true;
    2049             : }
    2050             : 
    2051           0 : auto PVRManagerParent::Write(
    2052             :         const GamepadRemoved& v__,
    2053             :         Message* msg__) -> void
    2054             : {
    2055           0 :     Write((v__).index(), msg__);
    2056             :     // Sentinel = 'index'
    2057           0 :     (msg__)->WriteSentinel(2111871137);
    2058           0 :     Write((v__).service_type(), msg__);
    2059             :     // Sentinel = 'service_type'
    2060           0 :     (msg__)->WriteSentinel(269243832);
    2061           0 : }
    2062             : 
    2063           0 : auto PVRManagerParent::Read(
    2064             :         GamepadRemoved* v__,
    2065             :         const Message* msg__,
    2066             :         PickleIterator* iter__) -> bool
    2067             : {
    2068           0 :     if ((!(Read((&((v__)->index())), msg__, iter__)))) {
    2069           0 :         FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadRemoved'");
    2070           0 :         return false;
    2071             :     }
    2072             :     // Sentinel = 'index'
    2073           0 :     if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
    2074           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadRemoved'");
    2075           0 :         return false;
    2076             :     }
    2077           0 :     if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
    2078           0 :         FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadRemoved'");
    2079           0 :         return false;
    2080             :     }
    2081             :     // Sentinel = 'service_type'
    2082           0 :     if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
    2083           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadRemoved'");
    2084           0 :         return false;
    2085             :     }
    2086           0 :     return true;
    2087             : }
    2088             : 
    2089           0 : auto PVRManagerParent::Write(
    2090             :         const nsTArray<AsyncParentMessageData>& v__,
    2091             :         Message* msg__) -> void
    2092             : {
    2093           0 :     uint32_t length = (v__).Length();
    2094           0 :     Write(length, msg__);
    2095             :     // Sentinel = ('length', 'AsyncParentMessageData[]')
    2096           0 :     (msg__)->WriteSentinel(3866187970);
    2097             : 
    2098           0 :     for (auto& elem : v__) {
    2099           0 :         Write(elem, msg__);
    2100             :         // Sentinel = 'AsyncParentMessageData[]'
    2101           0 :         (msg__)->WriteSentinel(4194735789);
    2102             :     }
    2103           0 : }
    2104             : 
    2105           0 : auto PVRManagerParent::Read(
    2106             :         nsTArray<AsyncParentMessageData>* v__,
    2107             :         const Message* msg__,
    2108             :         PickleIterator* iter__) -> bool
    2109             : {
    2110           0 :     nsTArray<AsyncParentMessageData> fa;
    2111             :     uint32_t length;
    2112           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    2113           0 :         mozilla::ipc::ArrayLengthReadError("AsyncParentMessageData[]");
    2114           0 :         return false;
    2115             :     }
    2116             :     // Sentinel = ('length', 'AsyncParentMessageData[]')
    2117           0 :     if ((!((msg__)->ReadSentinel(iter__, 3866187970)))) {
    2118           0 :         mozilla::ipc::SentinelReadError("AsyncParentMessageData[]");
    2119           0 :         return false;
    2120             :     }
    2121             : 
    2122           0 :     AsyncParentMessageData* elems = (fa).AppendElements(length);
    2123           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    2124           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    2125           0 :             FatalError("Error deserializing 'AsyncParentMessageData[i]'");
    2126           0 :             return false;
    2127             :         }
    2128             :         // Sentinel = 'AsyncParentMessageData[]'
    2129           0 :         if ((!((msg__)->ReadSentinel(iter__, 4194735789)))) {
    2130           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'AsyncParentMessageData[i]'");
    2131           0 :             return false;
    2132             :         }
    2133             :     }
    2134           0 :     (v__)->SwapElements(fa);
    2135           0 :     return true;
    2136             : }
    2137             : 
    2138           0 : auto PVRManagerParent::Write(
    2139             :         const OpNotifyNotUsed& v__,
    2140             :         Message* msg__) -> void
    2141             : {
    2142           0 :     Write((v__).TextureId(), msg__);
    2143             :     // Sentinel = 'TextureId'
    2144           0 :     (msg__)->WriteSentinel(2545498075);
    2145           0 :     Write((v__).fwdTransactionId(), msg__);
    2146             :     // Sentinel = 'fwdTransactionId'
    2147           0 :     (msg__)->WriteSentinel(2023976742);
    2148           0 : }
    2149             : 
    2150           0 : auto PVRManagerParent::Read(
    2151             :         OpNotifyNotUsed* v__,
    2152             :         const Message* msg__,
    2153             :         PickleIterator* iter__) -> bool
    2154             : {
    2155           0 :     if ((!(Read((&((v__)->TextureId())), msg__, iter__)))) {
    2156           0 :         FatalError("Error deserializing 'TextureId' (uint64_t) member of 'OpNotifyNotUsed'");
    2157           0 :         return false;
    2158             :     }
    2159             :     // Sentinel = 'TextureId'
    2160           0 :     if ((!((msg__)->ReadSentinel(iter__, 2545498075)))) {
    2161           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'TextureId' (uint64_t) member of 'OpNotifyNotUsed'");
    2162           0 :         return false;
    2163             :     }
    2164           0 :     if ((!(Read((&((v__)->fwdTransactionId())), msg__, iter__)))) {
    2165           0 :         FatalError("Error deserializing 'fwdTransactionId' (uint64_t) member of 'OpNotifyNotUsed'");
    2166           0 :         return false;
    2167             :     }
    2168             :     // Sentinel = 'fwdTransactionId'
    2169           0 :     if ((!((msg__)->ReadSentinel(iter__, 2023976742)))) {
    2170           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fwdTransactionId' (uint64_t) member of 'OpNotifyNotUsed'");
    2171           0 :         return false;
    2172             :     }
    2173           0 :     return true;
    2174             : }
    2175             : 
    2176           0 : auto PVRManagerParent::Write(
    2177             :         const SurfaceDescriptorFileMapping& v__,
    2178             :         Message* msg__) -> void
    2179             : {
    2180           0 :     Write((v__).handle(), msg__);
    2181             :     // Sentinel = 'handle'
    2182           0 :     (msg__)->WriteSentinel(453975108);
    2183           0 :     Write((v__).format(), msg__);
    2184             :     // Sentinel = 'format'
    2185           0 :     (msg__)->WriteSentinel(2052265543);
    2186           0 :     Write((v__).size(), msg__);
    2187             :     // Sentinel = 'size'
    2188           0 :     (msg__)->WriteSentinel(931048223);
    2189           0 : }
    2190             : 
    2191           0 : auto PVRManagerParent::Read(
    2192             :         SurfaceDescriptorFileMapping* v__,
    2193             :         const Message* msg__,
    2194             :         PickleIterator* iter__) -> bool
    2195             : {
    2196           0 :     if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
    2197           0 :         FatalError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorFileMapping'");
    2198           0 :         return false;
    2199             :     }
    2200             :     // Sentinel = 'handle'
    2201           0 :     if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
    2202           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorFileMapping'");
    2203           0 :         return false;
    2204             :     }
    2205           0 :     if ((!(Read((&((v__)->format())), msg__, iter__)))) {
    2206           0 :         FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorFileMapping'");
    2207           0 :         return false;
    2208             :     }
    2209             :     // Sentinel = 'format'
    2210           0 :     if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
    2211           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorFileMapping'");
    2212           0 :         return false;
    2213             :     }
    2214           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2215           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorFileMapping'");
    2216           0 :         return false;
    2217             :     }
    2218             :     // Sentinel = 'size'
    2219           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2220           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorFileMapping'");
    2221           0 :         return false;
    2222             :     }
    2223           0 :     return true;
    2224             : }
    2225             : 
    2226           0 : auto PVRManagerParent::Write(
    2227             :         const SurfaceDescriptorDIB& v__,
    2228             :         Message* msg__) -> void
    2229             : {
    2230           0 :     Write((v__).surface(), msg__);
    2231             :     // Sentinel = 'surface'
    2232           0 :     (msg__)->WriteSentinel(2386836878);
    2233           0 : }
    2234             : 
    2235           0 : auto PVRManagerParent::Read(
    2236             :         SurfaceDescriptorDIB* v__,
    2237             :         const Message* msg__,
    2238             :         PickleIterator* iter__) -> bool
    2239             : {
    2240           0 :     if ((!(Read((&((v__)->surface())), msg__, iter__)))) {
    2241           0 :         FatalError("Error deserializing 'surface' (uintptr_t) member of 'SurfaceDescriptorDIB'");
    2242           0 :         return false;
    2243             :     }
    2244             :     // Sentinel = 'surface'
    2245           0 :     if ((!((msg__)->ReadSentinel(iter__, 2386836878)))) {
    2246           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'surface' (uintptr_t) member of 'SurfaceDescriptorDIB'");
    2247           0 :         return false;
    2248             :     }
    2249           0 :     return true;
    2250             : }
    2251             : 
    2252           0 : auto PVRManagerParent::Write(
    2253             :         const GamepadAxisInformation& v__,
    2254             :         Message* msg__) -> void
    2255             : {
    2256           0 :     Write((v__).index(), msg__);
    2257             :     // Sentinel = 'index'
    2258           0 :     (msg__)->WriteSentinel(2111871137);
    2259           0 :     Write((v__).service_type(), msg__);
    2260             :     // Sentinel = 'service_type'
    2261           0 :     (msg__)->WriteSentinel(269243832);
    2262           0 :     Write((v__).axis(), msg__);
    2263             :     // Sentinel = 'axis'
    2264           0 :     (msg__)->WriteSentinel(102928799);
    2265           0 :     Write((v__).value(), msg__);
    2266             :     // Sentinel = 'value'
    2267           0 :     (msg__)->WriteSentinel(3456818542);
    2268           0 : }
    2269             : 
    2270           0 : auto PVRManagerParent::Read(
    2271             :         GamepadAxisInformation* v__,
    2272             :         const Message* msg__,
    2273             :         PickleIterator* iter__) -> bool
    2274             : {
    2275           0 :     if ((!(Read((&((v__)->index())), msg__, iter__)))) {
    2276           0 :         FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadAxisInformation'");
    2277           0 :         return false;
    2278             :     }
    2279             :     // Sentinel = 'index'
    2280           0 :     if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
    2281           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadAxisInformation'");
    2282           0 :         return false;
    2283             :     }
    2284           0 :     if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
    2285           0 :         FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadAxisInformation'");
    2286           0 :         return false;
    2287             :     }
    2288             :     // Sentinel = 'service_type'
    2289           0 :     if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
    2290           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadAxisInformation'");
    2291           0 :         return false;
    2292             :     }
    2293           0 :     if ((!(Read((&((v__)->axis())), msg__, iter__)))) {
    2294           0 :         FatalError("Error deserializing 'axis' (uint32_t) member of 'GamepadAxisInformation'");
    2295           0 :         return false;
    2296             :     }
    2297             :     // Sentinel = 'axis'
    2298           0 :     if ((!((msg__)->ReadSentinel(iter__, 102928799)))) {
    2299           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'axis' (uint32_t) member of 'GamepadAxisInformation'");
    2300           0 :         return false;
    2301             :     }
    2302           0 :     if ((!(Read((&((v__)->value())), msg__, iter__)))) {
    2303           0 :         FatalError("Error deserializing 'value' (double) member of 'GamepadAxisInformation'");
    2304           0 :         return false;
    2305             :     }
    2306             :     // Sentinel = 'value'
    2307           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
    2308           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'value' (double) member of 'GamepadAxisInformation'");
    2309           0 :         return false;
    2310             :     }
    2311           0 :     return true;
    2312             : }
    2313             : 
    2314           0 : auto PVRManagerParent::Write(
    2315             :         const GamepadAdded& v__,
    2316             :         Message* msg__) -> void
    2317             : {
    2318           0 :     Write((v__).id(), msg__);
    2319             :     // Sentinel = 'id'
    2320           0 :     (msg__)->WriteSentinel(2794505629);
    2321           0 :     Write((v__).index(), msg__);
    2322             :     // Sentinel = 'index'
    2323           0 :     (msg__)->WriteSentinel(2111871137);
    2324           0 :     Write((v__).mapping(), msg__);
    2325             :     // Sentinel = 'mapping'
    2326           0 :     (msg__)->WriteSentinel(601526733);
    2327           0 :     Write((v__).hand(), msg__);
    2328             :     // Sentinel = 'hand'
    2329           0 :     (msg__)->WriteSentinel(2604541391);
    2330           0 :     Write((v__).service_type(), msg__);
    2331             :     // Sentinel = 'service_type'
    2332           0 :     (msg__)->WriteSentinel(269243832);
    2333           0 :     Write((v__).num_buttons(), msg__);
    2334             :     // Sentinel = 'num_buttons'
    2335           0 :     (msg__)->WriteSentinel(1841626033);
    2336           0 :     Write((v__).num_axes(), msg__);
    2337             :     // Sentinel = 'num_axes'
    2338           0 :     (msg__)->WriteSentinel(2550850632);
    2339           0 :     Write((v__).num_haptics(), msg__);
    2340             :     // Sentinel = 'num_haptics'
    2341           0 :     (msg__)->WriteSentinel(3094951386);
    2342           0 : }
    2343             : 
    2344           0 : auto PVRManagerParent::Read(
    2345             :         GamepadAdded* v__,
    2346             :         const Message* msg__,
    2347             :         PickleIterator* iter__) -> bool
    2348             : {
    2349           0 :     if ((!(Read((&((v__)->id())), msg__, iter__)))) {
    2350           0 :         FatalError("Error deserializing 'id' (nsString) member of 'GamepadAdded'");
    2351           0 :         return false;
    2352             :     }
    2353             :     // Sentinel = 'id'
    2354           0 :     if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
    2355           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsString) member of 'GamepadAdded'");
    2356           0 :         return false;
    2357             :     }
    2358           0 :     if ((!(Read((&((v__)->index())), msg__, iter__)))) {
    2359           0 :         FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadAdded'");
    2360           0 :         return false;
    2361             :     }
    2362             :     // Sentinel = 'index'
    2363           0 :     if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
    2364           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadAdded'");
    2365           0 :         return false;
    2366             :     }
    2367           0 :     if ((!(Read((&((v__)->mapping())), msg__, iter__)))) {
    2368           0 :         FatalError("Error deserializing 'mapping' (GamepadMappingType) member of 'GamepadAdded'");
    2369           0 :         return false;
    2370             :     }
    2371             :     // Sentinel = 'mapping'
    2372           0 :     if ((!((msg__)->ReadSentinel(iter__, 601526733)))) {
    2373           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mapping' (GamepadMappingType) member of 'GamepadAdded'");
    2374           0 :         return false;
    2375             :     }
    2376           0 :     if ((!(Read((&((v__)->hand())), msg__, iter__)))) {
    2377           0 :         FatalError("Error deserializing 'hand' (GamepadHand) member of 'GamepadAdded'");
    2378           0 :         return false;
    2379             :     }
    2380             :     // Sentinel = 'hand'
    2381           0 :     if ((!((msg__)->ReadSentinel(iter__, 2604541391)))) {
    2382           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hand' (GamepadHand) member of 'GamepadAdded'");
    2383           0 :         return false;
    2384             :     }
    2385           0 :     if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
    2386           0 :         FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadAdded'");
    2387           0 :         return false;
    2388             :     }
    2389             :     // Sentinel = 'service_type'
    2390           0 :     if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
    2391           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadAdded'");
    2392           0 :         return false;
    2393             :     }
    2394           0 :     if ((!(Read((&((v__)->num_buttons())), msg__, iter__)))) {
    2395           0 :         FatalError("Error deserializing 'num_buttons' (uint32_t) member of 'GamepadAdded'");
    2396           0 :         return false;
    2397             :     }
    2398             :     // Sentinel = 'num_buttons'
    2399           0 :     if ((!((msg__)->ReadSentinel(iter__, 1841626033)))) {
    2400           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'num_buttons' (uint32_t) member of 'GamepadAdded'");
    2401           0 :         return false;
    2402             :     }
    2403           0 :     if ((!(Read((&((v__)->num_axes())), msg__, iter__)))) {
    2404           0 :         FatalError("Error deserializing 'num_axes' (uint32_t) member of 'GamepadAdded'");
    2405           0 :         return false;
    2406             :     }
    2407             :     // Sentinel = 'num_axes'
    2408           0 :     if ((!((msg__)->ReadSentinel(iter__, 2550850632)))) {
    2409           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'num_axes' (uint32_t) member of 'GamepadAdded'");
    2410           0 :         return false;
    2411             :     }
    2412           0 :     if ((!(Read((&((v__)->num_haptics())), msg__, iter__)))) {
    2413           0 :         FatalError("Error deserializing 'num_haptics' (uint32_t) member of 'GamepadAdded'");
    2414           0 :         return false;
    2415             :     }
    2416             :     // Sentinel = 'num_haptics'
    2417           0 :     if ((!((msg__)->ReadSentinel(iter__, 3094951386)))) {
    2418           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'num_haptics' (uint32_t) member of 'GamepadAdded'");
    2419           0 :         return false;
    2420             :     }
    2421           0 :     return true;
    2422             : }
    2423             : 
    2424           0 : auto PVRManagerParent::Write(
    2425             :         const GamepadPoseInformation& v__,
    2426             :         Message* msg__) -> void
    2427             : {
    2428           0 :     Write((v__).index(), msg__);
    2429             :     // Sentinel = 'index'
    2430           0 :     (msg__)->WriteSentinel(2111871137);
    2431           0 :     Write((v__).service_type(), msg__);
    2432             :     // Sentinel = 'service_type'
    2433           0 :     (msg__)->WriteSentinel(269243832);
    2434           0 :     Write((v__).pose_state(), msg__);
    2435             :     // Sentinel = 'pose_state'
    2436           0 :     (msg__)->WriteSentinel(489216835);
    2437           0 : }
    2438             : 
    2439           0 : auto PVRManagerParent::Read(
    2440             :         GamepadPoseInformation* v__,
    2441             :         const Message* msg__,
    2442             :         PickleIterator* iter__) -> bool
    2443             : {
    2444           0 :     if ((!(Read((&((v__)->index())), msg__, iter__)))) {
    2445           0 :         FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadPoseInformation'");
    2446           0 :         return false;
    2447             :     }
    2448             :     // Sentinel = 'index'
    2449           0 :     if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
    2450           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadPoseInformation'");
    2451           0 :         return false;
    2452             :     }
    2453           0 :     if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
    2454           0 :         FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadPoseInformation'");
    2455           0 :         return false;
    2456             :     }
    2457             :     // Sentinel = 'service_type'
    2458           0 :     if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
    2459           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadPoseInformation'");
    2460           0 :         return false;
    2461             :     }
    2462           0 :     if ((!(Read((&((v__)->pose_state())), msg__, iter__)))) {
    2463           0 :         FatalError("Error deserializing 'pose_state' (GamepadPoseState) member of 'GamepadPoseInformation'");
    2464           0 :         return false;
    2465             :     }
    2466             :     // Sentinel = 'pose_state'
    2467           0 :     if ((!((msg__)->ReadSentinel(iter__, 489216835)))) {
    2468           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'pose_state' (GamepadPoseState) member of 'GamepadPoseInformation'");
    2469           0 :         return false;
    2470             :     }
    2471           0 :     return true;
    2472             : }
    2473             : 
    2474           0 : auto PVRManagerParent::Write(
    2475             :         const EGLImageDescriptor& v__,
    2476             :         Message* msg__) -> void
    2477             : {
    2478           0 :     Write((v__).image(), msg__);
    2479             :     // Sentinel = 'image'
    2480           0 :     (msg__)->WriteSentinel(103190282);
    2481           0 :     Write((v__).fence(), msg__);
    2482             :     // Sentinel = 'fence'
    2483           0 :     (msg__)->WriteSentinel(1225633926);
    2484           0 :     Write((v__).size(), msg__);
    2485             :     // Sentinel = 'size'
    2486           0 :     (msg__)->WriteSentinel(931048223);
    2487           0 :     Write((v__).hasAlpha(), msg__);
    2488             :     // Sentinel = 'hasAlpha'
    2489           0 :     (msg__)->WriteSentinel(309498444);
    2490           0 : }
    2491             : 
    2492           0 : auto PVRManagerParent::Read(
    2493             :         EGLImageDescriptor* v__,
    2494             :         const Message* msg__,
    2495             :         PickleIterator* iter__) -> bool
    2496             : {
    2497           0 :     if ((!(Read((&((v__)->image())), msg__, iter__)))) {
    2498           0 :         FatalError("Error deserializing 'image' (uintptr_t) member of 'EGLImageDescriptor'");
    2499           0 :         return false;
    2500             :     }
    2501             :     // Sentinel = 'image'
    2502           0 :     if ((!((msg__)->ReadSentinel(iter__, 103190282)))) {
    2503           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'image' (uintptr_t) member of 'EGLImageDescriptor'");
    2504           0 :         return false;
    2505             :     }
    2506           0 :     if ((!(Read((&((v__)->fence())), msg__, iter__)))) {
    2507           0 :         FatalError("Error deserializing 'fence' (uintptr_t) member of 'EGLImageDescriptor'");
    2508           0 :         return false;
    2509             :     }
    2510             :     // Sentinel = 'fence'
    2511           0 :     if ((!((msg__)->ReadSentinel(iter__, 1225633926)))) {
    2512           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fence' (uintptr_t) member of 'EGLImageDescriptor'");
    2513           0 :         return false;
    2514             :     }
    2515           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2516           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'EGLImageDescriptor'");
    2517           0 :         return false;
    2518             :     }
    2519             :     // Sentinel = 'size'
    2520           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2521           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'EGLImageDescriptor'");
    2522           0 :         return false;
    2523             :     }
    2524           0 :     if ((!(Read((&((v__)->hasAlpha())), msg__, iter__)))) {
    2525           0 :         FatalError("Error deserializing 'hasAlpha' (bool) member of 'EGLImageDescriptor'");
    2526           0 :         return false;
    2527             :     }
    2528             :     // Sentinel = 'hasAlpha'
    2529           0 :     if ((!((msg__)->ReadSentinel(iter__, 309498444)))) {
    2530           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hasAlpha' (bool) member of 'EGLImageDescriptor'");
    2531           0 :         return false;
    2532             :     }
    2533           0 :     return true;
    2534             : }
    2535             : 
    2536           0 : auto PVRManagerParent::Write(
    2537             :         const RGBDescriptor& v__,
    2538             :         Message* msg__) -> void
    2539             : {
    2540           0 :     Write((v__).size(), msg__);
    2541             :     // Sentinel = 'size'
    2542           0 :     (msg__)->WriteSentinel(931048223);
    2543           0 :     Write((v__).format(), msg__);
    2544             :     // Sentinel = 'format'
    2545           0 :     (msg__)->WriteSentinel(2052265543);
    2546           0 :     Write((v__).hasIntermediateBuffer(), msg__);
    2547             :     // Sentinel = 'hasIntermediateBuffer'
    2548           0 :     (msg__)->WriteSentinel(985857996);
    2549           0 : }
    2550             : 
    2551           0 : auto PVRManagerParent::Read(
    2552             :         RGBDescriptor* v__,
    2553             :         const Message* msg__,
    2554             :         PickleIterator* iter__) -> bool
    2555             : {
    2556           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2557           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'RGBDescriptor'");
    2558           0 :         return false;
    2559             :     }
    2560             :     // Sentinel = 'size'
    2561           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2562           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'RGBDescriptor'");
    2563           0 :         return false;
    2564             :     }
    2565           0 :     if ((!(Read((&((v__)->format())), msg__, iter__)))) {
    2566           0 :         FatalError("Error deserializing 'format' (SurfaceFormat) member of 'RGBDescriptor'");
    2567           0 :         return false;
    2568             :     }
    2569             :     // Sentinel = 'format'
    2570           0 :     if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
    2571           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'RGBDescriptor'");
    2572           0 :         return false;
    2573             :     }
    2574           0 :     if ((!(Read((&((v__)->hasIntermediateBuffer())), msg__, iter__)))) {
    2575           0 :         FatalError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'RGBDescriptor'");
    2576           0 :         return false;
    2577             :     }
    2578             :     // Sentinel = 'hasIntermediateBuffer'
    2579           0 :     if ((!((msg__)->ReadSentinel(iter__, 985857996)))) {
    2580           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'RGBDescriptor'");
    2581           0 :         return false;
    2582             :     }
    2583           0 :     return true;
    2584             : }
    2585             : 
    2586           0 : auto PVRManagerParent::Write(
    2587             :         const SurfaceDescriptorDXGIYCbCr& v__,
    2588             :         Message* msg__) -> void
    2589             : {
    2590           0 :     Write((v__).handleY(), msg__);
    2591             :     // Sentinel = 'handleY'
    2592           0 :     (msg__)->WriteSentinel(2719705368);
    2593           0 :     Write((v__).handleCb(), msg__);
    2594             :     // Sentinel = 'handleCb'
    2595           0 :     (msg__)->WriteSentinel(2777335333);
    2596           0 :     Write((v__).handleCr(), msg__);
    2597             :     // Sentinel = 'handleCr'
    2598           0 :     (msg__)->WriteSentinel(2777335349);
    2599           0 :     Write((v__).size(), msg__);
    2600             :     // Sentinel = 'size'
    2601           0 :     (msg__)->WriteSentinel(931048223);
    2602           0 :     Write((v__).sizeY(), msg__);
    2603             :     // Sentinel = 'sizeY'
    2604           0 :     (msg__)->WriteSentinel(886619725);
    2605           0 :     Write((v__).sizeCbCr(), msg__);
    2606             :     // Sentinel = 'sizeCbCr'
    2607           0 :     (msg__)->WriteSentinel(2196484423);
    2608           0 : }
    2609             : 
    2610           0 : auto PVRManagerParent::Read(
    2611             :         SurfaceDescriptorDXGIYCbCr* v__,
    2612             :         const Message* msg__,
    2613             :         PickleIterator* iter__) -> bool
    2614             : {
    2615           0 :     if ((!(Read((&((v__)->handleY())), msg__, iter__)))) {
    2616           0 :         FatalError("Error deserializing 'handleY' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2617           0 :         return false;
    2618             :     }
    2619             :     // Sentinel = 'handleY'
    2620           0 :     if ((!((msg__)->ReadSentinel(iter__, 2719705368)))) {
    2621           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handleY' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2622           0 :         return false;
    2623             :     }
    2624           0 :     if ((!(Read((&((v__)->handleCb())), msg__, iter__)))) {
    2625           0 :         FatalError("Error deserializing 'handleCb' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2626           0 :         return false;
    2627             :     }
    2628             :     // Sentinel = 'handleCb'
    2629           0 :     if ((!((msg__)->ReadSentinel(iter__, 2777335333)))) {
    2630           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handleCb' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2631           0 :         return false;
    2632             :     }
    2633           0 :     if ((!(Read((&((v__)->handleCr())), msg__, iter__)))) {
    2634           0 :         FatalError("Error deserializing 'handleCr' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2635           0 :         return false;
    2636             :     }
    2637             :     // Sentinel = 'handleCr'
    2638           0 :     if ((!((msg__)->ReadSentinel(iter__, 2777335349)))) {
    2639           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handleCr' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
    2640           0 :         return false;
    2641             :     }
    2642           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2643           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2644           0 :         return false;
    2645             :     }
    2646             :     // Sentinel = 'size'
    2647           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2648           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2649           0 :         return false;
    2650             :     }
    2651           0 :     if ((!(Read((&((v__)->sizeY())), msg__, iter__)))) {
    2652           0 :         FatalError("Error deserializing 'sizeY' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2653           0 :         return false;
    2654             :     }
    2655             :     // Sentinel = 'sizeY'
    2656           0 :     if ((!((msg__)->ReadSentinel(iter__, 886619725)))) {
    2657           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sizeY' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2658           0 :         return false;
    2659             :     }
    2660           0 :     if ((!(Read((&((v__)->sizeCbCr())), msg__, iter__)))) {
    2661           0 :         FatalError("Error deserializing 'sizeCbCr' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2662           0 :         return false;
    2663             :     }
    2664             :     // Sentinel = 'sizeCbCr'
    2665           0 :     if ((!((msg__)->ReadSentinel(iter__, 2196484423)))) {
    2666           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'sizeCbCr' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
    2667           0 :         return false;
    2668             :     }
    2669           0 :     return true;
    2670             : }
    2671             : 
    2672           0 : auto PVRManagerParent::Write(
    2673             :         const MemoryOrShmem& v__,
    2674             :         Message* msg__) -> void
    2675             : {
    2676             :     typedef MemoryOrShmem type__;
    2677           0 :     Write(int((v__).type()), msg__);
    2678             :     // Sentinel = 'MemoryOrShmem'
    2679           0 :     (msg__)->WriteSentinel(3227621763);
    2680             : 
    2681           0 :     switch ((v__).type()) {
    2682             :     case type__::Tuintptr_t:
    2683             :         {
    2684           0 :             Write((v__).get_uintptr_t(), msg__);
    2685             :             // Sentinel = 'Tuintptr_t'
    2686           0 :             (msg__)->WriteSentinel(3218141805);
    2687           0 :             return;
    2688             :         }
    2689             :     case type__::TShmem:
    2690             :         {
    2691           0 :             Write((v__).get_Shmem(), msg__);
    2692             :             // Sentinel = 'TShmem'
    2693           0 :             (msg__)->WriteSentinel(3517971266);
    2694           0 :             return;
    2695             :         }
    2696             :     default:
    2697             :         {
    2698           0 :             FatalError("unknown union type");
    2699           0 :             return;
    2700             :         }
    2701             :     }
    2702             : }
    2703             : 
    2704           0 : auto PVRManagerParent::Read(
    2705             :         MemoryOrShmem* v__,
    2706             :         const Message* msg__,
    2707             :         PickleIterator* iter__) -> bool
    2708             : {
    2709             :     typedef MemoryOrShmem type__;
    2710             :     int type;
    2711           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2712           0 :         mozilla::ipc::UnionTypeReadError("MemoryOrShmem");
    2713           0 :         return false;
    2714             :     }
    2715             :     // Sentinel = 'MemoryOrShmem'
    2716           0 :     if ((!((msg__)->ReadSentinel(iter__, 3227621763)))) {
    2717           0 :         mozilla::ipc::SentinelReadError("MemoryOrShmem");
    2718           0 :         return false;
    2719             :     }
    2720             : 
    2721           0 :     switch (type) {
    2722             :     case type__::Tuintptr_t:
    2723             :         {
    2724           0 :             uintptr_t tmp = uintptr_t();
    2725           0 :             (*(v__)) = tmp;
    2726           0 :             if ((!(Read((&((v__)->get_uintptr_t())), msg__, iter__)))) {
    2727           0 :                 FatalError("Error deserializing Union type");
    2728           0 :                 return false;
    2729             :             }
    2730             :             // Sentinel = 'Tuintptr_t'
    2731           0 :             if ((!((msg__)->ReadSentinel(iter__, 3218141805)))) {
    2732           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2733           0 :                 return false;
    2734             :             }
    2735           0 :             return true;
    2736             :         }
    2737             :     case type__::TShmem:
    2738             :         {
    2739           0 :             Shmem tmp = Shmem();
    2740           0 :             (*(v__)) = tmp;
    2741           0 :             if ((!(Read((&((v__)->get_Shmem())), msg__, iter__)))) {
    2742           0 :                 FatalError("Error deserializing Union type");
    2743           0 :                 return false;
    2744             :             }
    2745             :             // Sentinel = 'TShmem'
    2746           0 :             if ((!((msg__)->ReadSentinel(iter__, 3517971266)))) {
    2747           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2748           0 :                 return false;
    2749             :             }
    2750           0 :             return true;
    2751             :         }
    2752             :     default:
    2753             :         {
    2754           0 :             FatalError("unknown union type");
    2755           0 :             return false;
    2756             :         }
    2757             :     }
    2758             : }
    2759             : 
    2760           0 : auto PVRManagerParent::Write(
    2761             :         const GamepadButtonInformation& v__,
    2762             :         Message* msg__) -> void
    2763             : {
    2764           0 :     Write((v__).index(), msg__);
    2765             :     // Sentinel = 'index'
    2766           0 :     (msg__)->WriteSentinel(2111871137);
    2767           0 :     Write((v__).service_type(), msg__);
    2768             :     // Sentinel = 'service_type'
    2769           0 :     (msg__)->WriteSentinel(269243832);
    2770           0 :     Write((v__).button(), msg__);
    2771             :     // Sentinel = 'button'
    2772           0 :     (msg__)->WriteSentinel(1861990506);
    2773           0 :     Write((v__).value(), msg__);
    2774             :     // Sentinel = 'value'
    2775           0 :     (msg__)->WriteSentinel(3456818542);
    2776           0 :     Write((v__).pressed(), msg__);
    2777             :     // Sentinel = 'pressed'
    2778           0 :     (msg__)->WriteSentinel(2165052789);
    2779           0 :     Write((v__).touched(), msg__);
    2780             :     // Sentinel = 'touched'
    2781           0 :     (msg__)->WriteSentinel(1674937397);
    2782           0 : }
    2783             : 
    2784           0 : auto PVRManagerParent::Read(
    2785             :         GamepadButtonInformation* v__,
    2786             :         const Message* msg__,
    2787             :         PickleIterator* iter__) -> bool
    2788             : {
    2789           0 :     if ((!(Read((&((v__)->index())), msg__, iter__)))) {
    2790           0 :         FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadButtonInformation'");
    2791           0 :         return false;
    2792             :     }
    2793             :     // Sentinel = 'index'
    2794           0 :     if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
    2795           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadButtonInformation'");
    2796           0 :         return false;
    2797             :     }
    2798           0 :     if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
    2799           0 :         FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadButtonInformation'");
    2800           0 :         return false;
    2801             :     }
    2802             :     // Sentinel = 'service_type'
    2803           0 :     if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
    2804           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadButtonInformation'");
    2805           0 :         return false;
    2806             :     }
    2807           0 :     if ((!(Read((&((v__)->button())), msg__, iter__)))) {
    2808           0 :         FatalError("Error deserializing 'button' (uint32_t) member of 'GamepadButtonInformation'");
    2809           0 :         return false;
    2810             :     }
    2811             :     // Sentinel = 'button'
    2812           0 :     if ((!((msg__)->ReadSentinel(iter__, 1861990506)))) {
    2813           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'button' (uint32_t) member of 'GamepadButtonInformation'");
    2814           0 :         return false;
    2815             :     }
    2816           0 :     if ((!(Read((&((v__)->value())), msg__, iter__)))) {
    2817           0 :         FatalError("Error deserializing 'value' (double) member of 'GamepadButtonInformation'");
    2818           0 :         return false;
    2819             :     }
    2820             :     // Sentinel = 'value'
    2821           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
    2822           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'value' (double) member of 'GamepadButtonInformation'");
    2823           0 :         return false;
    2824             :     }
    2825           0 :     if ((!(Read((&((v__)->pressed())), msg__, iter__)))) {
    2826           0 :         FatalError("Error deserializing 'pressed' (bool) member of 'GamepadButtonInformation'");
    2827           0 :         return false;
    2828             :     }
    2829             :     // Sentinel = 'pressed'
    2830           0 :     if ((!((msg__)->ReadSentinel(iter__, 2165052789)))) {
    2831           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'pressed' (bool) member of 'GamepadButtonInformation'");
    2832           0 :         return false;
    2833             :     }
    2834           0 :     if ((!(Read((&((v__)->touched())), msg__, iter__)))) {
    2835           0 :         FatalError("Error deserializing 'touched' (bool) member of 'GamepadButtonInformation'");
    2836           0 :         return false;
    2837             :     }
    2838             :     // Sentinel = 'touched'
    2839           0 :     if ((!((msg__)->ReadSentinel(iter__, 1674937397)))) {
    2840           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'touched' (bool) member of 'GamepadButtonInformation'");
    2841           0 :         return false;
    2842             :     }
    2843           0 :     return true;
    2844             : }
    2845             : 
    2846           0 : auto PVRManagerParent::Write(
    2847             :         const PVRLayerParent* v__,
    2848             :         Message* msg__,
    2849             :         bool nullable__) -> void
    2850             : {
    2851             :     int32_t id;
    2852           0 :     if ((!(v__))) {
    2853           0 :         if ((!(nullable__))) {
    2854           0 :             FatalError("NULL actor value passed to non-nullable param");
    2855             :         }
    2856           0 :         id = 0;
    2857             :     }
    2858             :     else {
    2859           0 :         id = (v__)->Id();
    2860           0 :         if ((1) == (id)) {
    2861           0 :             FatalError("actor has been |delete|d");
    2862             :         }
    2863             :     }
    2864             : 
    2865           0 :     Write(id, msg__);
    2866           0 : }
    2867             : 
    2868           0 : auto PVRManagerParent::Read(
    2869             :         PVRLayerParent** v__,
    2870             :         const Message* msg__,
    2871             :         PickleIterator* iter__,
    2872             :         bool nullable__) -> bool
    2873             : {
    2874           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PVRLayer", PVRLayerMsgStart);
    2875           0 :     if ((actor).isNothing()) {
    2876           0 :         return false;
    2877             :     }
    2878             : 
    2879           0 :     (*(v__)) = static_cast<PVRLayerParent*>((actor).value());
    2880           0 :     return true;
    2881             : }
    2882             : 
    2883           0 : auto PVRManagerParent::Write(
    2884             :         const SurfaceTextureDescriptor& v__,
    2885             :         Message* msg__) -> void
    2886             : {
    2887           0 :     Write((v__).handle(), msg__);
    2888             :     // Sentinel = 'handle'
    2889           0 :     (msg__)->WriteSentinel(453975108);
    2890           0 :     Write((v__).size(), msg__);
    2891             :     // Sentinel = 'size'
    2892           0 :     (msg__)->WriteSentinel(931048223);
    2893           0 :     Write((v__).continuous(), msg__);
    2894             :     // Sentinel = 'continuous'
    2895           0 :     (msg__)->WriteSentinel(2103626571);
    2896           0 : }
    2897             : 
    2898           0 : auto PVRManagerParent::Read(
    2899             :         SurfaceTextureDescriptor* v__,
    2900             :         const Message* msg__,
    2901             :         PickleIterator* iter__) -> bool
    2902             : {
    2903           0 :     if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
    2904           0 :         FatalError("Error deserializing 'handle' (uint64_t) member of 'SurfaceTextureDescriptor'");
    2905           0 :         return false;
    2906             :     }
    2907             :     // Sentinel = 'handle'
    2908           0 :     if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
    2909           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'handle' (uint64_t) member of 'SurfaceTextureDescriptor'");
    2910           0 :         return false;
    2911             :     }
    2912           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2913           0 :         FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceTextureDescriptor'");
    2914           0 :         return false;
    2915             :     }
    2916             :     // Sentinel = 'size'
    2917           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2918           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceTextureDescriptor'");
    2919           0 :         return false;
    2920             :     }
    2921           0 :     if ((!(Read((&((v__)->continuous())), msg__, iter__)))) {
    2922           0 :         FatalError("Error deserializing 'continuous' (bool) member of 'SurfaceTextureDescriptor'");
    2923           0 :         return false;
    2924             :     }
    2925             :     // Sentinel = 'continuous'
    2926           0 :     if ((!((msg__)->ReadSentinel(iter__, 2103626571)))) {
    2927           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'continuous' (bool) member of 'SurfaceTextureDescriptor'");
    2928           0 :         return false;
    2929             :     }
    2930           0 :     return true;
    2931             : }
    2932             : 
    2933           0 : auto PVRManagerParent::Write(
    2934             :         const GamepadChangeEvent& v__,
    2935             :         Message* msg__) -> void
    2936             : {
    2937             :     typedef GamepadChangeEvent type__;
    2938           0 :     Write(int((v__).type()), msg__);
    2939             :     // Sentinel = 'GamepadChangeEvent'
    2940           0 :     (msg__)->WriteSentinel(1813664741);
    2941             : 
    2942           0 :     switch ((v__).type()) {
    2943             :     case type__::TGamepadAdded:
    2944             :         {
    2945           0 :             Write((v__).get_GamepadAdded(), msg__);
    2946             :             // Sentinel = 'TGamepadAdded'
    2947           0 :             (msg__)->WriteSentinel(1626343004);
    2948           0 :             return;
    2949             :         }
    2950             :     case type__::TGamepadRemoved:
    2951             :         {
    2952           0 :             Write((v__).get_GamepadRemoved(), msg__);
    2953             :             // Sentinel = 'TGamepadRemoved'
    2954           0 :             (msg__)->WriteSentinel(1094065728);
    2955           0 :             return;
    2956             :         }
    2957             :     case type__::TGamepadAxisInformation:
    2958             :         {
    2959           0 :             Write((v__).get_GamepadAxisInformation(), msg__);
    2960             :             // Sentinel = 'TGamepadAxisInformation'
    2961           0 :             (msg__)->WriteSentinel(3997305323);
    2962           0 :             return;
    2963             :         }
    2964             :     case type__::TGamepadButtonInformation:
    2965             :         {
    2966           0 :             Write((v__).get_GamepadButtonInformation(), msg__);
    2967             :             // Sentinel = 'TGamepadButtonInformation'
    2968           0 :             (msg__)->WriteSentinel(3941722656);
    2969           0 :             return;
    2970             :         }
    2971             :     case type__::TGamepadPoseInformation:
    2972             :         {
    2973           0 :             Write((v__).get_GamepadPoseInformation(), msg__);
    2974             :             // Sentinel = 'TGamepadPoseInformation'
    2975           0 :             (msg__)->WriteSentinel(1875822095);
    2976           0 :             return;
    2977             :         }
    2978             :     case type__::TGamepadHandInformation:
    2979             :         {
    2980           0 :             Write((v__).get_GamepadHandInformation(), msg__);
    2981             :             // Sentinel = 'TGamepadHandInformation'
    2982           0 :             (msg__)->WriteSentinel(393042503);
    2983           0 :             return;
    2984             :         }
    2985             :     default:
    2986             :         {
    2987           0 :             FatalError("unknown union type");
    2988           0 :             return;
    2989             :         }
    2990             :     }
    2991             : }
    2992             : 
    2993           0 : auto PVRManagerParent::Read(
    2994             :         GamepadChangeEvent* v__,
    2995             :         const Message* msg__,
    2996             :         PickleIterator* iter__) -> bool
    2997             : {
    2998             :     typedef GamepadChangeEvent type__;
    2999             :     int type;
    3000           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    3001           0 :         mozilla::ipc::UnionTypeReadError("GamepadChangeEvent");
    3002           0 :         return false;
    3003             :     }
    3004             :     // Sentinel = 'GamepadChangeEvent'
    3005           0 :     if ((!((msg__)->ReadSentinel(iter__, 1813664741)))) {
    3006           0 :         mozilla::ipc::SentinelReadError("GamepadChangeEvent");
    3007           0 :         return false;
    3008             :     }
    3009             : 
    3010           0 :     switch (type) {
    3011             :     case type__::TGamepadAdded:
    3012             :         {
    3013           0 :             GamepadAdded tmp = GamepadAdded();
    3014           0 :             (*(v__)) = tmp;
    3015           0 :             if ((!(Read((&((v__)->get_GamepadAdded())), msg__, iter__)))) {
    3016           0 :                 FatalError("Error deserializing Union type");
    3017           0 :                 return false;
    3018             :             }
    3019             :             // Sentinel = 'TGamepadAdded'
    3020           0 :             if ((!((msg__)->ReadSentinel(iter__, 1626343004)))) {
    3021           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3022           0 :                 return false;
    3023             :             }
    3024           0 :             return true;
    3025             :         }
    3026             :     case type__::TGamepadRemoved:
    3027             :         {
    3028           0 :             GamepadRemoved tmp = GamepadRemoved();
    3029           0 :             (*(v__)) = tmp;
    3030           0 :             if ((!(Read((&((v__)->get_GamepadRemoved())), msg__, iter__)))) {
    3031           0 :                 FatalError("Error deserializing Union type");
    3032           0 :                 return false;
    3033             :             }
    3034             :             // Sentinel = 'TGamepadRemoved'
    3035           0 :             if ((!((msg__)->ReadSentinel(iter__, 1094065728)))) {
    3036           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3037           0 :                 return false;
    3038             :             }
    3039           0 :             return true;
    3040             :         }
    3041             :     case type__::TGamepadAxisInformation:
    3042             :         {
    3043           0 :             GamepadAxisInformation tmp = GamepadAxisInformation();
    3044           0 :             (*(v__)) = tmp;
    3045           0 :             if ((!(Read((&((v__)->get_GamepadAxisInformation())), msg__, iter__)))) {
    3046           0 :                 FatalError("Error deserializing Union type");
    3047           0 :                 return false;
    3048             :             }
    3049             :             // Sentinel = 'TGamepadAxisInformation'
    3050           0 :             if ((!((msg__)->ReadSentinel(iter__, 3997305323)))) {
    3051           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3052           0 :                 return false;
    3053             :             }
    3054           0 :             return true;
    3055             :         }
    3056             :     case type__::TGamepadButtonInformation:
    3057             :         {
    3058           0 :             GamepadButtonInformation tmp = GamepadButtonInformation();
    3059           0 :             (*(v__)) = tmp;
    3060           0 :             if ((!(Read((&((v__)->get_GamepadButtonInformation())), msg__, iter__)))) {
    3061           0 :                 FatalError("Error deserializing Union type");
    3062           0 :                 return false;
    3063             :             }
    3064             :             // Sentinel = 'TGamepadButtonInformation'
    3065           0 :             if ((!((msg__)->ReadSentinel(iter__, 3941722656)))) {
    3066           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3067           0 :                 return false;
    3068             :             }
    3069           0 :             return true;
    3070             :         }
    3071             :     case type__::TGamepadPoseInformation:
    3072             :         {
    3073           0 :             GamepadPoseInformation tmp = GamepadPoseInformation();
    3074           0 :             (*(v__)) = tmp;
    3075           0 :             if ((!(Read((&((v__)->get_GamepadPoseInformation())), msg__, iter__)))) {
    3076           0 :                 FatalError("Error deserializing Union type");
    3077           0 :                 return false;
    3078             :             }
    3079             :             // Sentinel = 'TGamepadPoseInformation'
    3080           0 :             if ((!((msg__)->ReadSentinel(iter__, 1875822095)))) {
    3081           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3082           0 :                 return false;
    3083             :             }
    3084           0 :             return true;
    3085             :         }
    3086             :     case type__::TGamepadHandInformation:
    3087             :         {
    3088           0 :             GamepadHandInformation tmp = GamepadHandInformation();
    3089           0 :             (*(v__)) = tmp;
    3090           0 :             if ((!(Read((&((v__)->get_GamepadHandInformation())), msg__, iter__)))) {
    3091           0 :                 FatalError("Error deserializing Union type");
    3092           0 :                 return false;
    3093             :             }
    3094             :             // Sentinel = 'TGamepadHandInformation'
    3095           0 :             if ((!((msg__)->ReadSentinel(iter__, 393042503)))) {
    3096           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3097           0 :                 return false;
    3098             :             }
    3099           0 :             return true;
    3100             :         }
    3101             :     default:
    3102             :         {
    3103           0 :             FatalError("unknown union type");
    3104           0 :             return false;
    3105             :         }
    3106             :     }
    3107             : }
    3108             : 
    3109           0 : auto PVRManagerParent::Write(
    3110             :         const BufferDescriptor& v__,
    3111             :         Message* msg__) -> void
    3112             : {
    3113             :     typedef BufferDescriptor type__;
    3114           0 :     Write(int((v__).type()), msg__);
    3115             :     // Sentinel = 'BufferDescriptor'
    3116           0 :     (msg__)->WriteSentinel(764535685);
    3117             : 
    3118           0 :     switch ((v__).type()) {
    3119             :     case type__::TRGBDescriptor:
    3120             :         {
    3121           0 :             Write((v__).get_RGBDescriptor(), msg__);
    3122             :             // Sentinel = 'TRGBDescriptor'
    3123           0 :             (msg__)->WriteSentinel(2888062100);
    3124           0 :             return;
    3125             :         }
    3126             :     case type__::TYCbCrDescriptor:
    3127             :         {
    3128           0 :             Write((v__).get_YCbCrDescriptor(), msg__);
    3129             :             // Sentinel = 'TYCbCrDescriptor'
    3130           0 :             (msg__)->WriteSentinel(3533945878);
    3131           0 :             return;
    3132             :         }
    3133             :     default:
    3134             :         {
    3135           0 :             FatalError("unknown union type");
    3136           0 :             return;
    3137             :         }
    3138             :     }
    3139             : }
    3140             : 
    3141           0 : auto PVRManagerParent::Read(
    3142             :         BufferDescriptor* v__,
    3143             :         const Message* msg__,
    3144             :         PickleIterator* iter__) -> bool
    3145             : {
    3146             :     typedef BufferDescriptor type__;
    3147             :     int type;
    3148           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    3149           0 :         mozilla::ipc::UnionTypeReadError("BufferDescriptor");
    3150           0 :         return false;
    3151             :     }
    3152             :     // Sentinel = 'BufferDescriptor'
    3153           0 :     if ((!((msg__)->ReadSentinel(iter__, 764535685)))) {
    3154           0 :         mozilla::ipc::SentinelReadError("BufferDescriptor");
    3155           0 :         return false;
    3156             :     }
    3157             : 
    3158           0 :     switch (type) {
    3159             :     case type__::TRGBDescriptor:
    3160             :         {
    3161           0 :             RGBDescriptor tmp = RGBDescriptor();
    3162           0 :             (*(v__)) = tmp;
    3163           0 :             if ((!(Read((&((v__)->get_RGBDescriptor())), msg__, iter__)))) {
    3164           0 :                 FatalError("Error deserializing Union type");
    3165           0 :                 return false;
    3166             :             }
    3167             :             // Sentinel = 'TRGBDescriptor'
    3168           0 :             if ((!((msg__)->ReadSentinel(iter__, 2888062100)))) {
    3169           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3170           0 :                 return false;
    3171             :             }
    3172           0 :             return true;
    3173             :         }
    3174             :     case type__::TYCbCrDescriptor:
    3175             :         {
    3176           0 :             YCbCrDescriptor tmp = YCbCrDescriptor();
    3177           0 :             (*(v__)) = tmp;
    3178           0 :             if ((!(Read((&((v__)->get_YCbCrDescriptor())), msg__, iter__)))) {
    3179           0 :                 FatalError("Error deserializing Union type");
    3180           0 :                 return false;
    3181             :             }
    3182             :             // Sentinel = 'TYCbCrDescriptor'
    3183           0 :             if ((!((msg__)->ReadSentinel(iter__, 3533945878)))) {
    3184           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3185           0 :                 return false;
    3186             :             }
    3187           0 :             return true;
    3188             :         }
    3189             :     default:
    3190             :         {
    3191           0 :             FatalError("unknown union type");
    3192           0 :             return false;
    3193             :         }
    3194             :     }
    3195             : }
    3196             : 
    3197           0 : auto PVRManagerParent::Write(
    3198             :         const PTextureParent* v__,
    3199             :         Message* msg__,
    3200             :         bool nullable__) -> void
    3201             : {
    3202             :     int32_t id;
    3203           0 :     if ((!(v__))) {
    3204           0 :         if ((!(nullable__))) {
    3205           0 :             FatalError("NULL actor value passed to non-nullable param");
    3206             :         }
    3207           0 :         id = 0;
    3208             :     }
    3209             :     else {
    3210           0 :         id = (v__)->Id();
    3211           0 :         if ((1) == (id)) {
    3212           0 :             FatalError("actor has been |delete|d");
    3213             :         }
    3214             :     }
    3215             : 
    3216           0 :     Write(id, msg__);
    3217           0 : }
    3218             : 
    3219           0 : auto PVRManagerParent::Read(
    3220             :         PTextureParent** v__,
    3221             :         const Message* msg__,
    3222             :         PickleIterator* iter__,
    3223             :         bool nullable__) -> bool
    3224             : {
    3225           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTexture", PTextureMsgStart);
    3226           0 :     if ((actor).isNothing()) {
    3227           0 :         return false;
    3228             :     }
    3229             : 
    3230           0 :     (*(v__)) = static_cast<PTextureParent*>((actor).value());
    3231           0 :     return true;
    3232             : }
    3233             : 
    3234             : 
    3235             : 
    3236             : } // namespace gfx
    3237             : } // namespace mozilla

Generated by: LCOV version 1.13