/src/mozilla-central/dom/canvas/WebGL1Context.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 "WebGL1Context.h" |
7 | | |
8 | | #include "mozilla/dom/WebGLRenderingContextBinding.h" |
9 | | #include "mozilla/Telemetry.h" |
10 | | #include "WebGLFormats.h" |
11 | | |
12 | | namespace mozilla { |
13 | | |
14 | | /*static*/ WebGL1Context* |
15 | | WebGL1Context::Create() |
16 | 0 | { |
17 | 0 | return new WebGL1Context(); |
18 | 0 | } |
19 | | |
20 | | WebGL1Context::WebGL1Context() |
21 | | : WebGLContext() |
22 | 0 | { |
23 | 0 | } |
24 | | |
25 | | WebGL1Context::~WebGL1Context() |
26 | 0 | { |
27 | 0 | } |
28 | | |
29 | | UniquePtr<webgl::FormatUsageAuthority> |
30 | | WebGL1Context::CreateFormatUsage(gl::GLContext* gl) const |
31 | 0 | { |
32 | 0 | return webgl::FormatUsageAuthority::CreateForWebGL1(gl); |
33 | 0 | } |
34 | | |
35 | | JSObject* |
36 | | WebGL1Context::WrapObject(JSContext* cx, JS::Handle<JSObject*> givenProto) |
37 | 0 | { |
38 | 0 | return dom::WebGLRenderingContext_Binding::Wrap(cx, this, givenProto); |
39 | 0 | } |
40 | | |
41 | | } // namespace mozilla |