LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PVRLayerChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 104 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 20 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/gfx/PVRLayerChild.h"
       8             : 
       9             : #include "mozilla/gfx/PVRManagerChild.h"
      10             : #include "mozilla/layers/PTextureChild.h"
      11             : 
      12             : #include "nsIFile.h"
      13             : #include "GeckoProfiler.h"
      14             : 
      15             : namespace mozilla {
      16             : namespace gfx {
      17             : 
      18             : 
      19           0 : auto PVRLayerChild::Recv__delete__() -> mozilla::ipc::IPCResult
      20             : {
      21           0 :     return IPC_OK();
      22             : }
      23             : 
      24           0 : auto PVRLayerChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      25             : {
      26           0 : }
      27             : 
      28           0 : MOZ_IMPLICIT PVRLayerChild::PVRLayerChild() :
      29             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      30           0 :     mState(PVRLayer::__Dead)
      31             : {
      32           0 :     MOZ_COUNT_CTOR(PVRLayerChild);
      33           0 : }
      34             : 
      35           0 : PVRLayerChild::~PVRLayerChild()
      36             : {
      37           0 :     MOZ_COUNT_DTOR(PVRLayerChild);
      38           0 : }
      39             : 
      40           0 : auto PVRLayerChild::Manager() const -> PVRManagerChild*
      41             : {
      42           0 :     return static_cast<PVRManagerChild*>(IProtocol::Manager());
      43             : }
      44             : 
      45           0 : auto PVRLayerChild::SendSubmitFrame(PTextureChild* aTexture) -> bool
      46             : {
      47           0 :     IPC::Message* msg__ = PVRLayer::Msg_SubmitFrame(Id());
      48             : 
      49           0 :     Write(aTexture, msg__, false);
      50             :     // Sentinel = 'aTexture'
      51           0 :     (msg__)->WriteSentinel(562633310);
      52             : 
      53             : 
      54             : 
      55             : 
      56           0 :     if (mozilla::ipc::LoggingEnabledFor("PVRLayerChild")) {
      57           0 :         mozilla::ipc::LogMessageForProtocol("PVRLayerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      58             :     }
      59           0 :     AUTO_PROFILER_LABEL("PVRLayer::Msg_SubmitFrame", OTHER);
      60           0 :     PVRLayer::Transition(PVRLayer::Msg_SubmitFrame__ID, (&(mState)));
      61             : 
      62           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      63           0 :     return sendok__;
      64             : }
      65             : 
      66           0 : auto PVRLayerChild::SendDestroy() -> bool
      67             : {
      68           0 :     IPC::Message* msg__ = PVRLayer::Msg_Destroy(Id());
      69             : 
      70             : 
      71             : 
      72             : 
      73             : 
      74           0 :     if (mozilla::ipc::LoggingEnabledFor("PVRLayerChild")) {
      75           0 :         mozilla::ipc::LogMessageForProtocol("PVRLayerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      76             :     }
      77           0 :     AUTO_PROFILER_LABEL("PVRLayer::Msg_Destroy", OTHER);
      78           0 :     PVRLayer::Transition(PVRLayer::Msg_Destroy__ID, (&(mState)));
      79             : 
      80           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      81           0 :     return sendok__;
      82             : }
      83             : 
      84           0 : auto PVRLayerChild::RemoveManagee(
      85             :         int32_t aProtocolId,
      86             :         ProtocolBase* aListener) -> void
      87             : {
      88           0 :     FatalError("unreached");
      89           0 :     return;
      90             : }
      91             : 
      92           0 : auto PVRLayerChild::OnMessageReceived(const Message& msg__) -> PVRLayerChild::Result
      93             : {
      94           0 :     switch ((msg__).type()) {
      95             :     case PVRLayer::Msg___delete____ID:
      96             :         {
      97           0 :             if (mozilla::ipc::LoggingEnabledFor("PVRLayerChild")) {
      98           0 :                 mozilla::ipc::LogMessageForProtocol("PVRLayerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
      99             :             }
     100           0 :             AUTO_PROFILER_LABEL("PVRLayer::Msg___delete__", OTHER);
     101             : 
     102           0 :             PickleIterator iter__(msg__);
     103             :             PVRLayerChild* actor;
     104             : 
     105           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
     106           0 :                 FatalError("Error deserializing 'PVRLayerChild'");
     107           0 :                 return MsgValueError;
     108             :             }
     109             :             // Sentinel = 'actor'
     110           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     111           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PVRLayerChild'");
     112           0 :                 return MsgValueError;
     113             :             }
     114           0 :             (msg__).EndRead(iter__, (msg__).type());
     115           0 :             PVRLayer::Transition(PVRLayer::Msg___delete____ID, (&(mState)));
     116           0 :             if ((!(Recv__delete__()))) {
     117           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     118             :                 // Error handled in mozilla::ipc::IPCResult
     119           0 :                 return MsgProcessingError;
     120             :             }
     121             : 
     122             : 
     123           0 :             IProtocol* mgr = (actor)->Manager();
     124           0 :             (actor)->DestroySubtree(Deletion);
     125           0 :             (actor)->DeallocSubtree();
     126           0 :             (mgr)->RemoveManagee(PVRLayerMsgStart, actor);
     127             : 
     128           0 :             return MsgProcessed;
     129             :         }
     130             :     default:
     131             :         {
     132           0 :             return MsgNotKnown;
     133             :         }
     134             :     }
     135             : }
     136             : 
     137           0 : auto PVRLayerChild::OnMessageReceived(
     138             :         const Message& msg__,
     139             :         Message*& reply__) -> PVRLayerChild::Result
     140             : {
     141           0 :     return MsgNotKnown;
     142             : }
     143             : 
     144           0 : auto PVRLayerChild::OnCallReceived(
     145             :         const Message& msg__,
     146             :         Message*& reply__) -> PVRLayerChild::Result
     147             : {
     148           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     149             :     return MsgNotKnown;
     150             : }
     151             : 
     152           0 : auto PVRLayerChild::GetProtocolTypeId() -> int32_t
     153             : {
     154           0 :     return PVRLayerMsgStart;
     155             : }
     156             : 
     157           0 : auto PVRLayerChild::ProtocolName() const -> const char*
     158             : {
     159           0 :     return "PVRLayerChild";
     160             : }
     161             : 
     162           0 : auto PVRLayerChild::DestroySubtree(ActorDestroyReason why) -> void
     163             : {
     164             :     // Unregister from our manager.
     165           0 :     Unregister(Id());
     166             : 
     167             :     // Reject owning pending promises.
     168           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     169             : 
     170             :     // Finally, destroy "us".
     171           0 :     ActorDestroy(why);
     172           0 : }
     173             : 
     174           0 : auto PVRLayerChild::DeallocSubtree() -> void
     175             : {
     176           0 : }
     177             : 
     178           0 : auto PVRLayerChild::Write(
     179             :         const PVRLayerChild* v__,
     180             :         Message* msg__,
     181             :         bool nullable__) -> void
     182             : {
     183             :     int32_t id;
     184           0 :     if ((!(v__))) {
     185           0 :         if ((!(nullable__))) {
     186           0 :             FatalError("NULL actor value passed to non-nullable param");
     187             :         }
     188           0 :         id = 0;
     189             :     }
     190             :     else {
     191           0 :         id = (v__)->Id();
     192           0 :         if ((1) == (id)) {
     193           0 :             FatalError("actor has been |delete|d");
     194             :         }
     195             :     }
     196             : 
     197           0 :     Write(id, msg__);
     198           0 : }
     199             : 
     200           0 : auto PVRLayerChild::Read(
     201             :         PVRLayerChild** v__,
     202             :         const Message* msg__,
     203             :         PickleIterator* iter__,
     204             :         bool nullable__) -> bool
     205             : {
     206           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PVRLayer", PVRLayerMsgStart);
     207           0 :     if ((actor).isNothing()) {
     208           0 :         return false;
     209             :     }
     210             : 
     211           0 :     (*(v__)) = static_cast<PVRLayerChild*>((actor).value());
     212           0 :     return true;
     213             : }
     214             : 
     215           0 : auto PVRLayerChild::Write(
     216             :         const PTextureChild* v__,
     217             :         Message* msg__,
     218             :         bool nullable__) -> void
     219             : {
     220             :     int32_t id;
     221           0 :     if ((!(v__))) {
     222           0 :         if ((!(nullable__))) {
     223           0 :             FatalError("NULL actor value passed to non-nullable param");
     224             :         }
     225           0 :         id = 0;
     226             :     }
     227             :     else {
     228           0 :         id = (v__)->Id();
     229           0 :         if ((1) == (id)) {
     230           0 :             FatalError("actor has been |delete|d");
     231             :         }
     232             :     }
     233             : 
     234           0 :     Write(id, msg__);
     235           0 : }
     236             : 
     237           0 : auto PVRLayerChild::Read(
     238             :         PTextureChild** v__,
     239             :         const Message* msg__,
     240             :         PickleIterator* iter__,
     241             :         bool nullable__) -> bool
     242             : {
     243           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTexture", PTextureMsgStart);
     244           0 :     if ((actor).isNothing()) {
     245           0 :         return false;
     246             :     }
     247             : 
     248           0 :     (*(v__)) = static_cast<PTextureChild*>((actor).value());
     249           0 :     return true;
     250             : }
     251             : 
     252             : 
     253             : 
     254             : } // namespace gfx
     255             : } // namespace mozilla

Generated by: LCOV version 1.13