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

Generated by: LCOV version 1.13