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 : namespace mozilla {
9 :
10 0 : WebGLExtensionBase::WebGLExtensionBase(WebGLContext* context)
11 : : WebGLContextBoundObject(context)
12 0 : , mIsLost(false)
13 : {
14 0 : }
15 :
16 0 : WebGLExtensionBase::~WebGLExtensionBase()
17 : {
18 0 : }
19 :
20 : void
21 0 : WebGLExtensionBase::MarkLost()
22 : {
23 0 : mIsLost = true;
24 :
25 0 : OnMarkLost();
26 0 : }
27 :
28 0 : NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_0(WebGLExtensionBase)
29 :
30 0 : NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(WebGLExtensionBase, AddRef)
31 0 : NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(WebGLExtensionBase, Release)
32 :
33 : } // namespace mozilla
|