Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/canvas/WebGLExtensionFragDepth.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 20; 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 "WebGLExtensions.h"
7
8
#include "GLContext.h"
9
#include "mozilla/dom/WebGLRenderingContextBinding.h"
10
#include "WebGLContext.h"
11
12
namespace mozilla {
13
14
WebGLExtensionFragDepth::WebGLExtensionFragDepth(WebGLContext* webgl)
15
    : WebGLExtensionBase(webgl)
16
0
{
17
0
    MOZ_ASSERT(IsSupported(webgl), "Don't construct extension if unsupported.");
18
0
}
19
20
WebGLExtensionFragDepth::~WebGLExtensionFragDepth()
21
0
{
22
0
}
23
24
bool
25
WebGLExtensionFragDepth::IsSupported(const WebGLContext* webgl)
26
0
{
27
0
    gl::GLContext* gl = webgl->GL();
28
0
    return gl->IsSupported(gl::GLFeature::frag_depth);
29
0
}
30
31
32
IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionFragDepth, EXT_frag_depth)
33
34
} // namespace mozilla