Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/canvas/WebGL1Context.h
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
#ifndef WEBGL_1_CONTEXT_H_
7
#define WEBGL_1_CONTEXT_H_
8
9
#include "WebGLContext.h"
10
11
namespace mozilla {
12
13
class WebGL1Context
14
    : public WebGLContext
15
{
16
public:
17
    static WebGL1Context* Create();
18
19
private:
20
    WebGL1Context();
21
22
    virtual UniquePtr<webgl::FormatUsageAuthority>
23
    CreateFormatUsage(gl::GLContext* gl) const override;
24
25
public:
26
    virtual ~WebGL1Context();
27
28
0
    virtual bool IsWebGL2() const override {
29
0
        return false;
30
0
    }
31
32
    // nsWrapperCache
33
    virtual JSObject* WrapObject(JSContext* cx, JS::Handle<JSObject*> givenProto) override;
34
};
35
36
} // namespace mozilla
37
38
#endif // WEBGL_1_CONTEXT_H_