LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PUiCompositorControllerParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 296 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 27 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/layers/PUiCompositorControllerParent.h"
       8             : #ifdef MOZ_CRASHREPORTER
       9             : #  include "nsXULAppAPI.h"
      10             : #endif
      11             : 
      12             : 
      13             : #include "nsIFile.h"
      14             : #include "GeckoProfiler.h"
      15             : 
      16             : namespace mozilla {
      17             : namespace layers {
      18             : 
      19             : 
      20             : 
      21           0 : auto PUiCompositorControllerParent::ProcessingError(
      22             :         Result aCode,
      23             :         const char* aReason) -> void
      24             : {
      25           0 : }
      26             : 
      27           0 : auto PUiCompositorControllerParent::ShouldContinueFromReplyTimeout() -> bool
      28             : {
      29           0 :     return true;
      30             : }
      31             : 
      32           0 : auto PUiCompositorControllerParent::EnteredCxxStack() -> void
      33             : {
      34           0 : }
      35             : 
      36           0 : auto PUiCompositorControllerParent::ExitedCxxStack() -> void
      37             : {
      38           0 : }
      39             : 
      40           0 : auto PUiCompositorControllerParent::EnteredCall() -> void
      41             : {
      42           0 : }
      43             : 
      44           0 : auto PUiCompositorControllerParent::ExitedCall() -> void
      45             : {
      46           0 : }
      47             : 
      48           0 : MOZ_IMPLICIT PUiCompositorControllerParent::PUiCompositorControllerParent() :
      49             :     mozilla::ipc::IToplevelProtocol(PUiCompositorControllerMsgStart, mozilla::ipc::ParentSide),
      50             :     mChannel("PUiCompositorControllerParent", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
      51           0 :     mState(PUiCompositorController::__Start)
      52             : {
      53           0 :     MOZ_COUNT_CTOR(PUiCompositorControllerParent);
      54           0 : }
      55             : 
      56           0 : PUiCompositorControllerParent::~PUiCompositorControllerParent()
      57             : {
      58           0 :     MOZ_COUNT_DTOR(PUiCompositorControllerParent);
      59           0 : }
      60             : 
      61           0 : auto PUiCompositorControllerParent::SendToolbarAnimatorMessageFromCompositor(const int32_t& aMessage) -> bool
      62             : {
      63           0 :     IPC::Message* msg__ = PUiCompositorController::Msg_ToolbarAnimatorMessageFromCompositor(MSG_ROUTING_CONTROL);
      64             : 
      65           0 :     Write(aMessage, msg__);
      66             :     // Sentinel = 'aMessage'
      67           0 :     (msg__)->WriteSentinel(3453110902);
      68             : 
      69             : 
      70             : 
      71             : 
      72           0 :     if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
      73           0 :         mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      74             :     }
      75           0 :     AUTO_PROFILER_LABEL("PUiCompositorController::Msg_ToolbarAnimatorMessageFromCompositor", OTHER);
      76           0 :     PUiCompositorController::Transition(PUiCompositorController::Msg_ToolbarAnimatorMessageFromCompositor__ID, (&(mState)));
      77             : 
      78           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      79           0 :     return sendok__;
      80             : }
      81             : 
      82           0 : auto PUiCompositorControllerParent::SendRootFrameMetrics(
      83             :         const ScreenPoint& aScrollOffset,
      84             :         const CSSToScreenScale& aZoom) -> bool
      85             : {
      86           0 :     IPC::Message* msg__ = PUiCompositorController::Msg_RootFrameMetrics(MSG_ROUTING_CONTROL);
      87             : 
      88           0 :     Write(aScrollOffset, msg__);
      89             :     // Sentinel = 'aScrollOffset'
      90           0 :     (msg__)->WriteSentinel(380967954);
      91           0 :     Write(aZoom, msg__);
      92             :     // Sentinel = 'aZoom'
      93           0 :     (msg__)->WriteSentinel(3288940929);
      94             : 
      95             : 
      96             : 
      97             : 
      98           0 :     if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
      99           0 :         mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     100             :     }
     101           0 :     AUTO_PROFILER_LABEL("PUiCompositorController::Msg_RootFrameMetrics", OTHER);
     102           0 :     PUiCompositorController::Transition(PUiCompositorController::Msg_RootFrameMetrics__ID, (&(mState)));
     103             : 
     104           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     105           0 :     return sendok__;
     106             : }
     107             : 
     108           0 : auto PUiCompositorControllerParent::SendScreenPixels(
     109             :         Shmem& aMem,
     110             :         const ScreenIntSize& aSize) -> bool
     111             : {
     112           0 :     IPC::Message* msg__ = PUiCompositorController::Msg_ScreenPixels(MSG_ROUTING_CONTROL);
     113             : 
     114           0 :     Write(aMem, msg__);
     115             :     // Sentinel = 'aMem'
     116           0 :     (msg__)->WriteSentinel(3574578916);
     117           0 :     Write(aSize, msg__);
     118             :     // Sentinel = 'aSize'
     119           0 :     (msg__)->WriteSentinel(2556665555);
     120             : 
     121             : 
     122             : 
     123             : 
     124           0 :     if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     125           0 :         mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     126             :     }
     127           0 :     AUTO_PROFILER_LABEL("PUiCompositorController::Msg_ScreenPixels", OTHER);
     128           0 :     PUiCompositorController::Transition(PUiCompositorController::Msg_ScreenPixels__ID, (&(mState)));
     129             : 
     130           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     131           0 :     return sendok__;
     132             : }
     133             : 
     134           0 : auto PUiCompositorControllerParent::GetIPCChannel() -> MessageChannel*
     135             : {
     136           0 :     return (&(mChannel));
     137             : }
     138             : 
     139           0 : auto PUiCompositorControllerParent::GetIPCChannel() const -> const MessageChannel*
     140             : {
     141           0 :     return (&(mChannel));
     142             : }
     143             : 
     144           0 : auto PUiCompositorControllerParent::RemoveManagee(
     145             :         int32_t aProtocolId,
     146             :         ProtocolBase* aListener) -> void
     147             : {
     148           0 :     FatalError("unreached");
     149           0 :     return;
     150             : }
     151             : 
     152           0 : auto PUiCompositorControllerParent::OnMessageReceived(const Message& msg__) -> PUiCompositorControllerParent::Result
     153             : {
     154           0 :     switch ((msg__).type()) {
     155             :     case PUiCompositorController::Msg_InvalidateAndRender__ID:
     156             :         {
     157           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     158           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     159             :             }
     160           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_InvalidateAndRender", OTHER);
     161             : 
     162           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_InvalidateAndRender__ID, (&(mState)));
     163           0 :             if ((!(RecvInvalidateAndRender()))) {
     164           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     165             :                 // Error handled in mozilla::ipc::IPCResult
     166           0 :                 return MsgProcessingError;
     167             :             }
     168             : 
     169           0 :             return MsgProcessed;
     170             :         }
     171             :     case PUiCompositorController::Msg_MaxToolbarHeight__ID:
     172             :         {
     173           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     174           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     175             :             }
     176           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_MaxToolbarHeight", OTHER);
     177             : 
     178           0 :             PickleIterator iter__(msg__);
     179             :             int32_t aHeight;
     180             : 
     181           0 :             if ((!(Read((&(aHeight)), (&(msg__)), (&(iter__)))))) {
     182           0 :                 FatalError("Error deserializing 'int32_t'");
     183           0 :                 return MsgValueError;
     184             :             }
     185             :             // Sentinel = 'aHeight'
     186           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3588433859)))) {
     187           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
     188           0 :                 return MsgValueError;
     189             :             }
     190           0 :             (msg__).EndRead(iter__, (msg__).type());
     191           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_MaxToolbarHeight__ID, (&(mState)));
     192           0 :             if ((!(RecvMaxToolbarHeight(mozilla::Move(aHeight))))) {
     193           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     194             :                 // Error handled in mozilla::ipc::IPCResult
     195           0 :                 return MsgProcessingError;
     196             :             }
     197             : 
     198           0 :             return MsgProcessed;
     199             :         }
     200             :     case PUiCompositorController::Msg_Pinned__ID:
     201             :         {
     202           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     203           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     204             :             }
     205           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_Pinned", OTHER);
     206             : 
     207           0 :             PickleIterator iter__(msg__);
     208             :             bool aPinned;
     209             :             int32_t aReason;
     210             : 
     211           0 :             if ((!(Read((&(aPinned)), (&(msg__)), (&(iter__)))))) {
     212           0 :                 FatalError("Error deserializing 'bool'");
     213           0 :                 return MsgValueError;
     214             :             }
     215             :             // Sentinel = 'aPinned'
     216           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1467325352)))) {
     217           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     218           0 :                 return MsgValueError;
     219             :             }
     220           0 :             if ((!(Read((&(aReason)), (&(msg__)), (&(iter__)))))) {
     221           0 :                 FatalError("Error deserializing 'int32_t'");
     222           0 :                 return MsgValueError;
     223             :             }
     224             :             // Sentinel = 'aReason'
     225           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 829905706)))) {
     226           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
     227           0 :                 return MsgValueError;
     228             :             }
     229           0 :             (msg__).EndRead(iter__, (msg__).type());
     230           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_Pinned__ID, (&(mState)));
     231           0 :             if ((!(RecvPinned(mozilla::Move(aPinned), mozilla::Move(aReason))))) {
     232           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     233             :                 // Error handled in mozilla::ipc::IPCResult
     234           0 :                 return MsgProcessingError;
     235             :             }
     236             : 
     237           0 :             return MsgProcessed;
     238             :         }
     239             :     case PUiCompositorController::Msg_ToolbarAnimatorMessageFromUI__ID:
     240             :         {
     241           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     242           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     243             :             }
     244           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_ToolbarAnimatorMessageFromUI", OTHER);
     245             : 
     246           0 :             PickleIterator iter__(msg__);
     247             :             int32_t aMessage;
     248             : 
     249           0 :             if ((!(Read((&(aMessage)), (&(msg__)), (&(iter__)))))) {
     250           0 :                 FatalError("Error deserializing 'int32_t'");
     251           0 :                 return MsgValueError;
     252             :             }
     253             :             // Sentinel = 'aMessage'
     254           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) {
     255           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
     256           0 :                 return MsgValueError;
     257             :             }
     258           0 :             (msg__).EndRead(iter__, (msg__).type());
     259           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_ToolbarAnimatorMessageFromUI__ID, (&(mState)));
     260           0 :             if ((!(RecvToolbarAnimatorMessageFromUI(mozilla::Move(aMessage))))) {
     261           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     262             :                 // Error handled in mozilla::ipc::IPCResult
     263           0 :                 return MsgProcessingError;
     264             :             }
     265             : 
     266           0 :             return MsgProcessed;
     267             :         }
     268             :     case PUiCompositorController::Msg_DefaultClearColor__ID:
     269             :         {
     270           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     271           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     272             :             }
     273           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_DefaultClearColor", OTHER);
     274             : 
     275           0 :             PickleIterator iter__(msg__);
     276             :             uint32_t aColor;
     277             : 
     278           0 :             if ((!(Read((&(aColor)), (&(msg__)), (&(iter__)))))) {
     279           0 :                 FatalError("Error deserializing 'uint32_t'");
     280           0 :                 return MsgValueError;
     281             :             }
     282             :             // Sentinel = 'aColor'
     283           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1767069424)))) {
     284           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     285           0 :                 return MsgValueError;
     286             :             }
     287           0 :             (msg__).EndRead(iter__, (msg__).type());
     288           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_DefaultClearColor__ID, (&(mState)));
     289           0 :             if ((!(RecvDefaultClearColor(mozilla::Move(aColor))))) {
     290           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     291             :                 // Error handled in mozilla::ipc::IPCResult
     292           0 :                 return MsgProcessingError;
     293             :             }
     294             : 
     295           0 :             return MsgProcessed;
     296             :         }
     297             :     case PUiCompositorController::Msg_RequestScreenPixels__ID:
     298             :         {
     299           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     300           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     301             :             }
     302           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_RequestScreenPixels", OTHER);
     303             : 
     304           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_RequestScreenPixels__ID, (&(mState)));
     305           0 :             if ((!(RecvRequestScreenPixels()))) {
     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 PUiCompositorController::Msg_EnableLayerUpdateNotifications__ID:
     314             :         {
     315           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     316           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     317             :             }
     318           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_EnableLayerUpdateNotifications", OTHER);
     319             : 
     320           0 :             PickleIterator iter__(msg__);
     321             :             bool aEnable;
     322             : 
     323           0 :             if ((!(Read((&(aEnable)), (&(msg__)), (&(iter__)))))) {
     324           0 :                 FatalError("Error deserializing 'bool'");
     325           0 :                 return MsgValueError;
     326             :             }
     327             :             // Sentinel = 'aEnable'
     328           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 163837555)))) {
     329           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     330           0 :                 return MsgValueError;
     331             :             }
     332           0 :             (msg__).EndRead(iter__, (msg__).type());
     333           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_EnableLayerUpdateNotifications__ID, (&(mState)));
     334           0 :             if ((!(RecvEnableLayerUpdateNotifications(mozilla::Move(aEnable))))) {
     335           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     336             :                 // Error handled in mozilla::ipc::IPCResult
     337           0 :                 return MsgProcessingError;
     338             :             }
     339             : 
     340           0 :             return MsgProcessed;
     341             :         }
     342             :     case PUiCompositorController::Msg_ToolbarPixelsToCompositor__ID:
     343             :         {
     344           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     345           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     346             :             }
     347           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_ToolbarPixelsToCompositor", OTHER);
     348             : 
     349           0 :             PickleIterator iter__(msg__);
     350           0 :             Shmem aMem;
     351           0 :             ScreenIntSize aSize;
     352             : 
     353           0 :             if ((!(Read((&(aMem)), (&(msg__)), (&(iter__)))))) {
     354           0 :                 FatalError("Error deserializing 'Shmem'");
     355           0 :                 return MsgValueError;
     356             :             }
     357             :             // Sentinel = 'aMem'
     358           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3574578916)))) {
     359           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
     360           0 :                 return MsgValueError;
     361             :             }
     362           0 :             if ((!(Read((&(aSize)), (&(msg__)), (&(iter__)))))) {
     363           0 :                 FatalError("Error deserializing 'ScreenIntSize'");
     364           0 :                 return MsgValueError;
     365             :             }
     366             :             // Sentinel = 'aSize'
     367           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2556665555)))) {
     368           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ScreenIntSize'");
     369           0 :                 return MsgValueError;
     370             :             }
     371           0 :             (msg__).EndRead(iter__, (msg__).type());
     372           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_ToolbarPixelsToCompositor__ID, (&(mState)));
     373           0 :             if ((!(RecvToolbarPixelsToCompositor(mozilla::Move(aMem), mozilla::Move(aSize))))) {
     374           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     375             :                 // Error handled in mozilla::ipc::IPCResult
     376           0 :                 return MsgProcessingError;
     377             :             }
     378             : 
     379           0 :             return MsgProcessed;
     380             :         }
     381             :     default:
     382             :         {
     383           0 :             return MsgNotKnown;
     384             :         }
     385             :     case SHMEM_CREATED_MESSAGE_TYPE:
     386             :         {
     387           0 :             if ((!(ShmemCreated(msg__)))) {
     388           0 :                 return MsgPayloadError;
     389             :             }
     390           0 :             return MsgProcessed;
     391             :         }
     392             :     case SHMEM_DESTROYED_MESSAGE_TYPE:
     393             :         {
     394           0 :             if ((!(ShmemDestroyed(msg__)))) {
     395           0 :                 return MsgPayloadError;
     396             :             }
     397           0 :             return MsgProcessed;
     398             :         }
     399             :     }
     400             : }
     401             : 
     402           0 : auto PUiCompositorControllerParent::OnMessageReceived(
     403             :         const Message& msg__,
     404             :         Message*& reply__) -> PUiCompositorControllerParent::Result
     405             : {
     406           0 :     switch ((msg__).type()) {
     407             :     case PUiCompositorController::Msg_Pause__ID:
     408             :         {
     409           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     410           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     411             :             }
     412           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_Pause", OTHER);
     413             : 
     414           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_Pause__ID, (&(mState)));
     415           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
     416           0 :             if ((!(RecvPause()))) {
     417           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     418             :                 // Error handled in mozilla::ipc::IPCResult
     419           0 :                 return MsgProcessingError;
     420             :             }
     421             : 
     422           0 :             reply__ = PUiCompositorController::Reply_Pause(id__);
     423             : 
     424           0 :             (reply__)->set_sync();
     425           0 :             (reply__)->set_reply();
     426             : 
     427           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     428           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
     429             :             }
     430           0 :             return MsgProcessed;
     431             :         }
     432             :     case PUiCompositorController::Msg_Resume__ID:
     433             :         {
     434           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     435           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     436             :             }
     437           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_Resume", OTHER);
     438             : 
     439           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_Resume__ID, (&(mState)));
     440           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
     441           0 :             if ((!(RecvResume()))) {
     442           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     443             :                 // Error handled in mozilla::ipc::IPCResult
     444           0 :                 return MsgProcessingError;
     445             :             }
     446             : 
     447           0 :             reply__ = PUiCompositorController::Reply_Resume(id__);
     448             : 
     449           0 :             (reply__)->set_sync();
     450           0 :             (reply__)->set_reply();
     451             : 
     452           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     453           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
     454             :             }
     455           0 :             return MsgProcessed;
     456             :         }
     457             :     case PUiCompositorController::Msg_ResumeAndResize__ID:
     458             :         {
     459           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     460           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     461             :             }
     462           0 :             AUTO_PROFILER_LABEL("PUiCompositorController::Msg_ResumeAndResize", OTHER);
     463             : 
     464           0 :             PickleIterator iter__(msg__);
     465             :             int32_t aWidth;
     466             :             int32_t aHeight;
     467             : 
     468           0 :             if ((!(Read((&(aWidth)), (&(msg__)), (&(iter__)))))) {
     469           0 :                 FatalError("Error deserializing 'int32_t'");
     470           0 :                 return MsgValueError;
     471             :             }
     472             :             // Sentinel = 'aWidth'
     473           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 196646625)))) {
     474           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
     475           0 :                 return MsgValueError;
     476             :             }
     477           0 :             if ((!(Read((&(aHeight)), (&(msg__)), (&(iter__)))))) {
     478           0 :                 FatalError("Error deserializing 'int32_t'");
     479           0 :                 return MsgValueError;
     480             :             }
     481             :             // Sentinel = 'aHeight'
     482           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3588433859)))) {
     483           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
     484           0 :                 return MsgValueError;
     485             :             }
     486           0 :             (msg__).EndRead(iter__, (msg__).type());
     487           0 :             PUiCompositorController::Transition(PUiCompositorController::Msg_ResumeAndResize__ID, (&(mState)));
     488           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
     489           0 :             if ((!(RecvResumeAndResize(mozilla::Move(aWidth), mozilla::Move(aHeight))))) {
     490           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     491             :                 // Error handled in mozilla::ipc::IPCResult
     492           0 :                 return MsgProcessingError;
     493             :             }
     494             : 
     495           0 :             reply__ = PUiCompositorController::Reply_ResumeAndResize(id__);
     496             : 
     497           0 :             (reply__)->set_sync();
     498           0 :             (reply__)->set_reply();
     499             : 
     500           0 :             if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerParent")) {
     501           0 :                 mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
     502             :             }
     503           0 :             return MsgProcessed;
     504             :         }
     505             :     default:
     506             :         {
     507           0 :             return MsgNotKnown;
     508             :         }
     509             :     }
     510             : }
     511             : 
     512           0 : auto PUiCompositorControllerParent::OnCallReceived(
     513             :         const Message& msg__,
     514             :         Message*& reply__) -> PUiCompositorControllerParent::Result
     515             : {
     516           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     517             :     return MsgNotKnown;
     518             : }
     519             : 
     520           0 : auto PUiCompositorControllerParent::GetProtocolTypeId() -> int32_t
     521             : {
     522           0 :     return PUiCompositorControllerMsgStart;
     523             : }
     524             : 
     525           0 : auto PUiCompositorControllerParent::OnChannelClose() -> void
     526             : {
     527           0 :     DestroySubtree(NormalShutdown);
     528           0 :     DeallocSubtree();
     529           0 :     DeallocShmems();
     530           0 :     DeallocPUiCompositorControllerParent();
     531           0 : }
     532             : 
     533           0 : auto PUiCompositorControllerParent::OnChannelError() -> void
     534             : {
     535           0 :     DestroySubtree(AbnormalShutdown);
     536           0 :     DeallocSubtree();
     537           0 :     DeallocShmems();
     538           0 :     DeallocPUiCompositorControllerParent();
     539           0 : }
     540             : 
     541           0 : auto PUiCompositorControllerParent::ProtocolName() const -> const char*
     542             : {
     543           0 :     return "PUiCompositorControllerParent";
     544             : }
     545             : 
     546           0 : auto PUiCompositorControllerParent::DestroySubtree(ActorDestroyReason why) -> void
     547             : {
     548             :     // Reject owning pending promises.
     549           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     550             : 
     551             :     // Finally, destroy "us".
     552           0 :     ActorDestroy(why);
     553           0 : }
     554             : 
     555           0 : auto PUiCompositorControllerParent::DeallocSubtree() -> void
     556             : {
     557           0 : }
     558             : 
     559           0 : auto PUiCompositorControllerParent::DeallocPUiCompositorControllerParent() -> void
     560             : {
     561           0 : }
     562             : 
     563           0 : auto PUiCompositorControllerParent::Write(
     564             :         Shmem& v__,
     565             :         Message* msg__) -> void
     566             : {
     567           0 :     IPC::WriteParam(msg__, v__);
     568           0 :     (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
     569           0 :     (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
     570           0 : }
     571             : 
     572           0 : auto PUiCompositorControllerParent::Read(
     573             :         Shmem* v__,
     574             :         const Message* msg__,
     575             :         PickleIterator* iter__) -> bool
     576             : {
     577           0 :     Shmem tmp;
     578           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
     579           0 :         return false;
     580             :     }
     581             : 
     582           0 :     Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
     583           0 :     Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
     584           0 :     if (rawmem) {
     585           0 :         (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
     586           0 :         return true;
     587             :     }
     588           0 :     (*(v__)) = Shmem();
     589           0 :     return true;
     590             : }
     591             : 
     592             : 
     593             : 
     594             : } // namespace layers
     595             : } // namespace mozilla

Generated by: LCOV version 1.13