Line data Source code
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 "mozilla/dom/WebGLRenderingContextBinding.h"
9 : #include "WebGLContext.h"
10 :
11 : namespace mozilla {
12 :
13 0 : WebGLExtensionLoseContext::WebGLExtensionLoseContext(WebGLContext* webgl)
14 0 : : WebGLExtensionBase(webgl)
15 : {
16 0 : }
17 :
18 0 : WebGLExtensionLoseContext::~WebGLExtensionLoseContext()
19 : {
20 0 : }
21 :
22 : void
23 0 : WebGLExtensionLoseContext::LoseContext()
24 : {
25 0 : mContext->LoseContext();
26 0 : }
27 :
28 : void
29 0 : WebGLExtensionLoseContext::RestoreContext()
30 : {
31 0 : mContext->RestoreContext();
32 0 : }
33 :
34 0 : IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionLoseContext, WEBGL_lose_context)
35 :
36 : } // namespace mozilla
|