LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PGMPVideoEncoderChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 513 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 31 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/gmp/PGMPVideoEncoderChild.h"
       8             : 
       9             : #include "mozilla/gmp/PGMPContentChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace gmp {
      16             : 
      17             : 
      18           0 : auto PGMPVideoEncoderChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      19             : {
      20           0 : }
      21             : 
      22           0 : MOZ_IMPLICIT PGMPVideoEncoderChild::PGMPVideoEncoderChild() :
      23             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      24           0 :     mState(PGMPVideoEncoder::__Dead)
      25             : {
      26           0 :     MOZ_COUNT_CTOR(PGMPVideoEncoderChild);
      27           0 : }
      28             : 
      29           0 : PGMPVideoEncoderChild::~PGMPVideoEncoderChild()
      30             : {
      31           0 :     MOZ_COUNT_DTOR(PGMPVideoEncoderChild);
      32           0 : }
      33             : 
      34           0 : auto PGMPVideoEncoderChild::Manager() const -> PGMPContentChild*
      35             : {
      36           0 :     return static_cast<PGMPContentChild*>(IProtocol::Manager());
      37             : }
      38             : 
      39           0 : auto PGMPVideoEncoderChild::Send__delete__(PGMPVideoEncoderChild* actor) -> bool
      40             : {
      41           0 :     if ((!(actor))) {
      42           0 :         return false;
      43             :     }
      44             : 
      45           0 :     IPC::Message* msg__ = PGMPVideoEncoder::Msg___delete__((actor)->Id());
      46             : 
      47           0 :     (actor)->Write(actor, msg__, false);
      48             :     // Sentinel = 'actor'
      49           0 :     (msg__)->WriteSentinel(875202478);
      50             : 
      51             : 
      52             : 
      53           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
      54           0 :         mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      55             :     }
      56           0 :     AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg___delete__", OTHER);
      57           0 :     PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg___delete____ID, (&((actor)->mState)));
      58             : 
      59           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      60             : 
      61           0 :     IProtocol* mgr = (actor)->Manager();
      62           0 :     (actor)->DestroySubtree(Deletion);
      63           0 :     (actor)->DeallocSubtree();
      64           0 :     (mgr)->RemoveManagee(PGMPVideoEncoderMsgStart, actor);
      65           0 :     return sendok__;
      66             : }
      67             : 
      68           0 : auto PGMPVideoEncoderChild::SendEncoded(
      69             :         const GMPVideoEncodedFrameData& aEncodedFrame,
      70             :         const nsTArray<uint8_t>& aCodecSpecificInfo) -> bool
      71             : {
      72           0 :     IPC::Message* msg__ = PGMPVideoEncoder::Msg_Encoded(Id());
      73             : 
      74           0 :     Write(aEncodedFrame, msg__);
      75             :     // Sentinel = 'aEncodedFrame'
      76           0 :     (msg__)->WriteSentinel(3455883009);
      77           0 :     Write(aCodecSpecificInfo, msg__);
      78             :     // Sentinel = 'aCodecSpecificInfo'
      79           0 :     (msg__)->WriteSentinel(742576219);
      80             : 
      81             : 
      82             : 
      83             : 
      84           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
      85           0 :         mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      86             :     }
      87           0 :     AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_Encoded", OTHER);
      88           0 :     PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_Encoded__ID, (&(mState)));
      89             : 
      90           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      91           0 :     return sendok__;
      92             : }
      93             : 
      94           0 : auto PGMPVideoEncoderChild::SendError(const GMPErr& aErr) -> bool
      95             : {
      96           0 :     IPC::Message* msg__ = PGMPVideoEncoder::Msg_Error(Id());
      97             : 
      98           0 :     Write(aErr, msg__);
      99             :     // Sentinel = 'aErr'
     100           0 :     (msg__)->WriteSentinel(540683382);
     101             : 
     102             : 
     103             : 
     104             : 
     105           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     106           0 :         mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     107             :     }
     108           0 :     AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_Error", OTHER);
     109           0 :     PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_Error__ID, (&(mState)));
     110             : 
     111           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     112           0 :     return sendok__;
     113             : }
     114             : 
     115           0 : auto PGMPVideoEncoderChild::SendShutdown() -> bool
     116             : {
     117           0 :     IPC::Message* msg__ = PGMPVideoEncoder::Msg_Shutdown(Id());
     118             : 
     119             : 
     120             : 
     121             : 
     122             : 
     123           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     124           0 :         mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     125             :     }
     126           0 :     AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_Shutdown", OTHER);
     127           0 :     PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_Shutdown__ID, (&(mState)));
     128             : 
     129           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     130           0 :     return sendok__;
     131             : }
     132             : 
     133           0 : auto PGMPVideoEncoderChild::SendParentShmemForPool(Shmem& aFrameBuffer) -> bool
     134             : {
     135           0 :     IPC::Message* msg__ = PGMPVideoEncoder::Msg_ParentShmemForPool(Id());
     136             : 
     137           0 :     Write(aFrameBuffer, msg__);
     138             :     // Sentinel = 'aFrameBuffer'
     139           0 :     (msg__)->WriteSentinel(3888831322);
     140             : 
     141             : 
     142             : 
     143             : 
     144           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     145           0 :         mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     146             :     }
     147           0 :     AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_ParentShmemForPool", OTHER);
     148           0 :     PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_ParentShmemForPool__ID, (&(mState)));
     149             : 
     150           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     151           0 :     return sendok__;
     152             : }
     153             : 
     154           0 : auto PGMPVideoEncoderChild::CallNeedShmem(
     155             :         const uint32_t& aEncodedBufferSize,
     156             :         Shmem* aMem) -> bool
     157             : {
     158           0 :     IPC::Message* msg__ = PGMPVideoEncoder::Msg_NeedShmem(Id());
     159             : 
     160           0 :     Write(aEncodedBufferSize, msg__);
     161             :     // Sentinel = 'aEncodedBufferSize'
     162           0 :     (msg__)->WriteSentinel(2299884566);
     163             : 
     164           0 :     (msg__)->set_interrupt();
     165             : 
     166             : 
     167           0 :     Message reply__;
     168             : 
     169           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     170           0 :         mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     171             :     }
     172           0 :     AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_NeedShmem", OTHER);
     173           0 :     PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_NeedShmem__ID, (&(mState)));
     174             : 
     175             :     bool sendok__;
     176             :     {
     177             :         AutoProfilerTracing syncIPCTracer(
     178             :                 "IPC",
     179           0 :                 "PGMPVideoEncoder::Msg_NeedShmem");
     180           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     181             :     }
     182           0 :     if ((!(sendok__))) {
     183           0 :         return false;
     184             :     }
     185             : 
     186           0 :     if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     187           0 :         mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     188             :     }
     189             : 
     190           0 :     PickleIterator iter__(reply__);
     191             : 
     192           0 :     if ((!(Read(aMem, (&(reply__)), (&(iter__)))))) {
     193           0 :         FatalError("Error deserializing 'Shmem'");
     194           0 :         return false;
     195             :     }
     196             :     // Sentinel = 'aMem'
     197           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3574578916)))) {
     198           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
     199           0 :         return false;
     200             :     }
     201           0 :     (reply__).EndRead(iter__, (reply__).type());
     202             : 
     203           0 :     return true;
     204             : }
     205             : 
     206           0 : auto PGMPVideoEncoderChild::RemoveManagee(
     207             :         int32_t aProtocolId,
     208             :         ProtocolBase* aListener) -> void
     209             : {
     210           0 :     FatalError("unreached");
     211           0 :     return;
     212             : }
     213             : 
     214           0 : auto PGMPVideoEncoderChild::OnMessageReceived(const Message& msg__) -> PGMPVideoEncoderChild::Result
     215             : {
     216           0 :     switch ((msg__).type()) {
     217             :     case PGMPVideoEncoder::Msg_InitEncode__ID:
     218             :         {
     219           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     220           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     221             :             }
     222           0 :             AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_InitEncode", OTHER);
     223             : 
     224           0 :             PickleIterator iter__(msg__);
     225             :             GMPVideoCodec aCodecSettings;
     226           0 :             nsTArray<uint8_t> aCodecSpecific;
     227             :             int32_t aNumberOfCores;
     228             :             uint32_t aMaxPayloadSize;
     229             : 
     230           0 :             if ((!(Read((&(aCodecSettings)), (&(msg__)), (&(iter__)))))) {
     231           0 :                 FatalError("Error deserializing 'GMPVideoCodec'");
     232           0 :                 return MsgValueError;
     233             :             }
     234             :             // Sentinel = 'aCodecSettings'
     235           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 394896860)))) {
     236           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'GMPVideoCodec'");
     237           0 :                 return MsgValueError;
     238             :             }
     239           0 :             if ((!(Read((&(aCodecSpecific)), (&(msg__)), (&(iter__)))))) {
     240           0 :                 FatalError("Error deserializing 'nsTArray'");
     241           0 :                 return MsgValueError;
     242             :             }
     243             :             // Sentinel = 'aCodecSpecific'
     244           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3773952059)))) {
     245           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     246           0 :                 return MsgValueError;
     247             :             }
     248           0 :             if ((!(Read((&(aNumberOfCores)), (&(msg__)), (&(iter__)))))) {
     249           0 :                 FatalError("Error deserializing 'int32_t'");
     250           0 :                 return MsgValueError;
     251             :             }
     252             :             // Sentinel = 'aNumberOfCores'
     253           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3247212389)))) {
     254           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
     255           0 :                 return MsgValueError;
     256             :             }
     257           0 :             if ((!(Read((&(aMaxPayloadSize)), (&(msg__)), (&(iter__)))))) {
     258           0 :                 FatalError("Error deserializing 'uint32_t'");
     259           0 :                 return MsgValueError;
     260             :             }
     261             :             // Sentinel = 'aMaxPayloadSize'
     262           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4078750881)))) {
     263           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     264           0 :                 return MsgValueError;
     265             :             }
     266           0 :             (msg__).EndRead(iter__, (msg__).type());
     267           0 :             PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_InitEncode__ID, (&(mState)));
     268           0 :             if ((!(RecvInitEncode(mozilla::Move(aCodecSettings), mozilla::Move(aCodecSpecific), mozilla::Move(aNumberOfCores), mozilla::Move(aMaxPayloadSize))))) {
     269           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     270             :                 // Error handled in mozilla::ipc::IPCResult
     271           0 :                 return MsgProcessingError;
     272             :             }
     273             : 
     274           0 :             return MsgProcessed;
     275             :         }
     276             :     case PGMPVideoEncoder::Msg_Encode__ID:
     277             :         {
     278           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     279           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     280             :             }
     281           0 :             AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_Encode", OTHER);
     282             : 
     283           0 :             PickleIterator iter__(msg__);
     284           0 :             GMPVideoi420FrameData aInputFrame;
     285           0 :             nsTArray<uint8_t> aCodecSpecificInfo;
     286           0 :             nsTArray<GMPVideoFrameType> aFrameTypes;
     287             : 
     288           0 :             if ((!(Read((&(aInputFrame)), (&(msg__)), (&(iter__)))))) {
     289           0 :                 FatalError("Error deserializing 'GMPVideoi420FrameData'");
     290           0 :                 return MsgValueError;
     291             :             }
     292             :             // Sentinel = 'aInputFrame'
     293           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3664588317)))) {
     294           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'GMPVideoi420FrameData'");
     295           0 :                 return MsgValueError;
     296             :             }
     297           0 :             if ((!(Read((&(aCodecSpecificInfo)), (&(msg__)), (&(iter__)))))) {
     298           0 :                 FatalError("Error deserializing 'nsTArray'");
     299           0 :                 return MsgValueError;
     300             :             }
     301             :             // Sentinel = 'aCodecSpecificInfo'
     302           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 742576219)))) {
     303           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     304           0 :                 return MsgValueError;
     305             :             }
     306           0 :             if ((!(Read((&(aFrameTypes)), (&(msg__)), (&(iter__)))))) {
     307           0 :                 FatalError("Error deserializing 'nsTArray'");
     308           0 :                 return MsgValueError;
     309             :             }
     310             :             // Sentinel = 'aFrameTypes'
     311           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2159018888)))) {
     312           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     313           0 :                 return MsgValueError;
     314             :             }
     315           0 :             (msg__).EndRead(iter__, (msg__).type());
     316           0 :             PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_Encode__ID, (&(mState)));
     317           0 :             if ((!(RecvEncode(mozilla::Move(aInputFrame), mozilla::Move(aCodecSpecificInfo), mozilla::Move(aFrameTypes))))) {
     318           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     319             :                 // Error handled in mozilla::ipc::IPCResult
     320           0 :                 return MsgProcessingError;
     321             :             }
     322             : 
     323           0 :             return MsgProcessed;
     324             :         }
     325             :     case PGMPVideoEncoder::Msg_SetChannelParameters__ID:
     326             :         {
     327           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     328           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     329             :             }
     330           0 :             AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_SetChannelParameters", OTHER);
     331             : 
     332           0 :             PickleIterator iter__(msg__);
     333             :             uint32_t aPacketLoss;
     334             :             uint32_t aRTT;
     335             : 
     336           0 :             if ((!(Read((&(aPacketLoss)), (&(msg__)), (&(iter__)))))) {
     337           0 :                 FatalError("Error deserializing 'uint32_t'");
     338           0 :                 return MsgValueError;
     339             :             }
     340             :             // Sentinel = 'aPacketLoss'
     341           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 767954619)))) {
     342           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     343           0 :                 return MsgValueError;
     344             :             }
     345           0 :             if ((!(Read((&(aRTT)), (&(msg__)), (&(iter__)))))) {
     346           0 :                 FatalError("Error deserializing 'uint32_t'");
     347           0 :                 return MsgValueError;
     348             :             }
     349             :             // Sentinel = 'aRTT'
     350           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1233438341)))) {
     351           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     352           0 :                 return MsgValueError;
     353             :             }
     354           0 :             (msg__).EndRead(iter__, (msg__).type());
     355           0 :             PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_SetChannelParameters__ID, (&(mState)));
     356           0 :             if ((!(RecvSetChannelParameters(mozilla::Move(aPacketLoss), mozilla::Move(aRTT))))) {
     357           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     358             :                 // Error handled in mozilla::ipc::IPCResult
     359           0 :                 return MsgProcessingError;
     360             :             }
     361             : 
     362           0 :             return MsgProcessed;
     363             :         }
     364             :     case PGMPVideoEncoder::Msg_SetRates__ID:
     365             :         {
     366           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     367           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     368             :             }
     369           0 :             AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_SetRates", OTHER);
     370             : 
     371           0 :             PickleIterator iter__(msg__);
     372             :             uint32_t aNewBitRate;
     373             :             uint32_t aFrameRate;
     374             : 
     375           0 :             if ((!(Read((&(aNewBitRate)), (&(msg__)), (&(iter__)))))) {
     376           0 :                 FatalError("Error deserializing 'uint32_t'");
     377           0 :                 return MsgValueError;
     378             :             }
     379             :             // Sentinel = 'aNewBitRate'
     380           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1554340975)))) {
     381           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     382           0 :                 return MsgValueError;
     383             :             }
     384           0 :             if ((!(Read((&(aFrameRate)), (&(msg__)), (&(iter__)))))) {
     385           0 :                 FatalError("Error deserializing 'uint32_t'");
     386           0 :                 return MsgValueError;
     387             :             }
     388             :             // Sentinel = 'aFrameRate'
     389           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 770773236)))) {
     390           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     391           0 :                 return MsgValueError;
     392             :             }
     393           0 :             (msg__).EndRead(iter__, (msg__).type());
     394           0 :             PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_SetRates__ID, (&(mState)));
     395           0 :             if ((!(RecvSetRates(mozilla::Move(aNewBitRate), mozilla::Move(aFrameRate))))) {
     396           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     397             :                 // Error handled in mozilla::ipc::IPCResult
     398           0 :                 return MsgProcessingError;
     399             :             }
     400             : 
     401           0 :             return MsgProcessed;
     402             :         }
     403             :     case PGMPVideoEncoder::Msg_SetPeriodicKeyFrames__ID:
     404             :         {
     405           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     406           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     407             :             }
     408           0 :             AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_SetPeriodicKeyFrames", OTHER);
     409             : 
     410           0 :             PickleIterator iter__(msg__);
     411             :             bool aEnable;
     412             : 
     413           0 :             if ((!(Read((&(aEnable)), (&(msg__)), (&(iter__)))))) {
     414           0 :                 FatalError("Error deserializing 'bool'");
     415           0 :                 return MsgValueError;
     416             :             }
     417             :             // Sentinel = 'aEnable'
     418           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 163837555)))) {
     419           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     420           0 :                 return MsgValueError;
     421             :             }
     422           0 :             (msg__).EndRead(iter__, (msg__).type());
     423           0 :             PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_SetPeriodicKeyFrames__ID, (&(mState)));
     424           0 :             if ((!(RecvSetPeriodicKeyFrames(mozilla::Move(aEnable))))) {
     425           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     426             :                 // Error handled in mozilla::ipc::IPCResult
     427           0 :                 return MsgProcessingError;
     428             :             }
     429             : 
     430           0 :             return MsgProcessed;
     431             :         }
     432             :     case PGMPVideoEncoder::Msg_EncodingComplete__ID:
     433             :         {
     434           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     435           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     436             :             }
     437           0 :             AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_EncodingComplete", OTHER);
     438             : 
     439           0 :             PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_EncodingComplete__ID, (&(mState)));
     440           0 :             if ((!(RecvEncodingComplete()))) {
     441           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     442             :                 // Error handled in mozilla::ipc::IPCResult
     443           0 :                 return MsgProcessingError;
     444             :             }
     445             : 
     446           0 :             return MsgProcessed;
     447             :         }
     448             :     case PGMPVideoEncoder::Msg_ChildShmemForPool__ID:
     449             :         {
     450           0 :             if (mozilla::ipc::LoggingEnabledFor("PGMPVideoEncoderChild")) {
     451           0 :                 mozilla::ipc::LogMessageForProtocol("PGMPVideoEncoderChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     452             :             }
     453           0 :             AUTO_PROFILER_LABEL("PGMPVideoEncoder::Msg_ChildShmemForPool", OTHER);
     454             : 
     455           0 :             PickleIterator iter__(msg__);
     456           0 :             Shmem aEncodedBuffer;
     457             : 
     458           0 :             if ((!(Read((&(aEncodedBuffer)), (&(msg__)), (&(iter__)))))) {
     459           0 :                 FatalError("Error deserializing 'Shmem'");
     460           0 :                 return MsgValueError;
     461             :             }
     462             :             // Sentinel = 'aEncodedBuffer'
     463           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3335299401)))) {
     464           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
     465           0 :                 return MsgValueError;
     466             :             }
     467           0 :             (msg__).EndRead(iter__, (msg__).type());
     468           0 :             PGMPVideoEncoder::Transition(PGMPVideoEncoder::Msg_ChildShmemForPool__ID, (&(mState)));
     469           0 :             if ((!(RecvChildShmemForPool(mozilla::Move(aEncodedBuffer))))) {
     470           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     471             :                 // Error handled in mozilla::ipc::IPCResult
     472           0 :                 return MsgProcessingError;
     473             :             }
     474             : 
     475           0 :             return MsgProcessed;
     476             :         }
     477             :     case PGMPVideoEncoder::Reply___delete____ID:
     478             :         {
     479           0 :             return MsgProcessed;
     480             :         }
     481             :     default:
     482             :         {
     483           0 :             return MsgNotKnown;
     484             :         }
     485             :     }
     486             : }
     487             : 
     488           0 : auto PGMPVideoEncoderChild::OnMessageReceived(
     489             :         const Message& msg__,
     490             :         Message*& reply__) -> PGMPVideoEncoderChild::Result
     491             : {
     492           0 :     return MsgNotKnown;
     493             : }
     494             : 
     495           0 : auto PGMPVideoEncoderChild::OnCallReceived(
     496             :         const Message& msg__,
     497             :         Message*& reply__) -> PGMPVideoEncoderChild::Result
     498             : {
     499           0 :     return MsgNotKnown;
     500             : }
     501             : 
     502           0 : auto PGMPVideoEncoderChild::GetProtocolTypeId() -> int32_t
     503             : {
     504           0 :     return PGMPVideoEncoderMsgStart;
     505             : }
     506             : 
     507           0 : auto PGMPVideoEncoderChild::ProtocolName() const -> const char*
     508             : {
     509           0 :     return "PGMPVideoEncoderChild";
     510             : }
     511             : 
     512           0 : auto PGMPVideoEncoderChild::DestroySubtree(ActorDestroyReason why) -> void
     513             : {
     514             :     // Unregister from our manager.
     515           0 :     Unregister(Id());
     516             : 
     517             :     // Reject owning pending promises.
     518           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     519             : 
     520             :     // Finally, destroy "us".
     521           0 :     ActorDestroy(why);
     522           0 : }
     523             : 
     524           0 : auto PGMPVideoEncoderChild::DeallocSubtree() -> void
     525             : {
     526           0 : }
     527             : 
     528           0 : auto PGMPVideoEncoderChild::Write(
     529             :         const GMPDecryptionData& v__,
     530             :         Message* msg__) -> void
     531             : {
     532           0 :     Write((v__).mKeyId(), msg__);
     533             :     // Sentinel = 'mKeyId'
     534           0 :     (msg__)->WriteSentinel(3981028119);
     535           0 :     Write((v__).mIV(), msg__);
     536             :     // Sentinel = 'mIV'
     537           0 :     (msg__)->WriteSentinel(2012943167);
     538           0 :     Write((v__).mClearBytes(), msg__);
     539             :     // Sentinel = 'mClearBytes'
     540           0 :     (msg__)->WriteSentinel(2207723306);
     541           0 :     Write((v__).mCipherBytes(), msg__);
     542             :     // Sentinel = 'mCipherBytes'
     543           0 :     (msg__)->WriteSentinel(2558919233);
     544           0 :     Write((v__).mSessionIds(), msg__);
     545             :     // Sentinel = 'mSessionIds'
     546           0 :     (msg__)->WriteSentinel(2015252892);
     547           0 : }
     548             : 
     549           0 : auto PGMPVideoEncoderChild::Read(
     550             :         GMPDecryptionData* v__,
     551             :         const Message* msg__,
     552             :         PickleIterator* iter__) -> bool
     553             : {
     554           0 :     if ((!(Read((&((v__)->mKeyId())), msg__, iter__)))) {
     555           0 :         FatalError("Error deserializing 'mKeyId' (uint8_t[]) member of 'GMPDecryptionData'");
     556           0 :         return false;
     557             :     }
     558             :     // Sentinel = 'mKeyId'
     559           0 :     if ((!((msg__)->ReadSentinel(iter__, 3981028119)))) {
     560           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mKeyId' (uint8_t[]) member of 'GMPDecryptionData'");
     561           0 :         return false;
     562             :     }
     563           0 :     if ((!(Read((&((v__)->mIV())), msg__, iter__)))) {
     564           0 :         FatalError("Error deserializing 'mIV' (uint8_t[]) member of 'GMPDecryptionData'");
     565           0 :         return false;
     566             :     }
     567             :     // Sentinel = 'mIV'
     568           0 :     if ((!((msg__)->ReadSentinel(iter__, 2012943167)))) {
     569           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mIV' (uint8_t[]) member of 'GMPDecryptionData'");
     570           0 :         return false;
     571             :     }
     572           0 :     if ((!(Read((&((v__)->mClearBytes())), msg__, iter__)))) {
     573           0 :         FatalError("Error deserializing 'mClearBytes' (uint16_t[]) member of 'GMPDecryptionData'");
     574           0 :         return false;
     575             :     }
     576             :     // Sentinel = 'mClearBytes'
     577           0 :     if ((!((msg__)->ReadSentinel(iter__, 2207723306)))) {
     578           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mClearBytes' (uint16_t[]) member of 'GMPDecryptionData'");
     579           0 :         return false;
     580             :     }
     581           0 :     if ((!(Read((&((v__)->mCipherBytes())), msg__, iter__)))) {
     582           0 :         FatalError("Error deserializing 'mCipherBytes' (uint32_t[]) member of 'GMPDecryptionData'");
     583           0 :         return false;
     584             :     }
     585             :     // Sentinel = 'mCipherBytes'
     586           0 :     if ((!((msg__)->ReadSentinel(iter__, 2558919233)))) {
     587           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mCipherBytes' (uint32_t[]) member of 'GMPDecryptionData'");
     588           0 :         return false;
     589             :     }
     590           0 :     if ((!(Read((&((v__)->mSessionIds())), msg__, iter__)))) {
     591           0 :         FatalError("Error deserializing 'mSessionIds' (nsCString[]) member of 'GMPDecryptionData'");
     592           0 :         return false;
     593             :     }
     594             :     // Sentinel = 'mSessionIds'
     595           0 :     if ((!((msg__)->ReadSentinel(iter__, 2015252892)))) {
     596           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mSessionIds' (nsCString[]) member of 'GMPDecryptionData'");
     597           0 :         return false;
     598             :     }
     599           0 :     return true;
     600             : }
     601             : 
     602           0 : auto PGMPVideoEncoderChild::Write(
     603             :         Shmem& v__,
     604             :         Message* msg__) -> void
     605             : {
     606           0 :     IPC::WriteParam(msg__, v__);
     607           0 :     (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
     608           0 :     (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
     609           0 : }
     610             : 
     611           0 : auto PGMPVideoEncoderChild::Read(
     612             :         Shmem* v__,
     613             :         const Message* msg__,
     614             :         PickleIterator* iter__) -> bool
     615             : {
     616           0 :     Shmem tmp;
     617           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
     618           0 :         return false;
     619             :     }
     620             : 
     621           0 :     Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
     622           0 :     Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
     623           0 :     if (rawmem) {
     624           0 :         (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
     625           0 :         return true;
     626             :     }
     627           0 :     (*(v__)) = Shmem();
     628           0 :     return true;
     629             : }
     630             : 
     631           0 : auto PGMPVideoEncoderChild::Write(
     632             :         const GMPVideoi420FrameData& v__,
     633             :         Message* msg__) -> void
     634             : {
     635           0 :     Write((v__).mYPlane(), msg__);
     636             :     // Sentinel = 'mYPlane'
     637           0 :     (msg__)->WriteSentinel(404518467);
     638           0 :     Write((v__).mUPlane(), msg__);
     639             :     // Sentinel = 'mUPlane'
     640           0 :     (msg__)->WriteSentinel(3678319999);
     641           0 :     Write((v__).mVPlane(), msg__);
     642             :     // Sentinel = 'mVPlane'
     643           0 :     (msg__)->WriteSentinel(2699831758);
     644           0 :     Write((v__).mWidth(), msg__);
     645             :     // Sentinel = 'mWidth'
     646           0 :     (msg__)->WriteSentinel(2935937477);
     647           0 :     Write((v__).mHeight(), msg__);
     648             :     // Sentinel = 'mHeight'
     649           0 :     (msg__)->WriteSentinel(1396193839);
     650           0 :     Write((v__).mTimestamp(), msg__);
     651             :     // Sentinel = 'mTimestamp'
     652           0 :     (msg__)->WriteSentinel(2107530829);
     653           0 :     Write((v__).mDuration(), msg__);
     654             :     // Sentinel = 'mDuration'
     655           0 :     (msg__)->WriteSentinel(3773650888);
     656           0 : }
     657             : 
     658           0 : auto PGMPVideoEncoderChild::Read(
     659             :         GMPVideoi420FrameData* v__,
     660             :         const Message* msg__,
     661             :         PickleIterator* iter__) -> bool
     662             : {
     663           0 :     if ((!(Read((&((v__)->mYPlane())), msg__, iter__)))) {
     664           0 :         FatalError("Error deserializing 'mYPlane' (GMPPlaneData) member of 'GMPVideoi420FrameData'");
     665           0 :         return false;
     666             :     }
     667             :     // Sentinel = 'mYPlane'
     668           0 :     if ((!((msg__)->ReadSentinel(iter__, 404518467)))) {
     669           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mYPlane' (GMPPlaneData) member of 'GMPVideoi420FrameData'");
     670           0 :         return false;
     671             :     }
     672           0 :     if ((!(Read((&((v__)->mUPlane())), msg__, iter__)))) {
     673           0 :         FatalError("Error deserializing 'mUPlane' (GMPPlaneData) member of 'GMPVideoi420FrameData'");
     674           0 :         return false;
     675             :     }
     676             :     // Sentinel = 'mUPlane'
     677           0 :     if ((!((msg__)->ReadSentinel(iter__, 3678319999)))) {
     678           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mUPlane' (GMPPlaneData) member of 'GMPVideoi420FrameData'");
     679           0 :         return false;
     680             :     }
     681           0 :     if ((!(Read((&((v__)->mVPlane())), msg__, iter__)))) {
     682           0 :         FatalError("Error deserializing 'mVPlane' (GMPPlaneData) member of 'GMPVideoi420FrameData'");
     683           0 :         return false;
     684             :     }
     685             :     // Sentinel = 'mVPlane'
     686           0 :     if ((!((msg__)->ReadSentinel(iter__, 2699831758)))) {
     687           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mVPlane' (GMPPlaneData) member of 'GMPVideoi420FrameData'");
     688           0 :         return false;
     689             :     }
     690           0 :     if ((!(Read((&((v__)->mWidth())), msg__, iter__)))) {
     691           0 :         FatalError("Error deserializing 'mWidth' (int32_t) member of 'GMPVideoi420FrameData'");
     692           0 :         return false;
     693             :     }
     694             :     // Sentinel = 'mWidth'
     695           0 :     if ((!((msg__)->ReadSentinel(iter__, 2935937477)))) {
     696           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mWidth' (int32_t) member of 'GMPVideoi420FrameData'");
     697           0 :         return false;
     698             :     }
     699           0 :     if ((!(Read((&((v__)->mHeight())), msg__, iter__)))) {
     700           0 :         FatalError("Error deserializing 'mHeight' (int32_t) member of 'GMPVideoi420FrameData'");
     701           0 :         return false;
     702             :     }
     703             :     // Sentinel = 'mHeight'
     704           0 :     if ((!((msg__)->ReadSentinel(iter__, 1396193839)))) {
     705           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mHeight' (int32_t) member of 'GMPVideoi420FrameData'");
     706           0 :         return false;
     707             :     }
     708           0 :     if ((!(Read((&((v__)->mTimestamp())), msg__, iter__)))) {
     709           0 :         FatalError("Error deserializing 'mTimestamp' (uint64_t) member of 'GMPVideoi420FrameData'");
     710           0 :         return false;
     711             :     }
     712             :     // Sentinel = 'mTimestamp'
     713           0 :     if ((!((msg__)->ReadSentinel(iter__, 2107530829)))) {
     714           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mTimestamp' (uint64_t) member of 'GMPVideoi420FrameData'");
     715           0 :         return false;
     716             :     }
     717           0 :     if ((!(Read((&((v__)->mDuration())), msg__, iter__)))) {
     718           0 :         FatalError("Error deserializing 'mDuration' (uint64_t) member of 'GMPVideoi420FrameData'");
     719           0 :         return false;
     720             :     }
     721             :     // Sentinel = 'mDuration'
     722           0 :     if ((!((msg__)->ReadSentinel(iter__, 3773650888)))) {
     723           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mDuration' (uint64_t) member of 'GMPVideoi420FrameData'");
     724           0 :         return false;
     725             :     }
     726           0 :     return true;
     727             : }
     728             : 
     729           0 : auto PGMPVideoEncoderChild::Write(
     730             :         const PGMPVideoEncoderChild* v__,
     731             :         Message* msg__,
     732             :         bool nullable__) -> void
     733             : {
     734             :     int32_t id;
     735           0 :     if ((!(v__))) {
     736           0 :         if ((!(nullable__))) {
     737           0 :             FatalError("NULL actor value passed to non-nullable param");
     738             :         }
     739           0 :         id = 0;
     740             :     }
     741             :     else {
     742           0 :         id = (v__)->Id();
     743           0 :         if ((1) == (id)) {
     744           0 :             FatalError("actor has been |delete|d");
     745             :         }
     746             :     }
     747             : 
     748           0 :     Write(id, msg__);
     749           0 : }
     750             : 
     751           0 : auto PGMPVideoEncoderChild::Read(
     752             :         PGMPVideoEncoderChild** v__,
     753             :         const Message* msg__,
     754             :         PickleIterator* iter__,
     755             :         bool nullable__) -> bool
     756             : {
     757           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PGMPVideoEncoder", PGMPVideoEncoderMsgStart);
     758           0 :     if ((actor).isNothing()) {
     759           0 :         return false;
     760             :     }
     761             : 
     762           0 :     (*(v__)) = static_cast<PGMPVideoEncoderChild*>((actor).value());
     763           0 :     return true;
     764             : }
     765             : 
     766           0 : auto PGMPVideoEncoderChild::Write(
     767             :         const GMPVideoEncodedFrameData& v__,
     768             :         Message* msg__) -> void
     769             : {
     770           0 :     Write((v__).mEncodedWidth(), msg__);
     771             :     // Sentinel = 'mEncodedWidth'
     772           0 :     (msg__)->WriteSentinel(1861402050);
     773           0 :     Write((v__).mEncodedHeight(), msg__);
     774             :     // Sentinel = 'mEncodedHeight'
     775           0 :     (msg__)->WriteSentinel(244605666);
     776           0 :     Write((v__).mTimestamp(), msg__);
     777             :     // Sentinel = 'mTimestamp'
     778           0 :     (msg__)->WriteSentinel(2107530829);
     779           0 :     Write((v__).mDuration(), msg__);
     780             :     // Sentinel = 'mDuration'
     781           0 :     (msg__)->WriteSentinel(3773650888);
     782           0 :     Write((v__).mFrameType(), msg__);
     783             :     // Sentinel = 'mFrameType'
     784           0 :     (msg__)->WriteSentinel(3891971702);
     785           0 :     Write((v__).mSize(), msg__);
     786             :     // Sentinel = 'mSize'
     787           0 :     (msg__)->WriteSentinel(2022816943);
     788           0 :     Write((v__).mBufferType(), msg__);
     789             :     // Sentinel = 'mBufferType'
     790           0 :     (msg__)->WriteSentinel(1911156444);
     791           0 :     Write((v__).mBuffer(), msg__);
     792             :     // Sentinel = 'mBuffer'
     793           0 :     (msg__)->WriteSentinel(3436723048);
     794           0 :     Write((v__).mCompleteFrame(), msg__);
     795             :     // Sentinel = 'mCompleteFrame'
     796           0 :     (msg__)->WriteSentinel(2960948789);
     797           0 :     Write((v__).mDecryptionData(), msg__);
     798             :     // Sentinel = 'mDecryptionData'
     799           0 :     (msg__)->WriteSentinel(3882545301);
     800           0 : }
     801             : 
     802           0 : auto PGMPVideoEncoderChild::Read(
     803             :         GMPVideoEncodedFrameData* v__,
     804             :         const Message* msg__,
     805             :         PickleIterator* iter__) -> bool
     806             : {
     807           0 :     if ((!(Read((&((v__)->mEncodedWidth())), msg__, iter__)))) {
     808           0 :         FatalError("Error deserializing 'mEncodedWidth' (uint32_t) member of 'GMPVideoEncodedFrameData'");
     809           0 :         return false;
     810             :     }
     811             :     // Sentinel = 'mEncodedWidth'
     812           0 :     if ((!((msg__)->ReadSentinel(iter__, 1861402050)))) {
     813           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mEncodedWidth' (uint32_t) member of 'GMPVideoEncodedFrameData'");
     814           0 :         return false;
     815             :     }
     816           0 :     if ((!(Read((&((v__)->mEncodedHeight())), msg__, iter__)))) {
     817           0 :         FatalError("Error deserializing 'mEncodedHeight' (uint32_t) member of 'GMPVideoEncodedFrameData'");
     818           0 :         return false;
     819             :     }
     820             :     // Sentinel = 'mEncodedHeight'
     821           0 :     if ((!((msg__)->ReadSentinel(iter__, 244605666)))) {
     822           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mEncodedHeight' (uint32_t) member of 'GMPVideoEncodedFrameData'");
     823           0 :         return false;
     824             :     }
     825           0 :     if ((!(Read((&((v__)->mTimestamp())), msg__, iter__)))) {
     826           0 :         FatalError("Error deserializing 'mTimestamp' (uint64_t) member of 'GMPVideoEncodedFrameData'");
     827           0 :         return false;
     828             :     }
     829             :     // Sentinel = 'mTimestamp'
     830           0 :     if ((!((msg__)->ReadSentinel(iter__, 2107530829)))) {
     831           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mTimestamp' (uint64_t) member of 'GMPVideoEncodedFrameData'");
     832           0 :         return false;
     833             :     }
     834           0 :     if ((!(Read((&((v__)->mDuration())), msg__, iter__)))) {
     835           0 :         FatalError("Error deserializing 'mDuration' (uint64_t) member of 'GMPVideoEncodedFrameData'");
     836           0 :         return false;
     837             :     }
     838             :     // Sentinel = 'mDuration'
     839           0 :     if ((!((msg__)->ReadSentinel(iter__, 3773650888)))) {
     840           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mDuration' (uint64_t) member of 'GMPVideoEncodedFrameData'");
     841           0 :         return false;
     842             :     }
     843           0 :     if ((!(Read((&((v__)->mFrameType())), msg__, iter__)))) {
     844           0 :         FatalError("Error deserializing 'mFrameType' (uint32_t) member of 'GMPVideoEncodedFrameData'");
     845           0 :         return false;
     846             :     }
     847             :     // Sentinel = 'mFrameType'
     848           0 :     if ((!((msg__)->ReadSentinel(iter__, 3891971702)))) {
     849           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mFrameType' (uint32_t) member of 'GMPVideoEncodedFrameData'");
     850           0 :         return false;
     851             :     }
     852           0 :     if ((!(Read((&((v__)->mSize())), msg__, iter__)))) {
     853           0 :         FatalError("Error deserializing 'mSize' (uint32_t) member of 'GMPVideoEncodedFrameData'");
     854           0 :         return false;
     855             :     }
     856             :     // Sentinel = 'mSize'
     857           0 :     if ((!((msg__)->ReadSentinel(iter__, 2022816943)))) {
     858           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mSize' (uint32_t) member of 'GMPVideoEncodedFrameData'");
     859           0 :         return false;
     860             :     }
     861           0 :     if ((!(Read((&((v__)->mBufferType())), msg__, iter__)))) {
     862           0 :         FatalError("Error deserializing 'mBufferType' (GMPBufferType) member of 'GMPVideoEncodedFrameData'");
     863           0 :         return false;
     864             :     }
     865             :     // Sentinel = 'mBufferType'
     866           0 :     if ((!((msg__)->ReadSentinel(iter__, 1911156444)))) {
     867           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mBufferType' (GMPBufferType) member of 'GMPVideoEncodedFrameData'");
     868           0 :         return false;
     869             :     }
     870           0 :     if ((!(Read((&((v__)->mBuffer())), msg__, iter__)))) {
     871           0 :         FatalError("Error deserializing 'mBuffer' (Shmem) member of 'GMPVideoEncodedFrameData'");
     872           0 :         return false;
     873             :     }
     874             :     // Sentinel = 'mBuffer'
     875           0 :     if ((!((msg__)->ReadSentinel(iter__, 3436723048)))) {
     876           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mBuffer' (Shmem) member of 'GMPVideoEncodedFrameData'");
     877           0 :         return false;
     878             :     }
     879           0 :     if ((!(Read((&((v__)->mCompleteFrame())), msg__, iter__)))) {
     880           0 :         FatalError("Error deserializing 'mCompleteFrame' (bool) member of 'GMPVideoEncodedFrameData'");
     881           0 :         return false;
     882             :     }
     883             :     // Sentinel = 'mCompleteFrame'
     884           0 :     if ((!((msg__)->ReadSentinel(iter__, 2960948789)))) {
     885           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mCompleteFrame' (bool) member of 'GMPVideoEncodedFrameData'");
     886           0 :         return false;
     887             :     }
     888           0 :     if ((!(Read((&((v__)->mDecryptionData())), msg__, iter__)))) {
     889           0 :         FatalError("Error deserializing 'mDecryptionData' (GMPDecryptionData) member of 'GMPVideoEncodedFrameData'");
     890           0 :         return false;
     891             :     }
     892             :     // Sentinel = 'mDecryptionData'
     893           0 :     if ((!((msg__)->ReadSentinel(iter__, 3882545301)))) {
     894           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mDecryptionData' (GMPDecryptionData) member of 'GMPVideoEncodedFrameData'");
     895           0 :         return false;
     896             :     }
     897           0 :     return true;
     898             : }
     899             : 
     900           0 : auto PGMPVideoEncoderChild::Write(
     901             :         const GMPPlaneData& v__,
     902             :         Message* msg__) -> void
     903             : {
     904           0 :     Write((v__).mSize(), msg__);
     905             :     // Sentinel = 'mSize'
     906           0 :     (msg__)->WriteSentinel(2022816943);
     907           0 :     Write((v__).mStride(), msg__);
     908             :     // Sentinel = 'mStride'
     909           0 :     (msg__)->WriteSentinel(171840065);
     910           0 :     Write((v__).mBuffer(), msg__);
     911             :     // Sentinel = 'mBuffer'
     912           0 :     (msg__)->WriteSentinel(3436723048);
     913           0 : }
     914             : 
     915           0 : auto PGMPVideoEncoderChild::Read(
     916             :         GMPPlaneData* v__,
     917             :         const Message* msg__,
     918             :         PickleIterator* iter__) -> bool
     919             : {
     920           0 :     if ((!(Read((&((v__)->mSize())), msg__, iter__)))) {
     921           0 :         FatalError("Error deserializing 'mSize' (int32_t) member of 'GMPPlaneData'");
     922           0 :         return false;
     923             :     }
     924             :     // Sentinel = 'mSize'
     925           0 :     if ((!((msg__)->ReadSentinel(iter__, 2022816943)))) {
     926           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mSize' (int32_t) member of 'GMPPlaneData'");
     927           0 :         return false;
     928             :     }
     929           0 :     if ((!(Read((&((v__)->mStride())), msg__, iter__)))) {
     930           0 :         FatalError("Error deserializing 'mStride' (int32_t) member of 'GMPPlaneData'");
     931           0 :         return false;
     932             :     }
     933             :     // Sentinel = 'mStride'
     934           0 :     if ((!((msg__)->ReadSentinel(iter__, 171840065)))) {
     935           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mStride' (int32_t) member of 'GMPPlaneData'");
     936           0 :         return false;
     937             :     }
     938           0 :     if ((!(Read((&((v__)->mBuffer())), msg__, iter__)))) {
     939           0 :         FatalError("Error deserializing 'mBuffer' (Shmem) member of 'GMPPlaneData'");
     940           0 :         return false;
     941             :     }
     942             :     // Sentinel = 'mBuffer'
     943           0 :     if ((!((msg__)->ReadSentinel(iter__, 3436723048)))) {
     944           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mBuffer' (Shmem) member of 'GMPPlaneData'");
     945           0 :         return false;
     946             :     }
     947           0 :     return true;
     948             : }
     949             : 
     950             : 
     951             : 
     952             : } // namespace gmp
     953             : } // namespace mozilla

Generated by: LCOV version 1.13