Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/gfx/vr/ipc/VRGPUChild.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef GFX_VR_GPU_CHILD_H
8
#define GFX_VR_GPU_CHILD_H
9
10
#include "mozilla/gfx/PVRGPUChild.h"
11
12
namespace mozilla {
13
namespace gfx {
14
15
class VRGPUChild final : public PVRGPUChild
16
{
17
public:
18
  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(VRGPUChild);
19
20
  static VRGPUChild* Get();
21
  static bool InitForGPUProcess(Endpoint<PVRGPUChild>&& aEndpoint);
22
  static bool IsCreated();
23
  static void ShutDown();
24
25
protected:
26
0
  explicit VRGPUChild() {}
27
  ~VRGPUChild() {}
28
29
  void Destroy();
30
31
private:
32
  DISALLOW_COPY_AND_ASSIGN(VRGPUChild);
33
};
34
35
} // namespace gfx
36
} // namespace mozilla
37
38
#endif // GFX_VR_GPU_CHILD_H