Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/canvas/WebGLExtensionTextureHalfFloatLinear.cpp
Line
Count
Source (jump to first uncovered line)
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3
 * You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
#include "WebGLExtensions.h"
6
7
#include "GLContext.h"
8
#include "mozilla/dom/WebGLRenderingContextBinding.h"
9
#include "WebGLContext.h"
10
#include "WebGLFormats.h"
11
12
namespace mozilla {
13
14
WebGLExtensionTextureHalfFloatLinear::WebGLExtensionTextureHalfFloatLinear(WebGLContext* webgl)
15
    : WebGLExtensionBase(webgl)
16
0
{
17
0
    MOZ_ASSERT(!webgl->IsWebGL2());
18
0
    auto& fua = webgl->mFormatUsage;
19
0
20
0
    fua->EditUsage(webgl::EffectiveFormat::RGBA16F)->isFilterable = true;
21
0
    fua->EditUsage(webgl::EffectiveFormat::RGB16F)->isFilterable = true;
22
0
    fua->EditUsage(webgl::EffectiveFormat::Luminance16FAlpha16F)->isFilterable = true;
23
0
    fua->EditUsage(webgl::EffectiveFormat::Luminance16F)->isFilterable = true;
24
0
    fua->EditUsage(webgl::EffectiveFormat::Alpha16F)->isFilterable = true;
25
0
}
26
27
WebGLExtensionTextureHalfFloatLinear::~WebGLExtensionTextureHalfFloatLinear()
28
0
{
29
0
}
30
31
IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionTextureHalfFloatLinear, OES_texture_half_float_linear)
32
33
} // namespace mozilla