Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/webgpu/ObjectModel.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 "ObjectModel.h"
7
8
#include "Adapter.h"
9
#include "Device.h"
10
#include "Instance.h"
11
12
namespace mozilla {
13
namespace webgpu {
14
15
template<typename T>
16
ChildOf<T>::ChildOf(T* const parent)
17
    : mParent(parent)
18
0
{ }
Unexecuted instantiation: mozilla::webgpu::ChildOf<mozilla::webgpu::Adapter>::ChildOf(mozilla::webgpu::Adapter*)
Unexecuted instantiation: mozilla::webgpu::ChildOf<mozilla::webgpu::Device>::ChildOf(mozilla::webgpu::Device*)
Unexecuted instantiation: mozilla::webgpu::ChildOf<mozilla::webgpu::Instance>::ChildOf(mozilla::webgpu::Instance*)
19
20
template<typename T>
21
ChildOf<T>::~ChildOf() = default;
22
23
template<typename T>
24
nsIGlobalObject*
25
ChildOf<T>::GetParentObject() const
26
0
{
27
0
    return mParent->GetParentObject();
28
0
}
Unexecuted instantiation: mozilla::webgpu::ChildOf<mozilla::webgpu::Adapter>::GetParentObject() const
Unexecuted instantiation: mozilla::webgpu::ChildOf<mozilla::webgpu::Device>::GetParentObject() const
Unexecuted instantiation: mozilla::webgpu::ChildOf<mozilla::webgpu::Instance>::GetParentObject() const
29
30
template class ChildOf<Adapter>;
31
template class ChildOf<Device>;
32
template class ChildOf<Instance>;
33
34
} // namespace webgpu
35
} // namespace mozilla