2011-10-27 00:00:44 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-10-27 00:00:44 +04:00
|
|
|
|
|
|
|
#include "WebGLExtensions.h"
|
2014-11-14 07:03:50 +03:00
|
|
|
|
2012-10-04 01:13:05 +04:00
|
|
|
#include "mozilla/dom/WebGLRenderingContextBinding.h"
|
2014-11-14 07:03:50 +03:00
|
|
|
#include "WebGLContext.h"
|
2011-10-27 00:00:44 +04:00
|
|
|
|
2014-11-14 07:03:50 +03:00
|
|
|
namespace mozilla {
|
2011-10-27 00:00:44 +04:00
|
|
|
|
2014-11-14 07:03:50 +03:00
|
|
|
WebGLExtensionLoseContext::WebGLExtensionLoseContext(WebGLContext* webgl)
|
|
|
|
: WebGLExtensionBase(webgl)
|
2011-10-27 00:00:44 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
WebGLExtensionLoseContext::~WebGLExtensionLoseContext()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-10-04 01:13:05 +04:00
|
|
|
void
|
2011-10-27 00:00:44 +04:00
|
|
|
WebGLExtensionLoseContext::LoseContext()
|
|
|
|
{
|
2014-06-03 01:40:15 +04:00
|
|
|
mContext->LoseContext();
|
2011-10-27 00:00:44 +04:00
|
|
|
}
|
|
|
|
|
2014-06-03 01:40:15 +04:00
|
|
|
void
|
2011-10-27 00:00:44 +04:00
|
|
|
WebGLExtensionLoseContext::RestoreContext()
|
|
|
|
{
|
2014-06-03 01:40:15 +04:00
|
|
|
mContext->RestoreContext();
|
2011-10-27 00:00:44 +04:00
|
|
|
}
|
2012-03-26 22:59:04 +04:00
|
|
|
|
2015-06-01 17:17:00 +03:00
|
|
|
IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionLoseContext, WEBGL_lose_context)
|
2014-11-14 07:03:50 +03:00
|
|
|
|
|
|
|
} // namespace mozilla
|