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

Generated by: LCOV version 1.13