LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PGPUParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1241 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 74 0.0 %
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/PGPUParent.h"
       8             : #ifdef MOZ_CRASHREPORTER
       9             : #  include "nsXULAppAPI.h"
      10             : #endif
      11             : 
      12             : #include "mozilla/layers/PCompositorManagerParent.h"
      13             : #include "mozilla/layers/PImageBridgeParent.h"
      14             : #include "mozilla/PProfilerParent.h"
      15             : #include "mozilla/gfx/PVRManagerParent.h"
      16             : #include "mozilla/gfx/PVsyncBridgeParent.h"
      17             : #include "mozilla/layers/PUiCompositorControllerParent.h"
      18             : #include "mozilla/dom/PVideoDecoderManagerParent.h"
      19             : 
      20             : #include "nsIFile.h"
      21             : #include "GeckoProfiler.h"
      22             : 
      23             : namespace mozilla {
      24             : namespace gfx {
      25             : 
      26             : 
      27             : 
      28           0 : auto PGPUParent::ProcessingError(
      29             :         Result aCode,
      30             :         const char* aReason) -> void
      31             : {
      32           0 : }
      33             : 
      34           0 : auto PGPUParent::ShouldContinueFromReplyTimeout() -> bool
      35             : {
      36           0 :     return true;
      37             : }
      38             : 
      39           0 : auto PGPUParent::EnteredCxxStack() -> void
      40             : {
      41           0 : }
      42             : 
      43           0 : auto PGPUParent::ExitedCxxStack() -> void
      44             : {
      45           0 : }
      46             : 
      47           0 : auto PGPUParent::EnteredCall() -> void
      48             : {
      49           0 : }
      50             : 
      51           0 : auto PGPUParent::ExitedCall() -> void
      52             : {
      53           0 : }
      54             : 
      55           0 : MOZ_IMPLICIT PGPUParent::PGPUParent() :
      56             :     mozilla::ipc::IToplevelProtocol(PGPUMsgStart, mozilla::ipc::ParentSide),
      57             :     mChannel("PGPUParent", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
      58           0 :     mState(PGPU::__Start)
      59             : {
      60           0 :     MOZ_COUNT_CTOR(PGPUParent);
      61           0 : }
      62             : 
      63           0 : PGPUParent::~PGPUParent()
      64             : {
      65           0 :     MOZ_COUNT_DTOR(PGPUParent);
      66           0 : }
      67             : 
      68           0 : auto PGPUParent::SendInitComplete(const GPUDeviceData& data) -> bool
      69             : {
      70           0 :     IPC::Message* msg__ = PGPU::Msg_InitComplete(MSG_ROUTING_CONTROL);
      71             : 
      72           0 :     Write(data, msg__);
      73             :     // Sentinel = 'data'
      74           0 :     (msg__)->WriteSentinel(843352540);
      75             : 
      76             : 
      77             : 
      78             : 
      79           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
      80           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      81             :     }
      82           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_InitComplete", OTHER);
      83           0 :     PGPU::Transition(PGPU::Msg_InitComplete__ID, (&(mState)));
      84             : 
      85           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      86           0 :     return sendok__;
      87             : }
      88             : 
      89           0 : auto PGPUParent::SendReportCheckerboard(
      90             :         const uint32_t& severity,
      91             :         const nsCString& log) -> bool
      92             : {
      93           0 :     IPC::Message* msg__ = PGPU::Msg_ReportCheckerboard(MSG_ROUTING_CONTROL);
      94             : 
      95           0 :     Write(severity, msg__);
      96             :     // Sentinel = 'severity'
      97           0 :     (msg__)->WriteSentinel(3651995045);
      98           0 :     Write(log, msg__);
      99             :     // Sentinel = 'log'
     100           0 :     (msg__)->WriteSentinel(914042661);
     101             : 
     102             : 
     103             : 
     104             : 
     105           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     106           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     107             :     }
     108           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_ReportCheckerboard", OTHER);
     109           0 :     PGPU::Transition(PGPU::Msg_ReportCheckerboard__ID, (&(mState)));
     110             : 
     111           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     112           0 :     return sendok__;
     113             : }
     114             : 
     115           0 : auto PGPUParent::SendGraphicsError(const nsCString& aError) -> bool
     116             : {
     117           0 :     IPC::Message* msg__ = PGPU::Msg_GraphicsError(MSG_ROUTING_CONTROL);
     118             : 
     119           0 :     Write(aError, msg__);
     120             :     // Sentinel = 'aError'
     121           0 :     (msg__)->WriteSentinel(3299422495);
     122             : 
     123             : 
     124             : 
     125             : 
     126           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     127           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     128             :     }
     129           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_GraphicsError", OTHER);
     130           0 :     PGPU::Transition(PGPU::Msg_GraphicsError__ID, (&(mState)));
     131             : 
     132           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     133           0 :     return sendok__;
     134             : }
     135             : 
     136           0 : auto PGPUParent::SendInitCrashReporter(
     137             :         Shmem& shmem,
     138             :         const NativeThreadId& threadId) -> bool
     139             : {
     140           0 :     IPC::Message* msg__ = PGPU::Msg_InitCrashReporter(MSG_ROUTING_CONTROL);
     141             : 
     142           0 :     Write(shmem, msg__);
     143             :     // Sentinel = 'shmem'
     144           0 :     (msg__)->WriteSentinel(4252604405);
     145           0 :     Write(threadId, msg__);
     146             :     // Sentinel = 'threadId'
     147           0 :     (msg__)->WriteSentinel(3657055895);
     148             : 
     149             : 
     150             : 
     151             : 
     152           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     153           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     154             :     }
     155           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_InitCrashReporter", OTHER);
     156           0 :     PGPU::Transition(PGPU::Msg_InitCrashReporter__ID, (&(mState)));
     157             : 
     158           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     159           0 :     return sendok__;
     160             : }
     161             : 
     162           0 : auto PGPUParent::SendNotifyUiObservers(const nsCString& aTopic) -> bool
     163             : {
     164           0 :     IPC::Message* msg__ = PGPU::Msg_NotifyUiObservers(MSG_ROUTING_CONTROL);
     165             : 
     166           0 :     Write(aTopic, msg__);
     167             :     // Sentinel = 'aTopic'
     168           0 :     (msg__)->WriteSentinel(2759450316);
     169             : 
     170             : 
     171             : 
     172             : 
     173           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     174           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     175             :     }
     176           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_NotifyUiObservers", OTHER);
     177           0 :     PGPU::Transition(PGPU::Msg_NotifyUiObservers__ID, (&(mState)));
     178             : 
     179           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     180           0 :     return sendok__;
     181             : }
     182             : 
     183           0 : auto PGPUParent::SendAccumulateChildHistograms(const nsTArray<Accumulation>& accumulations) -> bool
     184             : {
     185           0 :     IPC::Message* msg__ = PGPU::Msg_AccumulateChildHistograms(MSG_ROUTING_CONTROL);
     186             : 
     187           0 :     Write(accumulations, msg__);
     188             :     // Sentinel = 'accumulations'
     189           0 :     (msg__)->WriteSentinel(2180708333);
     190             : 
     191             : 
     192             : 
     193             : 
     194           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     195           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     196             :     }
     197           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_AccumulateChildHistograms", OTHER);
     198           0 :     PGPU::Transition(PGPU::Msg_AccumulateChildHistograms__ID, (&(mState)));
     199             : 
     200           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     201           0 :     return sendok__;
     202             : }
     203             : 
     204           0 : auto PGPUParent::SendAccumulateChildKeyedHistograms(const nsTArray<KeyedAccumulation>& accumulations) -> bool
     205             : {
     206           0 :     IPC::Message* msg__ = PGPU::Msg_AccumulateChildKeyedHistograms(MSG_ROUTING_CONTROL);
     207             : 
     208           0 :     Write(accumulations, msg__);
     209             :     // Sentinel = 'accumulations'
     210           0 :     (msg__)->WriteSentinel(2180708333);
     211             : 
     212             : 
     213             : 
     214             : 
     215           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     216           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     217             :     }
     218           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_AccumulateChildKeyedHistograms", OTHER);
     219           0 :     PGPU::Transition(PGPU::Msg_AccumulateChildKeyedHistograms__ID, (&(mState)));
     220             : 
     221           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     222           0 :     return sendok__;
     223             : }
     224             : 
     225           0 : auto PGPUParent::SendUpdateChildScalars(const nsTArray<ScalarAction>& actions) -> bool
     226             : {
     227           0 :     IPC::Message* msg__ = PGPU::Msg_UpdateChildScalars(MSG_ROUTING_CONTROL);
     228             : 
     229           0 :     Write(actions, msg__);
     230             :     // Sentinel = 'actions'
     231           0 :     (msg__)->WriteSentinel(3189730830);
     232             : 
     233             : 
     234             : 
     235             : 
     236           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     237           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     238             :     }
     239           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_UpdateChildScalars", OTHER);
     240           0 :     PGPU::Transition(PGPU::Msg_UpdateChildScalars__ID, (&(mState)));
     241             : 
     242           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     243           0 :     return sendok__;
     244             : }
     245             : 
     246           0 : auto PGPUParent::SendUpdateChildKeyedScalars(const nsTArray<KeyedScalarAction>& actions) -> bool
     247             : {
     248           0 :     IPC::Message* msg__ = PGPU::Msg_UpdateChildKeyedScalars(MSG_ROUTING_CONTROL);
     249             : 
     250           0 :     Write(actions, msg__);
     251             :     // Sentinel = 'actions'
     252           0 :     (msg__)->WriteSentinel(3189730830);
     253             : 
     254             : 
     255             : 
     256             : 
     257           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     258           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     259             :     }
     260           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_UpdateChildKeyedScalars", OTHER);
     261           0 :     PGPU::Transition(PGPU::Msg_UpdateChildKeyedScalars__ID, (&(mState)));
     262             : 
     263           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     264           0 :     return sendok__;
     265             : }
     266             : 
     267           0 : auto PGPUParent::SendRecordChildEvents(const nsTArray<ChildEventData>& events) -> bool
     268             : {
     269           0 :     IPC::Message* msg__ = PGPU::Msg_RecordChildEvents(MSG_ROUTING_CONTROL);
     270             : 
     271           0 :     Write(events, msg__);
     272             :     // Sentinel = 'events'
     273           0 :     (msg__)->WriteSentinel(1921707453);
     274             : 
     275             : 
     276             : 
     277             : 
     278           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     279           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     280             :     }
     281           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_RecordChildEvents", OTHER);
     282           0 :     PGPU::Transition(PGPU::Msg_RecordChildEvents__ID, (&(mState)));
     283             : 
     284           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     285           0 :     return sendok__;
     286             : }
     287             : 
     288           0 : auto PGPUParent::SendRecordDiscardedData(const DiscardedData& data) -> bool
     289             : {
     290           0 :     IPC::Message* msg__ = PGPU::Msg_RecordDiscardedData(MSG_ROUTING_CONTROL);
     291             : 
     292           0 :     Write(data, msg__);
     293             :     // Sentinel = 'data'
     294           0 :     (msg__)->WriteSentinel(843352540);
     295             : 
     296             : 
     297             : 
     298             : 
     299           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     300           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     301             :     }
     302           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_RecordDiscardedData", OTHER);
     303           0 :     PGPU::Transition(PGPU::Msg_RecordDiscardedData__ID, (&(mState)));
     304             : 
     305           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     306           0 :     return sendok__;
     307             : }
     308             : 
     309           0 : auto PGPUParent::SendNotifyDeviceReset(const GPUDeviceData& status) -> bool
     310             : {
     311           0 :     IPC::Message* msg__ = PGPU::Msg_NotifyDeviceReset(MSG_ROUTING_CONTROL);
     312             : 
     313           0 :     Write(status, msg__);
     314             :     // Sentinel = 'status'
     315           0 :     (msg__)->WriteSentinel(3714608576);
     316             : 
     317             : 
     318             : 
     319             : 
     320           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     321           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     322             :     }
     323           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_NotifyDeviceReset", OTHER);
     324           0 :     PGPU::Transition(PGPU::Msg_NotifyDeviceReset__ID, (&(mState)));
     325             : 
     326           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     327           0 :     return sendok__;
     328             : }
     329             : 
     330           0 : auto PGPUParent::SendAddMemoryReport(const MemoryReport& aReport) -> bool
     331             : {
     332           0 :     IPC::Message* msg__ = PGPU::Msg_AddMemoryReport(MSG_ROUTING_CONTROL);
     333             : 
     334           0 :     Write(aReport, msg__);
     335             :     // Sentinel = 'aReport'
     336           0 :     (msg__)->WriteSentinel(3792799576);
     337             : 
     338             : 
     339             : 
     340             : 
     341           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     342           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     343             :     }
     344           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_AddMemoryReport", OTHER);
     345           0 :     PGPU::Transition(PGPU::Msg_AddMemoryReport__ID, (&(mState)));
     346             : 
     347           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     348           0 :     return sendok__;
     349             : }
     350             : 
     351           0 : auto PGPUParent::SendFinishMemoryReport(const uint32_t& aGeneration) -> bool
     352             : {
     353           0 :     IPC::Message* msg__ = PGPU::Msg_FinishMemoryReport(MSG_ROUTING_CONTROL);
     354             : 
     355           0 :     Write(aGeneration, msg__);
     356             :     // Sentinel = 'aGeneration'
     357           0 :     (msg__)->WriteSentinel(2329783584);
     358             : 
     359             : 
     360             : 
     361             : 
     362           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     363           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     364             :     }
     365           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_FinishMemoryReport", OTHER);
     366           0 :     PGPU::Transition(PGPU::Msg_FinishMemoryReport__ID, (&(mState)));
     367             : 
     368           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     369           0 :     return sendok__;
     370             : }
     371             : 
     372           0 : auto PGPUParent::SendUpdateFeature(
     373             :         const Feature& aFeature,
     374             :         const FeatureFailure& aChange) -> bool
     375             : {
     376           0 :     IPC::Message* msg__ = PGPU::Msg_UpdateFeature(MSG_ROUTING_CONTROL);
     377             : 
     378           0 :     Write(aFeature, msg__);
     379             :     // Sentinel = 'aFeature'
     380           0 :     (msg__)->WriteSentinel(467571205);
     381           0 :     Write(aChange, msg__);
     382             :     // Sentinel = 'aChange'
     383           0 :     (msg__)->WriteSentinel(1262903642);
     384             : 
     385             : 
     386             : 
     387             : 
     388           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     389           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     390             :     }
     391           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_UpdateFeature", OTHER);
     392           0 :     PGPU::Transition(PGPU::Msg_UpdateFeature__ID, (&(mState)));
     393             : 
     394           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     395           0 :     return sendok__;
     396             : }
     397             : 
     398           0 : auto PGPUParent::SendUsedFallback(
     399             :         const Fallback& aFallback,
     400             :         const nsCString& message) -> bool
     401             : {
     402           0 :     IPC::Message* msg__ = PGPU::Msg_UsedFallback(MSG_ROUTING_CONTROL);
     403             : 
     404           0 :     Write(aFallback, msg__);
     405             :     // Sentinel = 'aFallback'
     406           0 :     (msg__)->WriteSentinel(2020944874);
     407           0 :     Write(message, msg__);
     408             :     // Sentinel = 'message'
     409           0 :     (msg__)->WriteSentinel(1366108954);
     410             : 
     411             : 
     412             : 
     413             : 
     414           0 :     if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     415           0 :         mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     416             :     }
     417           0 :     AUTO_PROFILER_LABEL("PGPU::Msg_UsedFallback", OTHER);
     418           0 :     PGPU::Transition(PGPU::Msg_UsedFallback__ID, (&(mState)));
     419             : 
     420           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     421           0 :     return sendok__;
     422             : }
     423             : 
     424           0 : auto PGPUParent::GetIPCChannel() -> MessageChannel*
     425             : {
     426           0 :     return (&(mChannel));
     427             : }
     428             : 
     429           0 : auto PGPUParent::GetIPCChannel() const -> const MessageChannel*
     430             : {
     431           0 :     return (&(mChannel));
     432             : }
     433             : 
     434           0 : auto PGPUParent::RemoveManagee(
     435             :         int32_t aProtocolId,
     436             :         ProtocolBase* aListener) -> void
     437             : {
     438           0 :     FatalError("unreached");
     439           0 :     return;
     440             : }
     441             : 
     442           0 : auto PGPUParent::OnMessageReceived(const Message& msg__) -> PGPUParent::Result
     443             : {
     444           0 :     switch ((msg__).type()) {
     445             :     case PGPU::Msg_Init__ID:
     446             :         {
     447           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     448           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     449             :             }
     450           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_Init", OTHER);
     451             : 
     452           0 :             PickleIterator iter__(msg__);
     453           0 :             nsTArray<GfxPrefSetting> prefs;
     454           0 :             nsTArray<GfxVarUpdate> vars;
     455           0 :             DevicePrefs devicePrefs;
     456           0 :             nsTArray<LayerTreeIdMapping> mapping;
     457             : 
     458           0 :             if ((!(Read((&(prefs)), (&(msg__)), (&(iter__)))))) {
     459           0 :                 FatalError("Error deserializing 'nsTArray'");
     460           0 :                 return MsgValueError;
     461             :             }
     462             :             // Sentinel = 'prefs'
     463           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3194398011)))) {
     464           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     465           0 :                 return MsgValueError;
     466             :             }
     467           0 :             if ((!(Read((&(vars)), (&(msg__)), (&(iter__)))))) {
     468           0 :                 FatalError("Error deserializing 'nsTArray'");
     469           0 :                 return MsgValueError;
     470             :             }
     471             :             // Sentinel = 'vars'
     472           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2632090118)))) {
     473           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     474           0 :                 return MsgValueError;
     475             :             }
     476           0 :             if ((!(Read((&(devicePrefs)), (&(msg__)), (&(iter__)))))) {
     477           0 :                 FatalError("Error deserializing 'DevicePrefs'");
     478           0 :                 return MsgValueError;
     479             :             }
     480             :             // Sentinel = 'devicePrefs'
     481           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2200416183)))) {
     482           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'DevicePrefs'");
     483           0 :                 return MsgValueError;
     484             :             }
     485           0 :             if ((!(Read((&(mapping)), (&(msg__)), (&(iter__)))))) {
     486           0 :                 FatalError("Error deserializing 'nsTArray'");
     487           0 :                 return MsgValueError;
     488             :             }
     489             :             // Sentinel = 'mapping'
     490           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 601526733)))) {
     491           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     492           0 :                 return MsgValueError;
     493             :             }
     494           0 :             (msg__).EndRead(iter__, (msg__).type());
     495           0 :             PGPU::Transition(PGPU::Msg_Init__ID, (&(mState)));
     496           0 :             if ((!(RecvInit(mozilla::Move(prefs), mozilla::Move(vars), mozilla::Move(devicePrefs), mozilla::Move(mapping))))) {
     497           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     498             :                 // Error handled in mozilla::ipc::IPCResult
     499           0 :                 return MsgProcessingError;
     500             :             }
     501             : 
     502           0 :             return MsgProcessed;
     503             :         }
     504             :     case PGPU::Msg_InitCompositorManager__ID:
     505             :         {
     506           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     507           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     508             :             }
     509           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_InitCompositorManager", OTHER);
     510             : 
     511           0 :             PickleIterator iter__(msg__);
     512           0 :             Endpoint<mozilla::layers::PCompositorManagerParent> endpoint;
     513             : 
     514           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
     515           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::layers::PCompositorManagerParent>'");
     516           0 :                 return MsgValueError;
     517             :             }
     518             :             // Sentinel = 'endpoint'
     519           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
     520           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::layers::PCompositorManagerParent>'");
     521           0 :                 return MsgValueError;
     522             :             }
     523           0 :             (msg__).EndRead(iter__, (msg__).type());
     524           0 :             PGPU::Transition(PGPU::Msg_InitCompositorManager__ID, (&(mState)));
     525           0 :             if ((!(RecvInitCompositorManager(mozilla::Move(endpoint))))) {
     526           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     527             :                 // Error handled in mozilla::ipc::IPCResult
     528           0 :                 return MsgProcessingError;
     529             :             }
     530             : 
     531           0 :             return MsgProcessed;
     532             :         }
     533             :     case PGPU::Msg_InitVsyncBridge__ID:
     534             :         {
     535           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     536           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     537             :             }
     538           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_InitVsyncBridge", OTHER);
     539             : 
     540           0 :             PickleIterator iter__(msg__);
     541           0 :             Endpoint<mozilla::gfx::PVsyncBridgeParent> endpoint;
     542             : 
     543           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
     544           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::gfx::PVsyncBridgeParent>'");
     545           0 :                 return MsgValueError;
     546             :             }
     547             :             // Sentinel = 'endpoint'
     548           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
     549           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::gfx::PVsyncBridgeParent>'");
     550           0 :                 return MsgValueError;
     551             :             }
     552           0 :             (msg__).EndRead(iter__, (msg__).type());
     553           0 :             PGPU::Transition(PGPU::Msg_InitVsyncBridge__ID, (&(mState)));
     554           0 :             if ((!(RecvInitVsyncBridge(mozilla::Move(endpoint))))) {
     555           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     556             :                 // Error handled in mozilla::ipc::IPCResult
     557           0 :                 return MsgProcessingError;
     558             :             }
     559             : 
     560           0 :             return MsgProcessed;
     561             :         }
     562             :     case PGPU::Msg_InitImageBridge__ID:
     563             :         {
     564           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     565           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     566             :             }
     567           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_InitImageBridge", OTHER);
     568             : 
     569           0 :             PickleIterator iter__(msg__);
     570           0 :             Endpoint<mozilla::layers::PImageBridgeParent> endpoint;
     571             : 
     572           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
     573           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::layers::PImageBridgeParent>'");
     574           0 :                 return MsgValueError;
     575             :             }
     576             :             // Sentinel = 'endpoint'
     577           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
     578           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::layers::PImageBridgeParent>'");
     579           0 :                 return MsgValueError;
     580             :             }
     581           0 :             (msg__).EndRead(iter__, (msg__).type());
     582           0 :             PGPU::Transition(PGPU::Msg_InitImageBridge__ID, (&(mState)));
     583           0 :             if ((!(RecvInitImageBridge(mozilla::Move(endpoint))))) {
     584           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     585             :                 // Error handled in mozilla::ipc::IPCResult
     586           0 :                 return MsgProcessingError;
     587             :             }
     588             : 
     589           0 :             return MsgProcessed;
     590             :         }
     591             :     case PGPU::Msg_InitVRManager__ID:
     592             :         {
     593           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     594           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     595             :             }
     596           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_InitVRManager", OTHER);
     597             : 
     598           0 :             PickleIterator iter__(msg__);
     599           0 :             Endpoint<mozilla::gfx::PVRManagerParent> endpoint;
     600             : 
     601           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
     602           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::gfx::PVRManagerParent>'");
     603           0 :                 return MsgValueError;
     604             :             }
     605             :             // Sentinel = 'endpoint'
     606           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
     607           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::gfx::PVRManagerParent>'");
     608           0 :                 return MsgValueError;
     609             :             }
     610           0 :             (msg__).EndRead(iter__, (msg__).type());
     611           0 :             PGPU::Transition(PGPU::Msg_InitVRManager__ID, (&(mState)));
     612           0 :             if ((!(RecvInitVRManager(mozilla::Move(endpoint))))) {
     613           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     614             :                 // Error handled in mozilla::ipc::IPCResult
     615           0 :                 return MsgProcessingError;
     616             :             }
     617             : 
     618           0 :             return MsgProcessed;
     619             :         }
     620             :     case PGPU::Msg_InitUiCompositorController__ID:
     621             :         {
     622           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     623           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     624             :             }
     625           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_InitUiCompositorController", OTHER);
     626             : 
     627           0 :             PickleIterator iter__(msg__);
     628             :             uint64_t rootLayerTreeId;
     629           0 :             Endpoint<mozilla::layers::PUiCompositorControllerParent> endpoint;
     630             : 
     631           0 :             if ((!(Read((&(rootLayerTreeId)), (&(msg__)), (&(iter__)))))) {
     632           0 :                 FatalError("Error deserializing 'uint64_t'");
     633           0 :                 return MsgValueError;
     634             :             }
     635             :             // Sentinel = 'rootLayerTreeId'
     636           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 191972583)))) {
     637           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     638           0 :                 return MsgValueError;
     639             :             }
     640           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
     641           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::layers::PUiCompositorControllerParent>'");
     642           0 :                 return MsgValueError;
     643             :             }
     644             :             // Sentinel = 'endpoint'
     645           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
     646           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::layers::PUiCompositorControllerParent>'");
     647           0 :                 return MsgValueError;
     648             :             }
     649           0 :             (msg__).EndRead(iter__, (msg__).type());
     650           0 :             PGPU::Transition(PGPU::Msg_InitUiCompositorController__ID, (&(mState)));
     651           0 :             if ((!(RecvInitUiCompositorController(mozilla::Move(rootLayerTreeId), mozilla::Move(endpoint))))) {
     652           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     653             :                 // Error handled in mozilla::ipc::IPCResult
     654           0 :                 return MsgProcessingError;
     655             :             }
     656             : 
     657           0 :             return MsgProcessed;
     658             :         }
     659             :     case PGPU::Msg_InitProfiler__ID:
     660             :         {
     661           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     662           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     663             :             }
     664           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_InitProfiler", OTHER);
     665             : 
     666           0 :             PickleIterator iter__(msg__);
     667           0 :             Endpoint<mozilla::PProfilerChild> endpoint;
     668             : 
     669           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
     670           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::PProfilerChild>'");
     671           0 :                 return MsgValueError;
     672             :             }
     673             :             // Sentinel = 'endpoint'
     674           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
     675           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::PProfilerChild>'");
     676           0 :                 return MsgValueError;
     677             :             }
     678           0 :             (msg__).EndRead(iter__, (msg__).type());
     679           0 :             PGPU::Transition(PGPU::Msg_InitProfiler__ID, (&(mState)));
     680           0 :             if ((!(RecvInitProfiler(mozilla::Move(endpoint))))) {
     681           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     682             :                 // Error handled in mozilla::ipc::IPCResult
     683           0 :                 return MsgProcessingError;
     684             :             }
     685             : 
     686           0 :             return MsgProcessed;
     687             :         }
     688             :     case PGPU::Msg_UpdatePref__ID:
     689             :         {
     690           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     691           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     692             :             }
     693           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_UpdatePref", OTHER);
     694             : 
     695           0 :             PickleIterator iter__(msg__);
     696           0 :             GfxPrefSetting pref;
     697             : 
     698           0 :             if ((!(Read((&(pref)), (&(msg__)), (&(iter__)))))) {
     699           0 :                 FatalError("Error deserializing 'GfxPrefSetting'");
     700           0 :                 return MsgValueError;
     701             :             }
     702             :             // Sentinel = 'pref'
     703           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3089393963)))) {
     704           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'GfxPrefSetting'");
     705           0 :                 return MsgValueError;
     706             :             }
     707           0 :             (msg__).EndRead(iter__, (msg__).type());
     708           0 :             PGPU::Transition(PGPU::Msg_UpdatePref__ID, (&(mState)));
     709           0 :             if ((!(RecvUpdatePref(mozilla::Move(pref))))) {
     710           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     711             :                 // Error handled in mozilla::ipc::IPCResult
     712           0 :                 return MsgProcessingError;
     713             :             }
     714             : 
     715           0 :             return MsgProcessed;
     716             :         }
     717             :     case PGPU::Msg_UpdateVar__ID:
     718             :         {
     719           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     720           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     721             :             }
     722           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_UpdateVar", OTHER);
     723             : 
     724           0 :             PickleIterator iter__(msg__);
     725           0 :             GfxVarUpdate var;
     726             : 
     727           0 :             if ((!(Read((&(var)), (&(msg__)), (&(iter__)))))) {
     728           0 :                 FatalError("Error deserializing 'GfxVarUpdate'");
     729           0 :                 return MsgValueError;
     730             :             }
     731             :             // Sentinel = 'var'
     732           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2283110200)))) {
     733           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'GfxVarUpdate'");
     734           0 :                 return MsgValueError;
     735             :             }
     736           0 :             (msg__).EndRead(iter__, (msg__).type());
     737           0 :             PGPU::Transition(PGPU::Msg_UpdateVar__ID, (&(mState)));
     738           0 :             if ((!(RecvUpdateVar(mozilla::Move(var))))) {
     739           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     740             :                 // Error handled in mozilla::ipc::IPCResult
     741           0 :                 return MsgProcessingError;
     742             :             }
     743             : 
     744           0 :             return MsgProcessed;
     745             :         }
     746             :     case PGPU::Msg_NewContentCompositorManager__ID:
     747             :         {
     748           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     749           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     750             :             }
     751           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_NewContentCompositorManager", OTHER);
     752             : 
     753           0 :             PickleIterator iter__(msg__);
     754           0 :             Endpoint<mozilla::layers::PCompositorManagerParent> endpoint;
     755             : 
     756           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
     757           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::layers::PCompositorManagerParent>'");
     758           0 :                 return MsgValueError;
     759             :             }
     760             :             // Sentinel = 'endpoint'
     761           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
     762           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::layers::PCompositorManagerParent>'");
     763           0 :                 return MsgValueError;
     764             :             }
     765           0 :             (msg__).EndRead(iter__, (msg__).type());
     766           0 :             PGPU::Transition(PGPU::Msg_NewContentCompositorManager__ID, (&(mState)));
     767           0 :             if ((!(RecvNewContentCompositorManager(mozilla::Move(endpoint))))) {
     768           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     769             :                 // Error handled in mozilla::ipc::IPCResult
     770           0 :                 return MsgProcessingError;
     771             :             }
     772             : 
     773           0 :             return MsgProcessed;
     774             :         }
     775             :     case PGPU::Msg_NewContentImageBridge__ID:
     776             :         {
     777           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     778           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     779             :             }
     780           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_NewContentImageBridge", OTHER);
     781             : 
     782           0 :             PickleIterator iter__(msg__);
     783           0 :             Endpoint<mozilla::layers::PImageBridgeParent> endpoint;
     784             : 
     785           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
     786           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::layers::PImageBridgeParent>'");
     787           0 :                 return MsgValueError;
     788             :             }
     789             :             // Sentinel = 'endpoint'
     790           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
     791           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::layers::PImageBridgeParent>'");
     792           0 :                 return MsgValueError;
     793             :             }
     794           0 :             (msg__).EndRead(iter__, (msg__).type());
     795           0 :             PGPU::Transition(PGPU::Msg_NewContentImageBridge__ID, (&(mState)));
     796           0 :             if ((!(RecvNewContentImageBridge(mozilla::Move(endpoint))))) {
     797           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     798             :                 // Error handled in mozilla::ipc::IPCResult
     799           0 :                 return MsgProcessingError;
     800             :             }
     801             : 
     802           0 :             return MsgProcessed;
     803             :         }
     804             :     case PGPU::Msg_NewContentVRManager__ID:
     805             :         {
     806           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     807           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     808             :             }
     809           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_NewContentVRManager", OTHER);
     810             : 
     811           0 :             PickleIterator iter__(msg__);
     812           0 :             Endpoint<mozilla::gfx::PVRManagerParent> endpoint;
     813             : 
     814           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
     815           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::gfx::PVRManagerParent>'");
     816           0 :                 return MsgValueError;
     817             :             }
     818             :             // Sentinel = 'endpoint'
     819           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
     820           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::gfx::PVRManagerParent>'");
     821           0 :                 return MsgValueError;
     822             :             }
     823           0 :             (msg__).EndRead(iter__, (msg__).type());
     824           0 :             PGPU::Transition(PGPU::Msg_NewContentVRManager__ID, (&(mState)));
     825           0 :             if ((!(RecvNewContentVRManager(mozilla::Move(endpoint))))) {
     826           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     827             :                 // Error handled in mozilla::ipc::IPCResult
     828           0 :                 return MsgProcessingError;
     829             :             }
     830             : 
     831           0 :             return MsgProcessed;
     832             :         }
     833             :     case PGPU::Msg_NewContentVideoDecoderManager__ID:
     834             :         {
     835           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     836           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     837             :             }
     838           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_NewContentVideoDecoderManager", OTHER);
     839             : 
     840           0 :             PickleIterator iter__(msg__);
     841           0 :             Endpoint<mozilla::dom::PVideoDecoderManagerParent> endpoint;
     842             : 
     843           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
     844           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::dom::PVideoDecoderManagerParent>'");
     845           0 :                 return MsgValueError;
     846             :             }
     847             :             // Sentinel = 'endpoint'
     848           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
     849           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::dom::PVideoDecoderManagerParent>'");
     850           0 :                 return MsgValueError;
     851             :             }
     852           0 :             (msg__).EndRead(iter__, (msg__).type());
     853           0 :             PGPU::Transition(PGPU::Msg_NewContentVideoDecoderManager__ID, (&(mState)));
     854           0 :             if ((!(RecvNewContentVideoDecoderManager(mozilla::Move(endpoint))))) {
     855           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     856             :                 // Error handled in mozilla::ipc::IPCResult
     857           0 :                 return MsgProcessingError;
     858             :             }
     859             : 
     860           0 :             return MsgProcessed;
     861             :         }
     862             :     case PGPU::Msg_RemoveLayerTreeIdMapping__ID:
     863             :         {
     864           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     865           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     866             :             }
     867           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_RemoveLayerTreeIdMapping", OTHER);
     868             : 
     869           0 :             PickleIterator iter__(msg__);
     870           0 :             LayerTreeIdMapping mapping;
     871             : 
     872           0 :             if ((!(Read((&(mapping)), (&(msg__)), (&(iter__)))))) {
     873           0 :                 FatalError("Error deserializing 'LayerTreeIdMapping'");
     874           0 :                 return MsgValueError;
     875             :             }
     876             :             // Sentinel = 'mapping'
     877           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 601526733)))) {
     878           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'LayerTreeIdMapping'");
     879           0 :                 return MsgValueError;
     880             :             }
     881           0 :             (msg__).EndRead(iter__, (msg__).type());
     882           0 :             PGPU::Transition(PGPU::Msg_RemoveLayerTreeIdMapping__ID, (&(mState)));
     883           0 :             if ((!(RecvRemoveLayerTreeIdMapping(mozilla::Move(mapping))))) {
     884           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     885             :                 // Error handled in mozilla::ipc::IPCResult
     886           0 :                 return MsgProcessingError;
     887             :             }
     888             : 
     889           0 :             return MsgProcessed;
     890             :         }
     891             :     case PGPU::Msg_NotifyGpuObservers__ID:
     892             :         {
     893           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     894           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     895             :             }
     896           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_NotifyGpuObservers", OTHER);
     897             : 
     898           0 :             PickleIterator iter__(msg__);
     899           0 :             nsCString aTopic;
     900             : 
     901           0 :             if ((!(Read((&(aTopic)), (&(msg__)), (&(iter__)))))) {
     902           0 :                 FatalError("Error deserializing 'nsCString'");
     903           0 :                 return MsgValueError;
     904             :             }
     905             :             // Sentinel = 'aTopic'
     906           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2759450316)))) {
     907           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     908           0 :                 return MsgValueError;
     909             :             }
     910           0 :             (msg__).EndRead(iter__, (msg__).type());
     911           0 :             PGPU::Transition(PGPU::Msg_NotifyGpuObservers__ID, (&(mState)));
     912           0 :             if ((!(RecvNotifyGpuObservers(mozilla::Move(aTopic))))) {
     913           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     914             :                 // Error handled in mozilla::ipc::IPCResult
     915           0 :                 return MsgProcessingError;
     916             :             }
     917             : 
     918           0 :             return MsgProcessed;
     919             :         }
     920             :     case PGPU::Msg_RequestMemoryReport__ID:
     921             :         {
     922           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
     923           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     924             :             }
     925           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_RequestMemoryReport", OTHER);
     926             : 
     927           0 :             PickleIterator iter__(msg__);
     928             :             uint32_t generation;
     929             :             bool anonymize;
     930             :             bool minimizeMemoryUsage;
     931           0 :             MaybeFileDesc DMDFile;
     932             : 
     933           0 :             if ((!(Read((&(generation)), (&(msg__)), (&(iter__)))))) {
     934           0 :                 FatalError("Error deserializing 'uint32_t'");
     935           0 :                 return MsgValueError;
     936             :             }
     937             :             // Sentinel = 'generation'
     938           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396961928)))) {
     939           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     940           0 :                 return MsgValueError;
     941             :             }
     942           0 :             if ((!(Read((&(anonymize)), (&(msg__)), (&(iter__)))))) {
     943           0 :                 FatalError("Error deserializing 'bool'");
     944           0 :                 return MsgValueError;
     945             :             }
     946             :             // Sentinel = 'anonymize'
     947           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3334711915)))) {
     948           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     949           0 :                 return MsgValueError;
     950             :             }
     951           0 :             if ((!(Read((&(minimizeMemoryUsage)), (&(msg__)), (&(iter__)))))) {
     952           0 :                 FatalError("Error deserializing 'bool'");
     953           0 :                 return MsgValueError;
     954             :             }
     955             :             // Sentinel = 'minimizeMemoryUsage'
     956           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3442464661)))) {
     957           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     958           0 :                 return MsgValueError;
     959             :             }
     960           0 :             if ((!(Read((&(DMDFile)), (&(msg__)), (&(iter__)))))) {
     961           0 :                 FatalError("Error deserializing 'MaybeFileDesc'");
     962           0 :                 return MsgValueError;
     963             :             }
     964             :             // Sentinel = 'DMDFile'
     965           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3739167222)))) {
     966           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'MaybeFileDesc'");
     967           0 :                 return MsgValueError;
     968             :             }
     969           0 :             (msg__).EndRead(iter__, (msg__).type());
     970           0 :             PGPU::Transition(PGPU::Msg_RequestMemoryReport__ID, (&(mState)));
     971           0 :             if ((!(RecvRequestMemoryReport(mozilla::Move(generation), mozilla::Move(anonymize), mozilla::Move(minimizeMemoryUsage), mozilla::Move(DMDFile))))) {
     972           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     973             :                 // Error handled in mozilla::ipc::IPCResult
     974           0 :                 return MsgProcessingError;
     975             :             }
     976             : 
     977           0 :             return MsgProcessed;
     978             :         }
     979             :     default:
     980             :         {
     981           0 :             return MsgNotKnown;
     982             :         }
     983             :     case SHMEM_CREATED_MESSAGE_TYPE:
     984             :         {
     985           0 :             if ((!(ShmemCreated(msg__)))) {
     986           0 :                 return MsgPayloadError;
     987             :             }
     988           0 :             return MsgProcessed;
     989             :         }
     990             :     case SHMEM_DESTROYED_MESSAGE_TYPE:
     991             :         {
     992           0 :             if ((!(ShmemDestroyed(msg__)))) {
     993           0 :                 return MsgPayloadError;
     994             :             }
     995           0 :             return MsgProcessed;
     996             :         }
     997             :     }
     998             : }
     999             : 
    1000           0 : auto PGPUParent::OnMessageReceived(
    1001             :         const Message& msg__,
    1002             :         Message*& reply__) -> PGPUParent::Result
    1003             : {
    1004           0 :     switch ((msg__).type()) {
    1005             :     case PGPU::Msg_AddLayerTreeIdMapping__ID:
    1006             :         {
    1007           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
    1008           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1009             :             }
    1010           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_AddLayerTreeIdMapping", OTHER);
    1011             : 
    1012           0 :             PickleIterator iter__(msg__);
    1013           0 :             LayerTreeIdMapping mapping;
    1014             : 
    1015           0 :             if ((!(Read((&(mapping)), (&(msg__)), (&(iter__)))))) {
    1016           0 :                 FatalError("Error deserializing 'LayerTreeIdMapping'");
    1017           0 :                 return MsgValueError;
    1018             :             }
    1019             :             // Sentinel = 'mapping'
    1020           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 601526733)))) {
    1021           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'LayerTreeIdMapping'");
    1022           0 :                 return MsgValueError;
    1023             :             }
    1024           0 :             (msg__).EndRead(iter__, (msg__).type());
    1025           0 :             PGPU::Transition(PGPU::Msg_AddLayerTreeIdMapping__ID, (&(mState)));
    1026           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
    1027           0 :             if ((!(RecvAddLayerTreeIdMapping(mozilla::Move(mapping))))) {
    1028           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1029             :                 // Error handled in mozilla::ipc::IPCResult
    1030           0 :                 return MsgProcessingError;
    1031             :             }
    1032             : 
    1033           0 :             reply__ = PGPU::Reply_AddLayerTreeIdMapping(id__);
    1034             : 
    1035           0 :             (reply__)->set_sync();
    1036           0 :             (reply__)->set_reply();
    1037             : 
    1038           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
    1039           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1040             :             }
    1041           0 :             return MsgProcessed;
    1042             :         }
    1043             :     case PGPU::Msg_GetDeviceStatus__ID:
    1044             :         {
    1045           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
    1046           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1047             :             }
    1048           0 :             AUTO_PROFILER_LABEL("PGPU::Msg_GetDeviceStatus", OTHER);
    1049             : 
    1050           0 :             PGPU::Transition(PGPU::Msg_GetDeviceStatus__ID, (&(mState)));
    1051           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
    1052           0 :             GPUDeviceData status;
    1053           0 :             if ((!(RecvGetDeviceStatus((&(status)))))) {
    1054           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1055             :                 // Error handled in mozilla::ipc::IPCResult
    1056           0 :                 return MsgProcessingError;
    1057             :             }
    1058             : 
    1059           0 :             reply__ = PGPU::Reply_GetDeviceStatus(id__);
    1060             : 
    1061           0 :             Write(status, reply__);
    1062             :             // Sentinel = 'status'
    1063           0 :             (reply__)->WriteSentinel(3714608576);
    1064           0 :             (reply__)->set_sync();
    1065           0 :             (reply__)->set_reply();
    1066             : 
    1067           0 :             if (mozilla::ipc::LoggingEnabledFor("PGPUParent")) {
    1068           0 :                 mozilla::ipc::LogMessageForProtocol("PGPUParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1069             :             }
    1070           0 :             return MsgProcessed;
    1071             :         }
    1072             :     default:
    1073             :         {
    1074           0 :             return MsgNotKnown;
    1075             :         }
    1076             :     }
    1077             : }
    1078             : 
    1079           0 : auto PGPUParent::OnCallReceived(
    1080             :         const Message& msg__,
    1081             :         Message*& reply__) -> PGPUParent::Result
    1082             : {
    1083           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
    1084             :     return MsgNotKnown;
    1085             : }
    1086             : 
    1087           0 : auto PGPUParent::GetProtocolTypeId() -> int32_t
    1088             : {
    1089           0 :     return PGPUMsgStart;
    1090             : }
    1091             : 
    1092           0 : auto PGPUParent::OnChannelClose() -> void
    1093             : {
    1094           0 :     DestroySubtree(NormalShutdown);
    1095           0 :     DeallocSubtree();
    1096           0 :     DeallocShmems();
    1097           0 :     DeallocPGPUParent();
    1098           0 : }
    1099             : 
    1100           0 : auto PGPUParent::OnChannelError() -> void
    1101             : {
    1102           0 :     DestroySubtree(AbnormalShutdown);
    1103           0 :     DeallocSubtree();
    1104           0 :     DeallocShmems();
    1105           0 :     DeallocPGPUParent();
    1106           0 : }
    1107             : 
    1108           0 : auto PGPUParent::ProtocolName() const -> const char*
    1109             : {
    1110           0 :     return "PGPUParent";
    1111             : }
    1112             : 
    1113           0 : auto PGPUParent::DestroySubtree(ActorDestroyReason why) -> void
    1114             : {
    1115             :     // Reject owning pending promises.
    1116           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
    1117             : 
    1118             :     // Finally, destroy "us".
    1119           0 :     ActorDestroy(why);
    1120           0 : }
    1121             : 
    1122           0 : auto PGPUParent::DeallocSubtree() -> void
    1123             : {
    1124           0 : }
    1125             : 
    1126           0 : auto PGPUParent::DeallocPGPUParent() -> void
    1127             : {
    1128           0 : }
    1129             : 
    1130           0 : auto PGPUParent::Write(
    1131             :         const nsTArray<LayerTreeIdMapping>& v__,
    1132             :         Message* msg__) -> void
    1133             : {
    1134           0 :     uint32_t length = (v__).Length();
    1135           0 :     Write(length, msg__);
    1136             :     // Sentinel = ('length', 'LayerTreeIdMapping[]')
    1137           0 :     (msg__)->WriteSentinel(2736520195);
    1138             : 
    1139           0 :     for (auto& elem : v__) {
    1140           0 :         Write(elem, msg__);
    1141             :         // Sentinel = 'LayerTreeIdMapping[]'
    1142           0 :         (msg__)->WriteSentinel(4258546870);
    1143             :     }
    1144           0 : }
    1145             : 
    1146           0 : auto PGPUParent::Read(
    1147             :         nsTArray<LayerTreeIdMapping>* v__,
    1148             :         const Message* msg__,
    1149             :         PickleIterator* iter__) -> bool
    1150             : {
    1151           0 :     nsTArray<LayerTreeIdMapping> fa;
    1152             :     uint32_t length;
    1153           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1154           0 :         mozilla::ipc::ArrayLengthReadError("LayerTreeIdMapping[]");
    1155           0 :         return false;
    1156             :     }
    1157             :     // Sentinel = ('length', 'LayerTreeIdMapping[]')
    1158           0 :     if ((!((msg__)->ReadSentinel(iter__, 2736520195)))) {
    1159           0 :         mozilla::ipc::SentinelReadError("LayerTreeIdMapping[]");
    1160           0 :         return false;
    1161             :     }
    1162             : 
    1163           0 :     LayerTreeIdMapping* elems = (fa).AppendElements(length);
    1164           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1165           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1166           0 :             FatalError("Error deserializing 'LayerTreeIdMapping[i]'");
    1167           0 :             return false;
    1168             :         }
    1169             :         // Sentinel = 'LayerTreeIdMapping[]'
    1170           0 :         if ((!((msg__)->ReadSentinel(iter__, 4258546870)))) {
    1171           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'LayerTreeIdMapping[i]'");
    1172           0 :             return false;
    1173             :         }
    1174             :     }
    1175           0 :     (v__)->SwapElements(fa);
    1176           0 :     return true;
    1177             : }
    1178             : 
    1179           0 : auto PGPUParent::Write(
    1180             :         const DevicePrefs& v__,
    1181             :         Message* msg__) -> void
    1182             : {
    1183           0 :     Write((v__).hwCompositing(), msg__);
    1184             :     // Sentinel = 'hwCompositing'
    1185           0 :     (msg__)->WriteSentinel(3916929800);
    1186           0 :     Write((v__).d3d11Compositing(), msg__);
    1187             :     // Sentinel = 'd3d11Compositing'
    1188           0 :     (msg__)->WriteSentinel(2460470117);
    1189           0 :     Write((v__).oglCompositing(), msg__);
    1190             :     // Sentinel = 'oglCompositing'
    1191           0 :     (msg__)->WriteSentinel(2769823004);
    1192           0 :     Write((v__).advancedLayers(), msg__);
    1193             :     // Sentinel = 'advancedLayers'
    1194           0 :     (msg__)->WriteSentinel(2376436002);
    1195           0 :     Write((v__).useD2D1(), msg__);
    1196             :     // Sentinel = 'useD2D1'
    1197           0 :     (msg__)->WriteSentinel(3693357445);
    1198           0 : }
    1199             : 
    1200           0 : auto PGPUParent::Read(
    1201             :         DevicePrefs* v__,
    1202             :         const Message* msg__,
    1203             :         PickleIterator* iter__) -> bool
    1204             : {
    1205           0 :     if ((!(Read((&((v__)->hwCompositing())), msg__, iter__)))) {
    1206           0 :         FatalError("Error deserializing 'hwCompositing' (FeatureStatus) member of 'DevicePrefs'");
    1207           0 :         return false;
    1208             :     }
    1209             :     // Sentinel = 'hwCompositing'
    1210           0 :     if ((!((msg__)->ReadSentinel(iter__, 3916929800)))) {
    1211           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'hwCompositing' (FeatureStatus) member of 'DevicePrefs'");
    1212           0 :         return false;
    1213             :     }
    1214           0 :     if ((!(Read((&((v__)->d3d11Compositing())), msg__, iter__)))) {
    1215           0 :         FatalError("Error deserializing 'd3d11Compositing' (FeatureStatus) member of 'DevicePrefs'");
    1216           0 :         return false;
    1217             :     }
    1218             :     // Sentinel = 'd3d11Compositing'
    1219           0 :     if ((!((msg__)->ReadSentinel(iter__, 2460470117)))) {
    1220           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'd3d11Compositing' (FeatureStatus) member of 'DevicePrefs'");
    1221           0 :         return false;
    1222             :     }
    1223           0 :     if ((!(Read((&((v__)->oglCompositing())), msg__, iter__)))) {
    1224           0 :         FatalError("Error deserializing 'oglCompositing' (FeatureStatus) member of 'DevicePrefs'");
    1225           0 :         return false;
    1226             :     }
    1227             :     // Sentinel = 'oglCompositing'
    1228           0 :     if ((!((msg__)->ReadSentinel(iter__, 2769823004)))) {
    1229           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'oglCompositing' (FeatureStatus) member of 'DevicePrefs'");
    1230           0 :         return false;
    1231             :     }
    1232           0 :     if ((!(Read((&((v__)->advancedLayers())), msg__, iter__)))) {
    1233           0 :         FatalError("Error deserializing 'advancedLayers' (FeatureStatus) member of 'DevicePrefs'");
    1234           0 :         return false;
    1235             :     }
    1236             :     // Sentinel = 'advancedLayers'
    1237           0 :     if ((!((msg__)->ReadSentinel(iter__, 2376436002)))) {
    1238           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'advancedLayers' (FeatureStatus) member of 'DevicePrefs'");
    1239           0 :         return false;
    1240             :     }
    1241           0 :     if ((!(Read((&((v__)->useD2D1())), msg__, iter__)))) {
    1242           0 :         FatalError("Error deserializing 'useD2D1' (FeatureStatus) member of 'DevicePrefs'");
    1243           0 :         return false;
    1244             :     }
    1245             :     // Sentinel = 'useD2D1'
    1246           0 :     if ((!((msg__)->ReadSentinel(iter__, 3693357445)))) {
    1247           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'useD2D1' (FeatureStatus) member of 'DevicePrefs'");
    1248           0 :         return false;
    1249             :     }
    1250           0 :     return true;
    1251             : }
    1252             : 
    1253           0 : auto PGPUParent::Write(
    1254             :         const GfxPrefSetting& v__,
    1255             :         Message* msg__) -> void
    1256             : {
    1257           0 :     Write((v__).index(), msg__);
    1258             :     // Sentinel = 'index'
    1259           0 :     (msg__)->WriteSentinel(2111871137);
    1260           0 :     Write((v__).value(), msg__);
    1261             :     // Sentinel = 'value'
    1262           0 :     (msg__)->WriteSentinel(3456818542);
    1263           0 : }
    1264             : 
    1265           0 : auto PGPUParent::Read(
    1266             :         GfxPrefSetting* v__,
    1267             :         const Message* msg__,
    1268             :         PickleIterator* iter__) -> bool
    1269             : {
    1270           0 :     if ((!(Read((&((v__)->index())), msg__, iter__)))) {
    1271           0 :         FatalError("Error deserializing 'index' (int32_t) member of 'GfxPrefSetting'");
    1272           0 :         return false;
    1273             :     }
    1274             :     // Sentinel = 'index'
    1275           0 :     if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
    1276           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'index' (int32_t) member of 'GfxPrefSetting'");
    1277           0 :         return false;
    1278             :     }
    1279           0 :     if ((!(Read((&((v__)->value())), msg__, iter__)))) {
    1280           0 :         FatalError("Error deserializing 'value' (GfxPrefValue) member of 'GfxPrefSetting'");
    1281           0 :         return false;
    1282             :     }
    1283             :     // Sentinel = 'value'
    1284           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
    1285           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'value' (GfxPrefValue) member of 'GfxPrefSetting'");
    1286           0 :         return false;
    1287             :     }
    1288           0 :     return true;
    1289             : }
    1290             : 
    1291           0 : auto PGPUParent::Write(
    1292             :         Shmem& v__,
    1293             :         Message* msg__) -> void
    1294             : {
    1295           0 :     IPC::WriteParam(msg__, v__);
    1296           0 :     (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1297           0 :     (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1298           0 : }
    1299             : 
    1300           0 : auto PGPUParent::Read(
    1301             :         Shmem* v__,
    1302             :         const Message* msg__,
    1303             :         PickleIterator* iter__) -> bool
    1304             : {
    1305           0 :     Shmem tmp;
    1306           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
    1307           0 :         return false;
    1308             :     }
    1309             : 
    1310           0 :     Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1311           0 :     Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
    1312           0 :     if (rawmem) {
    1313           0 :         (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
    1314           0 :         return true;
    1315             :     }
    1316           0 :     (*(v__)) = Shmem();
    1317           0 :     return true;
    1318             : }
    1319             : 
    1320           0 : auto PGPUParent::Write(
    1321             :         const GPUDeviceData& v__,
    1322             :         Message* msg__) -> void
    1323             : {
    1324           0 :     Write((v__).d3d11Compositing(), msg__);
    1325             :     // Sentinel = 'd3d11Compositing'
    1326           0 :     (msg__)->WriteSentinel(2460470117);
    1327           0 :     Write((v__).oglCompositing(), msg__);
    1328             :     // Sentinel = 'oglCompositing'
    1329           0 :     (msg__)->WriteSentinel(2769823004);
    1330           0 :     Write((v__).advancedLayers(), msg__);
    1331             :     // Sentinel = 'advancedLayers'
    1332           0 :     (msg__)->WriteSentinel(2376436002);
    1333           0 :     Write((v__).gpuDevice(), msg__);
    1334             :     // Sentinel = 'gpuDevice'
    1335           0 :     (msg__)->WriteSentinel(675380553);
    1336           0 : }
    1337             : 
    1338           0 : auto PGPUParent::Read(
    1339             :         GPUDeviceData* v__,
    1340             :         const Message* msg__,
    1341             :         PickleIterator* iter__) -> bool
    1342             : {
    1343           0 :     if ((!(Read((&((v__)->d3d11Compositing())), msg__, iter__)))) {
    1344           0 :         FatalError("Error deserializing 'd3d11Compositing' (FeatureChange) member of 'GPUDeviceData'");
    1345           0 :         return false;
    1346             :     }
    1347             :     // Sentinel = 'd3d11Compositing'
    1348           0 :     if ((!((msg__)->ReadSentinel(iter__, 2460470117)))) {
    1349           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'd3d11Compositing' (FeatureChange) member of 'GPUDeviceData'");
    1350           0 :         return false;
    1351             :     }
    1352           0 :     if ((!(Read((&((v__)->oglCompositing())), msg__, iter__)))) {
    1353           0 :         FatalError("Error deserializing 'oglCompositing' (FeatureChange) member of 'GPUDeviceData'");
    1354           0 :         return false;
    1355             :     }
    1356             :     // Sentinel = 'oglCompositing'
    1357           0 :     if ((!((msg__)->ReadSentinel(iter__, 2769823004)))) {
    1358           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'oglCompositing' (FeatureChange) member of 'GPUDeviceData'");
    1359           0 :         return false;
    1360             :     }
    1361           0 :     if ((!(Read((&((v__)->advancedLayers())), msg__, iter__)))) {
    1362           0 :         FatalError("Error deserializing 'advancedLayers' (FeatureChange) member of 'GPUDeviceData'");
    1363           0 :         return false;
    1364             :     }
    1365             :     // Sentinel = 'advancedLayers'
    1366           0 :     if ((!((msg__)->ReadSentinel(iter__, 2376436002)))) {
    1367           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'advancedLayers' (FeatureChange) member of 'GPUDeviceData'");
    1368           0 :         return false;
    1369             :     }
    1370           0 :     if ((!(Read((&((v__)->gpuDevice())), msg__, iter__)))) {
    1371           0 :         FatalError("Error deserializing 'gpuDevice' (GPUDeviceStatus) member of 'GPUDeviceData'");
    1372           0 :         return false;
    1373             :     }
    1374             :     // Sentinel = 'gpuDevice'
    1375           0 :     if ((!((msg__)->ReadSentinel(iter__, 675380553)))) {
    1376           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'gpuDevice' (GPUDeviceStatus) member of 'GPUDeviceData'");
    1377           0 :         return false;
    1378             :     }
    1379           0 :     return true;
    1380             : }
    1381             : 
    1382           0 : auto PGPUParent::Write(
    1383             :         const MaybeFileDesc& v__,
    1384             :         Message* msg__) -> void
    1385             : {
    1386             :     typedef MaybeFileDesc type__;
    1387           0 :     Write(int((v__).type()), msg__);
    1388             :     // Sentinel = 'MaybeFileDesc'
    1389           0 :     (msg__)->WriteSentinel(241283548);
    1390             : 
    1391           0 :     switch ((v__).type()) {
    1392             :     case type__::TFileDescriptor:
    1393             :         {
    1394           0 :             Write((v__).get_FileDescriptor(), msg__);
    1395             :             // Sentinel = 'TFileDescriptor'
    1396           0 :             (msg__)->WriteSentinel(3431583866);
    1397           0 :             return;
    1398             :         }
    1399             :     case type__::Tvoid_t:
    1400             :         {
    1401           0 :             Write((v__).get_void_t(), msg__);
    1402             :             // Sentinel = 'Tvoid_t'
    1403           0 :             (msg__)->WriteSentinel(3041273328);
    1404           0 :             return;
    1405             :         }
    1406             :     default:
    1407             :         {
    1408           0 :             FatalError("unknown union type");
    1409           0 :             return;
    1410             :         }
    1411             :     }
    1412             : }
    1413             : 
    1414           0 : auto PGPUParent::Read(
    1415             :         MaybeFileDesc* v__,
    1416             :         const Message* msg__,
    1417             :         PickleIterator* iter__) -> bool
    1418             : {
    1419             :     typedef MaybeFileDesc type__;
    1420             :     int type;
    1421           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1422           0 :         mozilla::ipc::UnionTypeReadError("MaybeFileDesc");
    1423           0 :         return false;
    1424             :     }
    1425             :     // Sentinel = 'MaybeFileDesc'
    1426           0 :     if ((!((msg__)->ReadSentinel(iter__, 241283548)))) {
    1427           0 :         mozilla::ipc::SentinelReadError("MaybeFileDesc");
    1428           0 :         return false;
    1429             :     }
    1430             : 
    1431           0 :     switch (type) {
    1432             :     case type__::TFileDescriptor:
    1433             :         {
    1434           0 :             FileDescriptor tmp = FileDescriptor();
    1435           0 :             (*(v__)) = tmp;
    1436           0 :             if ((!(Read((&((v__)->get_FileDescriptor())), msg__, iter__)))) {
    1437           0 :                 FatalError("Error deserializing Union type");
    1438           0 :                 return false;
    1439             :             }
    1440             :             // Sentinel = 'TFileDescriptor'
    1441           0 :             if ((!((msg__)->ReadSentinel(iter__, 3431583866)))) {
    1442           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1443           0 :                 return false;
    1444             :             }
    1445           0 :             return true;
    1446             :         }
    1447             :     case type__::Tvoid_t:
    1448             :         {
    1449             :             void_t tmp = void_t();
    1450           0 :             (*(v__)) = tmp;
    1451           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    1452           0 :                 FatalError("Error deserializing Union type");
    1453           0 :                 return false;
    1454             :             }
    1455             :             // Sentinel = 'Tvoid_t'
    1456           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    1457           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1458           0 :                 return false;
    1459             :             }
    1460           0 :             return true;
    1461             :         }
    1462             :     default:
    1463             :         {
    1464           0 :             FatalError("unknown union type");
    1465           0 :             return false;
    1466             :         }
    1467             :     }
    1468             : }
    1469             : 
    1470           0 : auto PGPUParent::Write(
    1471             :         const nsTArray<GfxVarUpdate>& v__,
    1472             :         Message* msg__) -> void
    1473             : {
    1474           0 :     uint32_t length = (v__).Length();
    1475           0 :     Write(length, msg__);
    1476             :     // Sentinel = ('length', 'GfxVarUpdate[]')
    1477           0 :     (msg__)->WriteSentinel(4125246074);
    1478             : 
    1479           0 :     for (auto& elem : v__) {
    1480           0 :         Write(elem, msg__);
    1481             :         // Sentinel = 'GfxVarUpdate[]'
    1482           0 :         (msg__)->WriteSentinel(1033936341);
    1483             :     }
    1484           0 : }
    1485             : 
    1486           0 : auto PGPUParent::Read(
    1487             :         nsTArray<GfxVarUpdate>* v__,
    1488             :         const Message* msg__,
    1489             :         PickleIterator* iter__) -> bool
    1490             : {
    1491           0 :     nsTArray<GfxVarUpdate> fa;
    1492             :     uint32_t length;
    1493           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1494           0 :         mozilla::ipc::ArrayLengthReadError("GfxVarUpdate[]");
    1495           0 :         return false;
    1496             :     }
    1497             :     // Sentinel = ('length', 'GfxVarUpdate[]')
    1498           0 :     if ((!((msg__)->ReadSentinel(iter__, 4125246074)))) {
    1499           0 :         mozilla::ipc::SentinelReadError("GfxVarUpdate[]");
    1500           0 :         return false;
    1501             :     }
    1502             : 
    1503           0 :     GfxVarUpdate* elems = (fa).AppendElements(length);
    1504           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1505           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1506           0 :             FatalError("Error deserializing 'GfxVarUpdate[i]'");
    1507           0 :             return false;
    1508             :         }
    1509             :         // Sentinel = 'GfxVarUpdate[]'
    1510           0 :         if ((!((msg__)->ReadSentinel(iter__, 1033936341)))) {
    1511           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'GfxVarUpdate[i]'");
    1512           0 :             return false;
    1513             :         }
    1514             :     }
    1515           0 :     (v__)->SwapElements(fa);
    1516           0 :     return true;
    1517             : }
    1518             : 
    1519           0 : auto PGPUParent::Write(
    1520             :         const MemoryReport& v__,
    1521             :         Message* msg__) -> void
    1522             : {
    1523           0 :     Write((v__).process(), msg__);
    1524             :     // Sentinel = 'process'
    1525           0 :     (msg__)->WriteSentinel(2642549128);
    1526           0 :     Write((v__).path(), msg__);
    1527             :     // Sentinel = 'path'
    1528           0 :     (msg__)->WriteSentinel(913629401);
    1529           0 :     Write((v__).kind(), msg__);
    1530             :     // Sentinel = 'kind'
    1531           0 :     (msg__)->WriteSentinel(2950460258);
    1532           0 :     Write((v__).units(), msg__);
    1533             :     // Sentinel = 'units'
    1534           0 :     (msg__)->WriteSentinel(4054023608);
    1535           0 :     Write((v__).amount(), msg__);
    1536             :     // Sentinel = 'amount'
    1537           0 :     (msg__)->WriteSentinel(2439491826);
    1538           0 :     Write((v__).generation(), msg__);
    1539             :     // Sentinel = 'generation'
    1540           0 :     (msg__)->WriteSentinel(1396961928);
    1541           0 :     Write((v__).desc(), msg__);
    1542             :     // Sentinel = 'desc'
    1543           0 :     (msg__)->WriteSentinel(3761872479);
    1544           0 : }
    1545             : 
    1546           0 : auto PGPUParent::Read(
    1547             :         MemoryReport* v__,
    1548             :         const Message* msg__,
    1549             :         PickleIterator* iter__) -> bool
    1550             : {
    1551           0 :     if ((!(Read((&((v__)->process())), msg__, iter__)))) {
    1552           0 :         FatalError("Error deserializing 'process' (nsCString) member of 'MemoryReport'");
    1553           0 :         return false;
    1554             :     }
    1555             :     // Sentinel = 'process'
    1556           0 :     if ((!((msg__)->ReadSentinel(iter__, 2642549128)))) {
    1557           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'process' (nsCString) member of 'MemoryReport'");
    1558           0 :         return false;
    1559             :     }
    1560           0 :     if ((!(Read((&((v__)->path())), msg__, iter__)))) {
    1561           0 :         FatalError("Error deserializing 'path' (nsCString) member of 'MemoryReport'");
    1562           0 :         return false;
    1563             :     }
    1564             :     // Sentinel = 'path'
    1565           0 :     if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
    1566           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'path' (nsCString) member of 'MemoryReport'");
    1567           0 :         return false;
    1568             :     }
    1569           0 :     if ((!(Read((&((v__)->kind())), msg__, iter__)))) {
    1570           0 :         FatalError("Error deserializing 'kind' (int32_t) member of 'MemoryReport'");
    1571           0 :         return false;
    1572             :     }
    1573             :     // Sentinel = 'kind'
    1574           0 :     if ((!((msg__)->ReadSentinel(iter__, 2950460258)))) {
    1575           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'kind' (int32_t) member of 'MemoryReport'");
    1576           0 :         return false;
    1577             :     }
    1578           0 :     if ((!(Read((&((v__)->units())), msg__, iter__)))) {
    1579           0 :         FatalError("Error deserializing 'units' (int32_t) member of 'MemoryReport'");
    1580           0 :         return false;
    1581             :     }
    1582             :     // Sentinel = 'units'
    1583           0 :     if ((!((msg__)->ReadSentinel(iter__, 4054023608)))) {
    1584           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'units' (int32_t) member of 'MemoryReport'");
    1585           0 :         return false;
    1586             :     }
    1587           0 :     if ((!(Read((&((v__)->amount())), msg__, iter__)))) {
    1588           0 :         FatalError("Error deserializing 'amount' (int64_t) member of 'MemoryReport'");
    1589           0 :         return false;
    1590             :     }
    1591             :     // Sentinel = 'amount'
    1592           0 :     if ((!((msg__)->ReadSentinel(iter__, 2439491826)))) {
    1593           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'amount' (int64_t) member of 'MemoryReport'");
    1594           0 :         return false;
    1595             :     }
    1596           0 :     if ((!(Read((&((v__)->generation())), msg__, iter__)))) {
    1597           0 :         FatalError("Error deserializing 'generation' (uint32_t) member of 'MemoryReport'");
    1598           0 :         return false;
    1599             :     }
    1600             :     // Sentinel = 'generation'
    1601           0 :     if ((!((msg__)->ReadSentinel(iter__, 1396961928)))) {
    1602           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'generation' (uint32_t) member of 'MemoryReport'");
    1603           0 :         return false;
    1604             :     }
    1605           0 :     if ((!(Read((&((v__)->desc())), msg__, iter__)))) {
    1606           0 :         FatalError("Error deserializing 'desc' (nsCString) member of 'MemoryReport'");
    1607           0 :         return false;
    1608             :     }
    1609             :     // Sentinel = 'desc'
    1610           0 :     if ((!((msg__)->ReadSentinel(iter__, 3761872479)))) {
    1611           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'desc' (nsCString) member of 'MemoryReport'");
    1612           0 :         return false;
    1613             :     }
    1614           0 :     return true;
    1615             : }
    1616             : 
    1617           0 : auto PGPUParent::Write(
    1618             :         const GfxVarUpdate& v__,
    1619             :         Message* msg__) -> void
    1620             : {
    1621           0 :     Write((v__).index(), msg__);
    1622             :     // Sentinel = 'index'
    1623           0 :     (msg__)->WriteSentinel(2111871137);
    1624           0 :     Write((v__).value(), msg__);
    1625             :     // Sentinel = 'value'
    1626           0 :     (msg__)->WriteSentinel(3456818542);
    1627           0 : }
    1628             : 
    1629           0 : auto PGPUParent::Read(
    1630             :         GfxVarUpdate* v__,
    1631             :         const Message* msg__,
    1632             :         PickleIterator* iter__) -> bool
    1633             : {
    1634           0 :     if ((!(Read((&((v__)->index())), msg__, iter__)))) {
    1635           0 :         FatalError("Error deserializing 'index' (size_t) member of 'GfxVarUpdate'");
    1636           0 :         return false;
    1637             :     }
    1638             :     // Sentinel = 'index'
    1639           0 :     if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
    1640           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'index' (size_t) member of 'GfxVarUpdate'");
    1641           0 :         return false;
    1642             :     }
    1643           0 :     if ((!(Read((&((v__)->value())), msg__, iter__)))) {
    1644           0 :         FatalError("Error deserializing 'value' (GfxVarValue) member of 'GfxVarUpdate'");
    1645           0 :         return false;
    1646             :     }
    1647             :     // Sentinel = 'value'
    1648           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
    1649           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'value' (GfxVarValue) member of 'GfxVarUpdate'");
    1650           0 :         return false;
    1651             :     }
    1652           0 :     return true;
    1653             : }
    1654             : 
    1655           0 : auto PGPUParent::Write(
    1656             :         const nsTArray<GfxPrefSetting>& v__,
    1657             :         Message* msg__) -> void
    1658             : {
    1659           0 :     uint32_t length = (v__).Length();
    1660           0 :     Write(length, msg__);
    1661             :     // Sentinel = ('length', 'GfxPrefSetting[]')
    1662           0 :     (msg__)->WriteSentinel(3773340443);
    1663             : 
    1664           0 :     for (auto& elem : v__) {
    1665           0 :         Write(elem, msg__);
    1666             :         // Sentinel = 'GfxPrefSetting[]'
    1667           0 :         (msg__)->WriteSentinel(4252364990);
    1668             :     }
    1669           0 : }
    1670             : 
    1671           0 : auto PGPUParent::Read(
    1672             :         nsTArray<GfxPrefSetting>* v__,
    1673             :         const Message* msg__,
    1674             :         PickleIterator* iter__) -> bool
    1675             : {
    1676           0 :     nsTArray<GfxPrefSetting> fa;
    1677             :     uint32_t length;
    1678           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1679           0 :         mozilla::ipc::ArrayLengthReadError("GfxPrefSetting[]");
    1680           0 :         return false;
    1681             :     }
    1682             :     // Sentinel = ('length', 'GfxPrefSetting[]')
    1683           0 :     if ((!((msg__)->ReadSentinel(iter__, 3773340443)))) {
    1684           0 :         mozilla::ipc::SentinelReadError("GfxPrefSetting[]");
    1685           0 :         return false;
    1686             :     }
    1687             : 
    1688           0 :     GfxPrefSetting* elems = (fa).AppendElements(length);
    1689           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1690           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1691           0 :             FatalError("Error deserializing 'GfxPrefSetting[i]'");
    1692           0 :             return false;
    1693             :         }
    1694             :         // Sentinel = 'GfxPrefSetting[]'
    1695           0 :         if ((!((msg__)->ReadSentinel(iter__, 4252364990)))) {
    1696           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'GfxPrefSetting[i]'");
    1697           0 :             return false;
    1698             :         }
    1699             :     }
    1700           0 :     (v__)->SwapElements(fa);
    1701           0 :     return true;
    1702             : }
    1703             : 
    1704           0 : auto PGPUParent::Write(
    1705             :         const FileDescriptor& v__,
    1706             :         Message* msg__) -> void
    1707             : {
    1708           0 :     FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
    1709           0 :     IPC::WriteParam(msg__, pfd);
    1710           0 : }
    1711             : 
    1712           0 : auto PGPUParent::Read(
    1713             :         FileDescriptor* v__,
    1714             :         const Message* msg__,
    1715             :         PickleIterator* iter__) -> bool
    1716             : {
    1717           0 :     FileDescriptor::PickleType pfd;
    1718           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
    1719           0 :         return false;
    1720             :     }
    1721             : 
    1722           0 :     FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
    1723           0 :     if ((!((fd).IsValid()))) {
    1724           0 :         mozilla::ipc::ProtocolErrorBreakpoint("[PGPUParent] Received an invalid file descriptor!");
    1725             :     }
    1726             : 
    1727           0 :     (*(v__)) = fd;
    1728           0 :     return true;
    1729             : }
    1730             : 
    1731           0 : auto PGPUParent::Write(
    1732             :         const GPUDeviceStatus& v__,
    1733             :         Message* msg__) -> void
    1734             : {
    1735             :     typedef GPUDeviceStatus type__;
    1736           0 :     Write(int((v__).type()), msg__);
    1737             :     // Sentinel = 'GPUDeviceStatus'
    1738           0 :     (msg__)->WriteSentinel(3259585801);
    1739             : 
    1740           0 :     switch ((v__).type()) {
    1741             :     case type__::Tnull_t:
    1742             :         {
    1743           0 :             Write((v__).get_null_t(), msg__);
    1744             :             // Sentinel = 'Tnull_t'
    1745           0 :             (msg__)->WriteSentinel(3731137201);
    1746           0 :             return;
    1747             :         }
    1748             :     case type__::TD3D11DeviceStatus:
    1749             :         {
    1750           0 :             Write((v__).get_D3D11DeviceStatus(), msg__);
    1751             :             // Sentinel = 'TD3D11DeviceStatus'
    1752           0 :             (msg__)->WriteSentinel(4014285905);
    1753           0 :             return;
    1754             :         }
    1755             :     default:
    1756             :         {
    1757           0 :             FatalError("unknown union type");
    1758           0 :             return;
    1759             :         }
    1760             :     }
    1761             : }
    1762             : 
    1763           0 : auto PGPUParent::Read(
    1764             :         GPUDeviceStatus* v__,
    1765             :         const Message* msg__,
    1766             :         PickleIterator* iter__) -> bool
    1767             : {
    1768             :     typedef GPUDeviceStatus type__;
    1769             :     int type;
    1770           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1771           0 :         mozilla::ipc::UnionTypeReadError("GPUDeviceStatus");
    1772           0 :         return false;
    1773             :     }
    1774             :     // Sentinel = 'GPUDeviceStatus'
    1775           0 :     if ((!((msg__)->ReadSentinel(iter__, 3259585801)))) {
    1776           0 :         mozilla::ipc::SentinelReadError("GPUDeviceStatus");
    1777           0 :         return false;
    1778             :     }
    1779             : 
    1780           0 :     switch (type) {
    1781             :     case type__::Tnull_t:
    1782             :         {
    1783             :             null_t tmp = null_t();
    1784           0 :             (*(v__)) = tmp;
    1785           0 :             if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
    1786           0 :                 FatalError("Error deserializing Union type");
    1787           0 :                 return false;
    1788             :             }
    1789             :             // Sentinel = 'Tnull_t'
    1790           0 :             if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
    1791           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1792           0 :                 return false;
    1793             :             }
    1794           0 :             return true;
    1795             :         }
    1796             :     case type__::TD3D11DeviceStatus:
    1797             :         {
    1798           0 :             D3D11DeviceStatus tmp = D3D11DeviceStatus();
    1799           0 :             (*(v__)) = tmp;
    1800           0 :             if ((!(Read((&((v__)->get_D3D11DeviceStatus())), msg__, iter__)))) {
    1801           0 :                 FatalError("Error deserializing Union type");
    1802           0 :                 return false;
    1803             :             }
    1804             :             // Sentinel = 'TD3D11DeviceStatus'
    1805           0 :             if ((!((msg__)->ReadSentinel(iter__, 4014285905)))) {
    1806           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1807           0 :                 return false;
    1808             :             }
    1809           0 :             return true;
    1810             :         }
    1811             :     default:
    1812             :         {
    1813           0 :             FatalError("unknown union type");
    1814           0 :             return false;
    1815             :         }
    1816             :     }
    1817             : }
    1818             : 
    1819           0 : auto PGPUParent::Write(
    1820             :         const GfxVarValue& v__,
    1821             :         Message* msg__) -> void
    1822             : {
    1823             :     typedef GfxVarValue type__;
    1824           0 :     Write(int((v__).type()), msg__);
    1825             :     // Sentinel = 'GfxVarValue'
    1826           0 :     (msg__)->WriteSentinel(3909046808);
    1827             : 
    1828           0 :     switch ((v__).type()) {
    1829             :     case type__::TBackendType:
    1830             :         {
    1831           0 :             Write((v__).get_BackendType(), msg__);
    1832             :             // Sentinel = 'TBackendType'
    1833           0 :             (msg__)->WriteSentinel(1181965224);
    1834           0 :             return;
    1835             :         }
    1836             :     case type__::Tbool:
    1837             :         {
    1838           0 :             Write((v__).get_bool(), msg__);
    1839             :             // Sentinel = 'Tbool'
    1840           0 :             (msg__)->WriteSentinel(1958350201);
    1841           0 :             return;
    1842             :         }
    1843             :     case type__::TgfxImageFormat:
    1844             :         {
    1845           0 :             Write((v__).get_gfxImageFormat(), msg__);
    1846             :             // Sentinel = 'TgfxImageFormat'
    1847           0 :             (msg__)->WriteSentinel(1633523770);
    1848           0 :             return;
    1849             :         }
    1850             :     case type__::TIntSize:
    1851             :         {
    1852           0 :             Write((v__).get_IntSize(), msg__);
    1853             :             // Sentinel = 'TIntSize'
    1854           0 :             (msg__)->WriteSentinel(1631526060);
    1855           0 :             return;
    1856             :         }
    1857             :     case type__::TnsCString:
    1858             :         {
    1859           0 :             Write((v__).get_nsCString(), msg__);
    1860             :             // Sentinel = 'TnsCString'
    1861           0 :             (msg__)->WriteSentinel(2427411293);
    1862           0 :             return;
    1863             :         }
    1864             :     case type__::Tint32_t:
    1865             :         {
    1866           0 :             Write((v__).get_int32_t(), msg__);
    1867             :             // Sentinel = 'Tint32_t'
    1868           0 :             (msg__)->WriteSentinel(4219052577);
    1869           0 :             return;
    1870             :         }
    1871             :     default:
    1872             :         {
    1873           0 :             FatalError("unknown union type");
    1874           0 :             return;
    1875             :         }
    1876             :     }
    1877             : }
    1878             : 
    1879           0 : auto PGPUParent::Read(
    1880             :         GfxVarValue* v__,
    1881             :         const Message* msg__,
    1882             :         PickleIterator* iter__) -> bool
    1883             : {
    1884             :     typedef GfxVarValue type__;
    1885             :     int type;
    1886           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1887           0 :         mozilla::ipc::UnionTypeReadError("GfxVarValue");
    1888           0 :         return false;
    1889             :     }
    1890             :     // Sentinel = 'GfxVarValue'
    1891           0 :     if ((!((msg__)->ReadSentinel(iter__, 3909046808)))) {
    1892           0 :         mozilla::ipc::SentinelReadError("GfxVarValue");
    1893           0 :         return false;
    1894             :     }
    1895             : 
    1896           0 :     switch (type) {
    1897             :     case type__::TBackendType:
    1898             :         {
    1899           0 :             BackendType tmp = BackendType();
    1900           0 :             (*(v__)) = tmp;
    1901           0 :             if ((!(Read((&((v__)->get_BackendType())), msg__, iter__)))) {
    1902           0 :                 FatalError("Error deserializing Union type");
    1903           0 :                 return false;
    1904             :             }
    1905             :             // Sentinel = 'TBackendType'
    1906           0 :             if ((!((msg__)->ReadSentinel(iter__, 1181965224)))) {
    1907           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1908           0 :                 return false;
    1909             :             }
    1910           0 :             return true;
    1911             :         }
    1912             :     case type__::Tbool:
    1913             :         {
    1914           0 :             bool tmp = bool();
    1915           0 :             (*(v__)) = tmp;
    1916           0 :             if ((!(Read((&((v__)->get_bool())), msg__, iter__)))) {
    1917           0 :                 FatalError("Error deserializing Union type");
    1918           0 :                 return false;
    1919             :             }
    1920             :             // Sentinel = 'Tbool'
    1921           0 :             if ((!((msg__)->ReadSentinel(iter__, 1958350201)))) {
    1922           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1923           0 :                 return false;
    1924             :             }
    1925           0 :             return true;
    1926             :         }
    1927             :     case type__::TgfxImageFormat:
    1928             :         {
    1929           0 :             gfxImageFormat tmp = gfxImageFormat();
    1930           0 :             (*(v__)) = tmp;
    1931           0 :             if ((!(Read((&((v__)->get_gfxImageFormat())), msg__, iter__)))) {
    1932           0 :                 FatalError("Error deserializing Union type");
    1933           0 :                 return false;
    1934             :             }
    1935             :             // Sentinel = 'TgfxImageFormat'
    1936           0 :             if ((!((msg__)->ReadSentinel(iter__, 1633523770)))) {
    1937           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1938           0 :                 return false;
    1939             :             }
    1940           0 :             return true;
    1941             :         }
    1942             :     case type__::TIntSize:
    1943             :         {
    1944           0 :             IntSize tmp = IntSize();
    1945           0 :             (*(v__)) = tmp;
    1946           0 :             if ((!(Read((&((v__)->get_IntSize())), msg__, iter__)))) {
    1947           0 :                 FatalError("Error deserializing Union type");
    1948           0 :                 return false;
    1949             :             }
    1950             :             // Sentinel = 'TIntSize'
    1951           0 :             if ((!((msg__)->ReadSentinel(iter__, 1631526060)))) {
    1952           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1953           0 :                 return false;
    1954             :             }
    1955           0 :             return true;
    1956             :         }
    1957             :     case type__::TnsCString:
    1958             :         {
    1959           0 :             nsCString tmp = nsCString();
    1960           0 :             (*(v__)) = tmp;
    1961           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
    1962           0 :                 FatalError("Error deserializing Union type");
    1963           0 :                 return false;
    1964             :             }
    1965             :             // Sentinel = 'TnsCString'
    1966           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
    1967           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1968           0 :                 return false;
    1969             :             }
    1970           0 :             return true;
    1971             :         }
    1972             :     case type__::Tint32_t:
    1973             :         {
    1974           0 :             int32_t tmp = int32_t();
    1975           0 :             (*(v__)) = tmp;
    1976           0 :             if ((!(Read((&((v__)->get_int32_t())), msg__, iter__)))) {
    1977           0 :                 FatalError("Error deserializing Union type");
    1978           0 :                 return false;
    1979             :             }
    1980             :             // Sentinel = 'Tint32_t'
    1981           0 :             if ((!((msg__)->ReadSentinel(iter__, 4219052577)))) {
    1982           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1983           0 :                 return false;
    1984             :             }
    1985           0 :             return true;
    1986             :         }
    1987             :     default:
    1988             :         {
    1989           0 :             FatalError("unknown union type");
    1990           0 :             return false;
    1991             :         }
    1992             :     }
    1993             : }
    1994             : 
    1995           0 : auto PGPUParent::Write(
    1996             :         const FeatureFailure& v__,
    1997             :         Message* msg__) -> void
    1998             : {
    1999           0 :     Write((v__).status(), msg__);
    2000             :     // Sentinel = 'status'
    2001           0 :     (msg__)->WriteSentinel(3714608576);
    2002           0 :     Write((v__).message(), msg__);
    2003             :     // Sentinel = 'message'
    2004           0 :     (msg__)->WriteSentinel(1366108954);
    2005           0 :     Write((v__).failureId(), msg__);
    2006             :     // Sentinel = 'failureId'
    2007           0 :     (msg__)->WriteSentinel(2726219852);
    2008           0 : }
    2009             : 
    2010           0 : auto PGPUParent::Read(
    2011             :         FeatureFailure* v__,
    2012             :         const Message* msg__,
    2013             :         PickleIterator* iter__) -> bool
    2014             : {
    2015           0 :     if ((!(Read((&((v__)->status())), msg__, iter__)))) {
    2016           0 :         FatalError("Error deserializing 'status' (FeatureStatus) member of 'FeatureFailure'");
    2017           0 :         return false;
    2018             :     }
    2019             :     // Sentinel = 'status'
    2020           0 :     if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
    2021           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'status' (FeatureStatus) member of 'FeatureFailure'");
    2022           0 :         return false;
    2023             :     }
    2024           0 :     if ((!(Read((&((v__)->message())), msg__, iter__)))) {
    2025           0 :         FatalError("Error deserializing 'message' (nsCString) member of 'FeatureFailure'");
    2026           0 :         return false;
    2027             :     }
    2028             :     // Sentinel = 'message'
    2029           0 :     if ((!((msg__)->ReadSentinel(iter__, 1366108954)))) {
    2030           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'message' (nsCString) member of 'FeatureFailure'");
    2031           0 :         return false;
    2032             :     }
    2033           0 :     if ((!(Read((&((v__)->failureId())), msg__, iter__)))) {
    2034           0 :         FatalError("Error deserializing 'failureId' (nsCString) member of 'FeatureFailure'");
    2035           0 :         return false;
    2036             :     }
    2037             :     // Sentinel = 'failureId'
    2038           0 :     if ((!((msg__)->ReadSentinel(iter__, 2726219852)))) {
    2039           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'failureId' (nsCString) member of 'FeatureFailure'");
    2040           0 :         return false;
    2041             :     }
    2042           0 :     return true;
    2043             : }
    2044             : 
    2045           0 : auto PGPUParent::Write(
    2046             :         const FeatureChange& v__,
    2047             :         Message* msg__) -> void
    2048             : {
    2049             :     typedef FeatureChange type__;
    2050           0 :     Write(int((v__).type()), msg__);
    2051             :     // Sentinel = 'FeatureChange'
    2052           0 :     (msg__)->WriteSentinel(2355169907);
    2053             : 
    2054           0 :     switch ((v__).type()) {
    2055             :     case type__::Tnull_t:
    2056             :         {
    2057           0 :             Write((v__).get_null_t(), msg__);
    2058             :             // Sentinel = 'Tnull_t'
    2059           0 :             (msg__)->WriteSentinel(3731137201);
    2060           0 :             return;
    2061             :         }
    2062             :     case type__::TFeatureFailure:
    2063             :         {
    2064           0 :             Write((v__).get_FeatureFailure(), msg__);
    2065             :             // Sentinel = 'TFeatureFailure'
    2066           0 :             (msg__)->WriteSentinel(2192376647);
    2067           0 :             return;
    2068             :         }
    2069             :     default:
    2070             :         {
    2071           0 :             FatalError("unknown union type");
    2072           0 :             return;
    2073             :         }
    2074             :     }
    2075             : }
    2076             : 
    2077           0 : auto PGPUParent::Read(
    2078             :         FeatureChange* v__,
    2079             :         const Message* msg__,
    2080             :         PickleIterator* iter__) -> bool
    2081             : {
    2082             :     typedef FeatureChange type__;
    2083             :     int type;
    2084           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2085           0 :         mozilla::ipc::UnionTypeReadError("FeatureChange");
    2086           0 :         return false;
    2087             :     }
    2088             :     // Sentinel = 'FeatureChange'
    2089           0 :     if ((!((msg__)->ReadSentinel(iter__, 2355169907)))) {
    2090           0 :         mozilla::ipc::SentinelReadError("FeatureChange");
    2091           0 :         return false;
    2092             :     }
    2093             : 
    2094           0 :     switch (type) {
    2095             :     case type__::Tnull_t:
    2096             :         {
    2097             :             null_t tmp = null_t();
    2098           0 :             (*(v__)) = tmp;
    2099           0 :             if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
    2100           0 :                 FatalError("Error deserializing Union type");
    2101           0 :                 return false;
    2102             :             }
    2103             :             // Sentinel = 'Tnull_t'
    2104           0 :             if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
    2105           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2106           0 :                 return false;
    2107             :             }
    2108           0 :             return true;
    2109             :         }
    2110             :     case type__::TFeatureFailure:
    2111             :         {
    2112           0 :             FeatureFailure tmp = FeatureFailure();
    2113           0 :             (*(v__)) = tmp;
    2114           0 :             if ((!(Read((&((v__)->get_FeatureFailure())), msg__, iter__)))) {
    2115           0 :                 FatalError("Error deserializing Union type");
    2116           0 :                 return false;
    2117             :             }
    2118             :             // Sentinel = 'TFeatureFailure'
    2119           0 :             if ((!((msg__)->ReadSentinel(iter__, 2192376647)))) {
    2120           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2121           0 :                 return false;
    2122             :             }
    2123           0 :             return true;
    2124             :         }
    2125             :     default:
    2126             :         {
    2127           0 :             FatalError("unknown union type");
    2128           0 :             return false;
    2129             :         }
    2130             :     }
    2131             : }
    2132             : 
    2133           0 : auto PGPUParent::Write(
    2134             :         const LayerTreeIdMapping& v__,
    2135             :         Message* msg__) -> void
    2136             : {
    2137           0 :     Write((v__).layersId(), msg__);
    2138             :     // Sentinel = 'layersId'
    2139           0 :     (msg__)->WriteSentinel(2382073245);
    2140           0 :     Write((v__).ownerId(), msg__);
    2141             :     // Sentinel = 'ownerId'
    2142           0 :     (msg__)->WriteSentinel(2360028281);
    2143           0 : }
    2144             : 
    2145           0 : auto PGPUParent::Read(
    2146             :         LayerTreeIdMapping* v__,
    2147             :         const Message* msg__,
    2148             :         PickleIterator* iter__) -> bool
    2149             : {
    2150           0 :     if ((!(Read((&((v__)->layersId())), msg__, iter__)))) {
    2151           0 :         FatalError("Error deserializing 'layersId' (uint64_t) member of 'LayerTreeIdMapping'");
    2152           0 :         return false;
    2153             :     }
    2154             :     // Sentinel = 'layersId'
    2155           0 :     if ((!((msg__)->ReadSentinel(iter__, 2382073245)))) {
    2156           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'layersId' (uint64_t) member of 'LayerTreeIdMapping'");
    2157           0 :         return false;
    2158             :     }
    2159           0 :     if ((!(Read((&((v__)->ownerId())), msg__, iter__)))) {
    2160           0 :         FatalError("Error deserializing 'ownerId' (ProcessId) member of 'LayerTreeIdMapping'");
    2161           0 :         return false;
    2162             :     }
    2163             :     // Sentinel = 'ownerId'
    2164           0 :     if ((!((msg__)->ReadSentinel(iter__, 2360028281)))) {
    2165           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ownerId' (ProcessId) member of 'LayerTreeIdMapping'");
    2166           0 :         return false;
    2167             :     }
    2168           0 :     return true;
    2169             : }
    2170             : 
    2171           0 : auto PGPUParent::Write(
    2172             :         const D3D11DeviceStatus& v__,
    2173             :         Message* msg__) -> void
    2174             : {
    2175           0 :     Write((v__).isWARP(), msg__);
    2176             :     // Sentinel = 'isWARP'
    2177           0 :     (msg__)->WriteSentinel(1265874836);
    2178           0 :     Write((v__).textureSharingWorks(), msg__);
    2179             :     // Sentinel = 'textureSharingWorks'
    2180           0 :     (msg__)->WriteSentinel(2619561312);
    2181           0 :     Write((v__).featureLevel(), msg__);
    2182             :     // Sentinel = 'featureLevel'
    2183           0 :     (msg__)->WriteSentinel(3350666840);
    2184           0 :     Write((v__).adapter(), msg__);
    2185             :     // Sentinel = 'adapter'
    2186           0 :     (msg__)->WriteSentinel(3228599530);
    2187           0 : }
    2188             : 
    2189           0 : auto PGPUParent::Read(
    2190             :         D3D11DeviceStatus* v__,
    2191             :         const Message* msg__,
    2192             :         PickleIterator* iter__) -> bool
    2193             : {
    2194           0 :     if ((!(Read((&((v__)->isWARP())), msg__, iter__)))) {
    2195           0 :         FatalError("Error deserializing 'isWARP' (bool) member of 'D3D11DeviceStatus'");
    2196           0 :         return false;
    2197             :     }
    2198             :     // Sentinel = 'isWARP'
    2199           0 :     if ((!((msg__)->ReadSentinel(iter__, 1265874836)))) {
    2200           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isWARP' (bool) member of 'D3D11DeviceStatus'");
    2201           0 :         return false;
    2202             :     }
    2203           0 :     if ((!(Read((&((v__)->textureSharingWorks())), msg__, iter__)))) {
    2204           0 :         FatalError("Error deserializing 'textureSharingWorks' (bool) member of 'D3D11DeviceStatus'");
    2205           0 :         return false;
    2206             :     }
    2207             :     // Sentinel = 'textureSharingWorks'
    2208           0 :     if ((!((msg__)->ReadSentinel(iter__, 2619561312)))) {
    2209           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'textureSharingWorks' (bool) member of 'D3D11DeviceStatus'");
    2210           0 :         return false;
    2211             :     }
    2212           0 :     if ((!(Read((&((v__)->featureLevel())), msg__, iter__)))) {
    2213           0 :         FatalError("Error deserializing 'featureLevel' (uint32_t) member of 'D3D11DeviceStatus'");
    2214           0 :         return false;
    2215             :     }
    2216             :     // Sentinel = 'featureLevel'
    2217           0 :     if ((!((msg__)->ReadSentinel(iter__, 3350666840)))) {
    2218           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'featureLevel' (uint32_t) member of 'D3D11DeviceStatus'");
    2219           0 :         return false;
    2220             :     }
    2221           0 :     if ((!(Read((&((v__)->adapter())), msg__, iter__)))) {
    2222           0 :         FatalError("Error deserializing 'adapter' (DxgiAdapterDesc) member of 'D3D11DeviceStatus'");
    2223           0 :         return false;
    2224             :     }
    2225             :     // Sentinel = 'adapter'
    2226           0 :     if ((!((msg__)->ReadSentinel(iter__, 3228599530)))) {
    2227           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'adapter' (DxgiAdapterDesc) member of 'D3D11DeviceStatus'");
    2228           0 :         return false;
    2229             :     }
    2230           0 :     return true;
    2231             : }
    2232             : 
    2233           0 : auto PGPUParent::Write(
    2234             :         const GfxPrefValue& v__,
    2235             :         Message* msg__) -> void
    2236             : {
    2237             :     typedef GfxPrefValue type__;
    2238           0 :     Write(int((v__).type()), msg__);
    2239             :     // Sentinel = 'GfxPrefValue'
    2240           0 :     (msg__)->WriteSentinel(930246921);
    2241             : 
    2242           0 :     switch ((v__).type()) {
    2243             :     case type__::Tbool:
    2244             :         {
    2245           0 :             Write((v__).get_bool(), msg__);
    2246             :             // Sentinel = 'Tbool'
    2247           0 :             (msg__)->WriteSentinel(1958350201);
    2248           0 :             return;
    2249             :         }
    2250             :     case type__::Tint32_t:
    2251             :         {
    2252           0 :             Write((v__).get_int32_t(), msg__);
    2253             :             // Sentinel = 'Tint32_t'
    2254           0 :             (msg__)->WriteSentinel(4219052577);
    2255           0 :             return;
    2256             :         }
    2257             :     case type__::Tuint32_t:
    2258             :         {
    2259           0 :             Write((v__).get_uint32_t(), msg__);
    2260             :             // Sentinel = 'Tuint32_t'
    2261           0 :             (msg__)->WriteSentinel(2137600675);
    2262           0 :             return;
    2263             :         }
    2264             :     case type__::Tfloat:
    2265             :         {
    2266           0 :             Write((v__).get_float(), msg__);
    2267             :             // Sentinel = 'Tfloat'
    2268           0 :             (msg__)->WriteSentinel(2693237468);
    2269           0 :             return;
    2270             :         }
    2271             :     case type__::TnsCString:
    2272             :         {
    2273           0 :             Write((v__).get_nsCString(), msg__);
    2274             :             // Sentinel = 'TnsCString'
    2275           0 :             (msg__)->WriteSentinel(2427411293);
    2276           0 :             return;
    2277             :         }
    2278             :     default:
    2279             :         {
    2280           0 :             FatalError("unknown union type");
    2281           0 :             return;
    2282             :         }
    2283             :     }
    2284             : }
    2285             : 
    2286           0 : auto PGPUParent::Read(
    2287             :         GfxPrefValue* v__,
    2288             :         const Message* msg__,
    2289             :         PickleIterator* iter__) -> bool
    2290             : {
    2291             :     typedef GfxPrefValue type__;
    2292             :     int type;
    2293           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2294           0 :         mozilla::ipc::UnionTypeReadError("GfxPrefValue");
    2295           0 :         return false;
    2296             :     }
    2297             :     // Sentinel = 'GfxPrefValue'
    2298           0 :     if ((!((msg__)->ReadSentinel(iter__, 930246921)))) {
    2299           0 :         mozilla::ipc::SentinelReadError("GfxPrefValue");
    2300           0 :         return false;
    2301             :     }
    2302             : 
    2303           0 :     switch (type) {
    2304             :     case type__::Tbool:
    2305             :         {
    2306           0 :             bool tmp = bool();
    2307           0 :             (*(v__)) = tmp;
    2308           0 :             if ((!(Read((&((v__)->get_bool())), msg__, iter__)))) {
    2309           0 :                 FatalError("Error deserializing Union type");
    2310           0 :                 return false;
    2311             :             }
    2312             :             // Sentinel = 'Tbool'
    2313           0 :             if ((!((msg__)->ReadSentinel(iter__, 1958350201)))) {
    2314           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2315           0 :                 return false;
    2316             :             }
    2317           0 :             return true;
    2318             :         }
    2319             :     case type__::Tint32_t:
    2320             :         {
    2321           0 :             int32_t tmp = int32_t();
    2322           0 :             (*(v__)) = tmp;
    2323           0 :             if ((!(Read((&((v__)->get_int32_t())), msg__, iter__)))) {
    2324           0 :                 FatalError("Error deserializing Union type");
    2325           0 :                 return false;
    2326             :             }
    2327             :             // Sentinel = 'Tint32_t'
    2328           0 :             if ((!((msg__)->ReadSentinel(iter__, 4219052577)))) {
    2329           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2330           0 :                 return false;
    2331             :             }
    2332           0 :             return true;
    2333             :         }
    2334             :     case type__::Tuint32_t:
    2335             :         {
    2336           0 :             uint32_t tmp = uint32_t();
    2337           0 :             (*(v__)) = tmp;
    2338           0 :             if ((!(Read((&((v__)->get_uint32_t())), msg__, iter__)))) {
    2339           0 :                 FatalError("Error deserializing Union type");
    2340           0 :                 return false;
    2341             :             }
    2342             :             // Sentinel = 'Tuint32_t'
    2343           0 :             if ((!((msg__)->ReadSentinel(iter__, 2137600675)))) {
    2344           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2345           0 :                 return false;
    2346             :             }
    2347           0 :             return true;
    2348             :         }
    2349             :     case type__::Tfloat:
    2350             :         {
    2351           0 :             float tmp = float();
    2352           0 :             (*(v__)) = tmp;
    2353           0 :             if ((!(Read((&((v__)->get_float())), msg__, iter__)))) {
    2354           0 :                 FatalError("Error deserializing Union type");
    2355           0 :                 return false;
    2356             :             }
    2357             :             // Sentinel = 'Tfloat'
    2358           0 :             if ((!((msg__)->ReadSentinel(iter__, 2693237468)))) {
    2359           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2360           0 :                 return false;
    2361             :             }
    2362           0 :             return true;
    2363             :         }
    2364             :     case type__::TnsCString:
    2365             :         {
    2366           0 :             nsCString tmp = nsCString();
    2367           0 :             (*(v__)) = tmp;
    2368           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
    2369           0 :                 FatalError("Error deserializing Union type");
    2370           0 :                 return false;
    2371             :             }
    2372             :             // Sentinel = 'TnsCString'
    2373           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
    2374           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2375           0 :                 return false;
    2376             :             }
    2377           0 :             return true;
    2378             :         }
    2379             :     default:
    2380             :         {
    2381           0 :             FatalError("unknown union type");
    2382           0 :             return false;
    2383             :         }
    2384             :     }
    2385             : }
    2386             : 
    2387             : 
    2388             : 
    2389             : } // namespace gfx
    2390             : } // namespace mozilla

Generated by: LCOV version 1.13