LCOV - code coverage report
Current view: top level - widget/gtk - CompositorWidgetParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 19 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 6 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #include "CompositorWidgetParent.h"
       7             : #include "mozilla/Unused.h"
       8             : 
       9             : namespace mozilla {
      10             : namespace widget {
      11             : 
      12           0 : CompositorWidgetParent::CompositorWidgetParent(const CompositorWidgetInitData& aInitData,
      13           0 :                                                const layers::CompositorOptions& aOptions)
      14           0 :  : X11CompositorWidget(aInitData, aOptions)
      15             : {
      16           0 :   MOZ_ASSERT(XRE_GetProcessType() == GeckoProcessType_GPU);
      17           0 : }
      18             : 
      19           0 : CompositorWidgetParent::~CompositorWidgetParent()
      20             : {
      21           0 : }
      22             : 
      23             : void
      24           0 : CompositorWidgetParent::ObserveVsync(VsyncObserver* aObserver)
      25             : {
      26           0 :   if (aObserver) {
      27           0 :     Unused << SendObserveVsync();
      28             :   } else {
      29           0 :     Unused << SendUnobserveVsync();
      30             :   }
      31           0 :   mVsyncObserver = aObserver;
      32           0 : }
      33             : 
      34             : RefPtr<VsyncObserver>
      35           0 : CompositorWidgetParent::GetVsyncObserver() const
      36             : {
      37           0 :   MOZ_ASSERT(XRE_GetProcessType() == GeckoProcessType_GPU);
      38           0 :   return mVsyncObserver;
      39             : }
      40             : 
      41             : mozilla::ipc::IPCResult
      42           0 : CompositorWidgetParent::RecvNotifyClientSizeChanged(const LayoutDeviceIntSize& aClientSize)
      43             : {
      44           0 :   NotifyClientSizeChanged(aClientSize);
      45           0 :   return IPC_OK();
      46             : }
      47             : 
      48             : } // namespace widget
      49             : } // namespace mozilla

Generated by: LCOV version 1.13