Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/widget/gtk/CompositorWidgetParent.cpp
Line
Count
Source (jump to first uncovered line)
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
#include "mozilla/widget/PlatformWidgetTypes.h"
9
10
namespace mozilla {
11
namespace widget {
12
13
CompositorWidgetParent::CompositorWidgetParent(const CompositorWidgetInitData& aInitData,
14
                                               const layers::CompositorOptions& aOptions)
15
 : GtkCompositorWidget(aInitData.get_GtkCompositorWidgetInitData(), aOptions)
16
0
{
17
0
  MOZ_ASSERT(XRE_GetProcessType() == GeckoProcessType_GPU);
18
0
}
19
20
CompositorWidgetParent::~CompositorWidgetParent()
21
0
{
22
0
}
23
24
void
25
CompositorWidgetParent::ObserveVsync(VsyncObserver* aObserver)
26
0
{
27
0
  if (aObserver) {
28
0
    Unused << SendObserveVsync();
29
0
  } else {
30
0
    Unused << SendUnobserveVsync();
31
0
  }
32
0
  mVsyncObserver = aObserver;
33
0
}
34
35
RefPtr<VsyncObserver>
36
CompositorWidgetParent::GetVsyncObserver() const
37
0
{
38
0
  MOZ_ASSERT(XRE_GetProcessType() == GeckoProcessType_GPU);
39
0
  return mVsyncObserver;
40
0
}
41
42
mozilla::ipc::IPCResult
43
CompositorWidgetParent::RecvNotifyClientSizeChanged(const LayoutDeviceIntSize& aClientSize)
44
0
{
45
0
  NotifyClientSizeChanged(aClientSize);
46
0
  return IPC_OK();
47
0
}
48
49
} // namespace widget
50
} // namespace mozilla