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

Generated by: LCOV version 1.13