LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PVsyncBridgeChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 75 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 24 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/PVsyncBridgeChild.h"
       8             : #include "mozilla/TimeStamp.h"
       9             : #ifdef MOZ_CRASHREPORTER
      10             : #  include "nsXULAppAPI.h"
      11             : #endif
      12             : 
      13             : 
      14             : #include "nsIFile.h"
      15             : #include "GeckoProfiler.h"
      16             : 
      17             : namespace mozilla {
      18             : namespace gfx {
      19             : 
      20             : 
      21           0 : auto PVsyncBridgeChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      22             : {
      23           0 : }
      24             : 
      25           0 : auto PVsyncBridgeChild::ProcessingError(
      26             :         Result aCode,
      27             :         const char* aReason) -> void
      28             : {
      29           0 : }
      30             : 
      31           0 : auto PVsyncBridgeChild::ShouldContinueFromReplyTimeout() -> bool
      32             : {
      33           0 :     return true;
      34             : }
      35             : 
      36           0 : auto PVsyncBridgeChild::EnteredCxxStack() -> void
      37             : {
      38           0 : }
      39             : 
      40           0 : auto PVsyncBridgeChild::ExitedCxxStack() -> void
      41             : {
      42           0 : }
      43             : 
      44           0 : auto PVsyncBridgeChild::EnteredCall() -> void
      45             : {
      46           0 : }
      47             : 
      48           0 : auto PVsyncBridgeChild::ExitedCall() -> void
      49             : {
      50           0 : }
      51             : 
      52           0 : MOZ_IMPLICIT PVsyncBridgeChild::PVsyncBridgeChild() :
      53             :     mozilla::ipc::IToplevelProtocol(PVsyncBridgeMsgStart, mozilla::ipc::ChildSide),
      54             :     mChannel("PVsyncBridgeChild", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
      55           0 :     mState(PVsyncBridge::__Start)
      56             : {
      57           0 :     MOZ_COUNT_CTOR(PVsyncBridgeChild);
      58           0 : }
      59             : 
      60           0 : PVsyncBridgeChild::~PVsyncBridgeChild()
      61             : {
      62           0 :     MOZ_COUNT_DTOR(PVsyncBridgeChild);
      63           0 : }
      64             : 
      65           0 : auto PVsyncBridgeChild::SendNotifyVsync(
      66             :         const TimeStamp& vsyncTimeStamp,
      67             :         const uint64_t& layersId) -> bool
      68             : {
      69           0 :     IPC::Message* msg__ = PVsyncBridge::Msg_NotifyVsync(MSG_ROUTING_CONTROL);
      70             : 
      71           0 :     Write(vsyncTimeStamp, msg__);
      72             :     // Sentinel = 'vsyncTimeStamp'
      73           0 :     (msg__)->WriteSentinel(1510557875);
      74           0 :     Write(layersId, msg__);
      75             :     // Sentinel = 'layersId'
      76           0 :     (msg__)->WriteSentinel(2382073245);
      77             : 
      78             : 
      79             : 
      80             : 
      81           0 :     if (mozilla::ipc::LoggingEnabledFor("PVsyncBridgeChild")) {
      82           0 :         mozilla::ipc::LogMessageForProtocol("PVsyncBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      83             :     }
      84           0 :     AUTO_PROFILER_LABEL("PVsyncBridge::Msg_NotifyVsync", OTHER);
      85           0 :     PVsyncBridge::Transition(PVsyncBridge::Msg_NotifyVsync__ID, (&(mState)));
      86             : 
      87           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      88           0 :     return sendok__;
      89             : }
      90             : 
      91           0 : auto PVsyncBridgeChild::GetIPCChannel() -> MessageChannel*
      92             : {
      93           0 :     return (&(mChannel));
      94             : }
      95             : 
      96           0 : auto PVsyncBridgeChild::GetIPCChannel() const -> const MessageChannel*
      97             : {
      98           0 :     return (&(mChannel));
      99             : }
     100             : 
     101           0 : auto PVsyncBridgeChild::RemoveManagee(
     102             :         int32_t aProtocolId,
     103             :         ProtocolBase* aListener) -> void
     104             : {
     105           0 :     FatalError("unreached");
     106           0 :     return;
     107             : }
     108             : 
     109           0 : auto PVsyncBridgeChild::OnMessageReceived(const Message& msg__) -> PVsyncBridgeChild::Result
     110             : {
     111           0 :     switch ((msg__).type()) {
     112             :     default:
     113             :         {
     114           0 :             return MsgNotKnown;
     115             :         }
     116             :     case SHMEM_CREATED_MESSAGE_TYPE:
     117             :         {
     118           0 :             FatalError("this protocol tree does not use shmem");
     119           0 :             return MsgNotKnown;
     120             :         }
     121             :     case SHMEM_DESTROYED_MESSAGE_TYPE:
     122             :         {
     123           0 :             FatalError("this protocol tree does not use shmem");
     124           0 :             return MsgNotKnown;
     125             :         }
     126             :     }
     127             : }
     128             : 
     129           0 : auto PVsyncBridgeChild::OnMessageReceived(
     130             :         const Message& msg__,
     131             :         Message*& reply__) -> PVsyncBridgeChild::Result
     132             : {
     133           0 :     return MsgNotKnown;
     134             : }
     135             : 
     136           0 : auto PVsyncBridgeChild::OnCallReceived(
     137             :         const Message& msg__,
     138             :         Message*& reply__) -> PVsyncBridgeChild::Result
     139             : {
     140           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     141             :     return MsgNotKnown;
     142             : }
     143             : 
     144           0 : auto PVsyncBridgeChild::GetProtocolTypeId() -> int32_t
     145             : {
     146           0 :     return PVsyncBridgeMsgStart;
     147             : }
     148             : 
     149           0 : auto PVsyncBridgeChild::OnChannelClose() -> void
     150             : {
     151           0 :     DestroySubtree(NormalShutdown);
     152           0 :     DeallocSubtree();
     153           0 :     DeallocShmems();
     154           0 :     DeallocPVsyncBridgeChild();
     155           0 : }
     156             : 
     157           0 : auto PVsyncBridgeChild::OnChannelError() -> void
     158             : {
     159           0 :     DestroySubtree(AbnormalShutdown);
     160           0 :     DeallocSubtree();
     161           0 :     DeallocShmems();
     162           0 :     DeallocPVsyncBridgeChild();
     163           0 : }
     164             : 
     165           0 : auto PVsyncBridgeChild::ProtocolName() const -> const char*
     166             : {
     167           0 :     return "PVsyncBridgeChild";
     168             : }
     169             : 
     170           0 : auto PVsyncBridgeChild::DestroySubtree(ActorDestroyReason why) -> void
     171             : {
     172             :     // Reject owning pending promises.
     173           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     174             : 
     175             :     // Finally, destroy "us".
     176           0 :     ActorDestroy(why);
     177           0 : }
     178             : 
     179           0 : auto PVsyncBridgeChild::DeallocSubtree() -> void
     180             : {
     181           0 : }
     182             : 
     183           0 : auto PVsyncBridgeChild::DeallocPVsyncBridgeChild() -> void
     184             : {
     185           0 : }
     186             : 
     187             : 
     188             : 
     189             : } // namespace gfx
     190             : } // namespace mozilla

Generated by: LCOV version 1.13