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