2011-10-01 04:45:50 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 11:12:37 +00: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-01 04:45:50 +00:00
|
|
|
|
2014-11-14 04:03:50 +00:00
|
|
|
#ifndef WEBGL_EXTENSIONS_H_
|
|
|
|
#define WEBGL_EXTENSIONS_H_
|
2011-10-01 04:45:50 +00:00
|
|
|
|
2015-07-15 00:37:28 +00:00
|
|
|
#include "mozilla/AlreadyAddRefed.h"
|
2014-03-07 21:25:27 +00:00
|
|
|
#include "nsWrapperCache.h"
|
|
|
|
#include "WebGLObjectModel.h"
|
|
|
|
#include "WebGLTypes.h"
|
|
|
|
|
2011-10-01 04:45:50 +00:00
|
|
|
namespace mozilla {
|
|
|
|
|
2015-07-15 00:37:28 +00:00
|
|
|
namespace dom {
|
|
|
|
template<typename T>
|
|
|
|
class Sequence;
|
|
|
|
} // namespace dom
|
|
|
|
|
2015-07-17 00:27:26 +00:00
|
|
|
namespace webgl {
|
|
|
|
class FormatUsageAuthority;
|
|
|
|
} // namespace webgl
|
|
|
|
|
2013-06-10 20:00:35 +00:00
|
|
|
class WebGLContext;
|
2014-03-07 21:25:27 +00:00
|
|
|
class WebGLShader;
|
2015-05-27 11:12:00 +00:00
|
|
|
class WebGLQuery;
|
|
|
|
class WebGLTimerQuery;
|
2014-03-07 21:25:27 +00:00
|
|
|
class WebGLVertexArray;
|
2013-06-10 20:00:35 +00:00
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
class WebGLExtensionBase
|
2013-09-04 12:14:48 +00:00
|
|
|
: public nsWrapperCache
|
2012-10-03 21:13:05 +00:00
|
|
|
, public WebGLContextBoundObject
|
2011-10-26 20:00:44 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-11-14 04:03:50 +00:00
|
|
|
explicit WebGLExtensionBase(WebGLContext* webgl);
|
2012-10-03 21:13:05 +00:00
|
|
|
|
2014-11-14 04:03:50 +00:00
|
|
|
WebGLContext* GetParentObject() const {
|
2015-11-25 04:15:29 +00:00
|
|
|
return mContext;
|
2012-10-03 21:13:05 +00:00
|
|
|
}
|
2011-10-26 20:00:44 +00:00
|
|
|
|
2014-03-12 02:51:39 +00:00
|
|
|
void MarkLost();
|
|
|
|
|
2013-09-04 12:14:48 +00:00
|
|
|
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(WebGLExtensionBase)
|
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(WebGLExtensionBase)
|
2014-03-12 02:51:39 +00:00
|
|
|
|
|
|
|
protected:
|
2014-06-26 13:30:49 +00:00
|
|
|
virtual ~WebGLExtensionBase();
|
|
|
|
|
2016-05-24 16:52:00 +00:00
|
|
|
virtual void OnMarkLost() { }
|
|
|
|
|
2014-03-12 02:51:39 +00:00
|
|
|
bool mIsLost;
|
2011-10-26 20:00:44 +00:00
|
|
|
};
|
|
|
|
|
2014-11-14 04:03:50 +00:00
|
|
|
#define DECL_WEBGL_EXTENSION_GOOP \
|
2015-07-15 00:37:28 +00:00
|
|
|
virtual JSObject* WrapObject(JSContext* cx, JS::Handle<JSObject*> givenProto) override;
|
2012-10-03 21:13:05 +00:00
|
|
|
|
2015-06-01 14:17:00 +00:00
|
|
|
#define IMPL_WEBGL_EXTENSION_GOOP(WebGLExtensionType, WebGLBindingType)\
|
2014-11-14 04:03:50 +00:00
|
|
|
JSObject* \
|
2015-07-15 00:37:28 +00:00
|
|
|
WebGLExtensionType::WrapObject(JSContext* cx, JS::Handle<JSObject*> givenProto) { \
|
|
|
|
return dom::WebGLBindingType##Binding::Wrap(cx, this, givenProto); \
|
2012-10-03 21:13:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class WebGLExtensionCompressedTextureATC
|
|
|
|
: public WebGLExtensionBase
|
2011-10-01 04:45:50 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionCompressedTextureATC(WebGLContext*);
|
2012-10-03 21:13:05 +00:00
|
|
|
virtual ~WebGLExtensionCompressedTextureATC();
|
2011-10-01 04:45:50 +00:00
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
2011-10-01 04:45:50 +00:00
|
|
|
};
|
|
|
|
|
2016-01-08 02:12:22 +00:00
|
|
|
class WebGLExtensionCompressedTextureES3
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit WebGLExtensionCompressedTextureES3(WebGLContext*);
|
|
|
|
virtual ~WebGLExtensionCompressedTextureES3();
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2014-03-10 22:42:58 +00:00
|
|
|
class WebGLExtensionCompressedTextureETC1
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionCompressedTextureETC1(WebGLContext*);
|
2014-03-10 22:42:58 +00:00
|
|
|
virtual ~WebGLExtensionCompressedTextureETC1();
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
class WebGLExtensionCompressedTexturePVRTC
|
|
|
|
: public WebGLExtensionBase
|
2012-02-23 13:43:57 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionCompressedTexturePVRTC(WebGLContext*);
|
2012-10-03 21:13:05 +00:00
|
|
|
virtual ~WebGLExtensionCompressedTexturePVRTC();
|
2012-02-23 13:43:57 +00:00
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
2012-02-23 13:43:57 +00:00
|
|
|
};
|
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
class WebGLExtensionCompressedTextureS3TC
|
|
|
|
: public WebGLExtensionBase
|
2012-05-08 17:29:31 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionCompressedTextureS3TC(WebGLContext*);
|
2012-05-08 17:29:31 +00:00
|
|
|
virtual ~WebGLExtensionCompressedTextureS3TC();
|
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
2012-05-08 17:29:31 +00:00
|
|
|
};
|
|
|
|
|
2012-10-17 19:11:51 +00:00
|
|
|
class WebGLExtensionDebugRendererInfo
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionDebugRendererInfo(WebGLContext*);
|
2012-10-17 19:11:51 +00:00
|
|
|
virtual ~WebGLExtensionDebugRendererInfo();
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2014-02-11 22:37:06 +00:00
|
|
|
class WebGLExtensionDebugShaders
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionDebugShaders(WebGLContext*);
|
2014-02-11 22:37:06 +00:00
|
|
|
virtual ~WebGLExtensionDebugShaders();
|
|
|
|
|
|
|
|
void GetTranslatedShaderSource(WebGLShader* shader, nsAString& retval);
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
class WebGLExtensionDepthTexture
|
|
|
|
: public WebGLExtensionBase
|
2012-09-25 12:49:28 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionDepthTexture(WebGLContext*);
|
2012-10-03 21:13:05 +00:00
|
|
|
virtual ~WebGLExtensionDepthTexture();
|
2012-09-25 12:49:28 +00:00
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
2012-09-25 12:49:28 +00:00
|
|
|
};
|
|
|
|
|
2013-05-13 13:22:30 +00:00
|
|
|
class WebGLExtensionElementIndexUint
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionElementIndexUint(WebGLContext*);
|
2013-05-13 13:22:30 +00:00
|
|
|
virtual ~WebGLExtensionElementIndexUint();
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2016-05-04 23:39:02 +00:00
|
|
|
class WebGLExtensionEXTColorBufferFloat
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit WebGLExtensionEXTColorBufferFloat(WebGLContext*);
|
|
|
|
virtual ~WebGLExtensionEXTColorBufferFloat() { }
|
|
|
|
|
|
|
|
static bool IsSupported(const WebGLContext*);
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2014-02-13 23:00:12 +00:00
|
|
|
class WebGLExtensionFragDepth
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionFragDepth(WebGLContext*);
|
2014-02-13 23:00:12 +00:00
|
|
|
virtual ~WebGLExtensionFragDepth();
|
|
|
|
|
|
|
|
static bool IsSupported(const WebGLContext* context);
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
class WebGLExtensionLoseContext
|
|
|
|
: public WebGLExtensionBase
|
2012-09-25 12:49:28 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionLoseContext(WebGLContext*);
|
2012-10-03 21:13:05 +00:00
|
|
|
virtual ~WebGLExtensionLoseContext();
|
2012-09-25 12:49:28 +00:00
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
void LoseContext();
|
|
|
|
void RestoreContext();
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
2012-09-25 12:49:28 +00:00
|
|
|
};
|
|
|
|
|
2013-11-04 21:05:04 +00:00
|
|
|
class WebGLExtensionSRGB
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionSRGB(WebGLContext*);
|
2013-11-04 21:05:04 +00:00
|
|
|
virtual ~WebGLExtensionSRGB();
|
|
|
|
|
|
|
|
static bool IsSupported(const WebGLContext* context);
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
class WebGLExtensionStandardDerivatives
|
|
|
|
: public WebGLExtensionBase
|
2012-08-14 01:17:55 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionStandardDerivatives(WebGLContext*);
|
2012-10-03 21:13:05 +00:00
|
|
|
virtual ~WebGLExtensionStandardDerivatives();
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2014-07-24 15:58:43 +00:00
|
|
|
class WebGLExtensionShaderTextureLod
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionShaderTextureLod(WebGLContext*);
|
2014-07-24 15:58:43 +00:00
|
|
|
virtual ~WebGLExtensionShaderTextureLod();
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
class WebGLExtensionTextureFilterAnisotropic
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionTextureFilterAnisotropic(WebGLContext*);
|
2012-10-03 21:13:05 +00:00
|
|
|
virtual ~WebGLExtensionTextureFilterAnisotropic();
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
|
|
|
class WebGLExtensionTextureFloat
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2015-07-17 00:27:26 +00:00
|
|
|
static void InitWebGLFormats(webgl::FormatUsageAuthority* authority);
|
|
|
|
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionTextureFloat(WebGLContext*);
|
2012-10-03 21:13:05 +00:00
|
|
|
virtual ~WebGLExtensionTextureFloat();
|
2012-08-14 01:17:55 +00:00
|
|
|
|
2015-11-25 04:15:29 +00:00
|
|
|
static bool IsSupported(const WebGLContext*);
|
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
2012-08-14 01:17:55 +00:00
|
|
|
};
|
|
|
|
|
2013-06-10 20:00:52 +00:00
|
|
|
class WebGLExtensionTextureFloatLinear
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionTextureFloatLinear(WebGLContext*);
|
2013-06-10 20:00:52 +00:00
|
|
|
virtual ~WebGLExtensionTextureFloatLinear();
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2014-01-23 21:47:37 +00:00
|
|
|
class WebGLExtensionTextureHalfFloat
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2015-07-17 00:27:26 +00:00
|
|
|
static void InitWebGLFormats(webgl::FormatUsageAuthority* authority);
|
|
|
|
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionTextureHalfFloat(WebGLContext*);
|
2014-01-23 21:47:37 +00:00
|
|
|
virtual ~WebGLExtensionTextureHalfFloat();
|
|
|
|
|
2015-11-25 04:15:29 +00:00
|
|
|
static bool IsSupported(const WebGLContext*);
|
|
|
|
|
2014-01-23 21:47:37 +00:00
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2014-02-13 14:53:53 +00:00
|
|
|
class WebGLExtensionTextureHalfFloatLinear
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionTextureHalfFloatLinear(WebGLContext*);
|
2014-02-13 14:53:53 +00:00
|
|
|
virtual ~WebGLExtensionTextureHalfFloatLinear();
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2014-03-07 21:26:17 +00:00
|
|
|
class WebGLExtensionColorBufferFloat
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionColorBufferFloat(WebGLContext*);
|
2014-03-07 21:26:17 +00:00
|
|
|
virtual ~WebGLExtensionColorBufferFloat();
|
|
|
|
|
|
|
|
static bool IsSupported(const WebGLContext*);
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
|
|
|
class WebGLExtensionColorBufferHalfFloat
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionColorBufferHalfFloat(WebGLContext*);
|
2014-03-07 21:26:17 +00:00
|
|
|
virtual ~WebGLExtensionColorBufferHalfFloat();
|
|
|
|
|
|
|
|
static bool IsSupported(const WebGLContext*);
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2013-06-21 23:44:17 +00:00
|
|
|
class WebGLExtensionDrawBuffers
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-09-03 03:21:31 +00:00
|
|
|
explicit WebGLExtensionDrawBuffers(WebGLContext*);
|
2013-06-21 23:44:17 +00:00
|
|
|
virtual ~WebGLExtensionDrawBuffers();
|
|
|
|
|
|
|
|
void DrawBuffersWEBGL(const dom::Sequence<GLenum>& buffers);
|
|
|
|
|
|
|
|
static bool IsSupported(const WebGLContext*);
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2013-06-27 21:07:21 +00:00
|
|
|
class WebGLExtensionVertexArray
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-11-14 04:03:50 +00:00
|
|
|
explicit WebGLExtensionVertexArray(WebGLContext* webgl);
|
2013-06-27 21:07:21 +00:00
|
|
|
virtual ~WebGLExtensionVertexArray();
|
|
|
|
|
|
|
|
already_AddRefed<WebGLVertexArray> CreateVertexArrayOES();
|
|
|
|
void DeleteVertexArrayOES(WebGLVertexArray* array);
|
|
|
|
bool IsVertexArrayOES(WebGLVertexArray* array);
|
|
|
|
void BindVertexArrayOES(WebGLVertexArray* array);
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2013-08-13 22:11:01 +00:00
|
|
|
class WebGLExtensionInstancedArrays
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-11-14 04:03:50 +00:00
|
|
|
explicit WebGLExtensionInstancedArrays(WebGLContext* webgl);
|
2013-08-13 22:11:01 +00:00
|
|
|
virtual ~WebGLExtensionInstancedArrays();
|
|
|
|
|
2014-11-14 04:03:50 +00:00
|
|
|
void DrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count,
|
|
|
|
GLsizei primcount);
|
|
|
|
void DrawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type,
|
|
|
|
WebGLintptr offset, GLsizei primcount);
|
2013-09-04 12:14:43 +00:00
|
|
|
void VertexAttribDivisorANGLE(GLuint index, GLuint divisor);
|
2013-08-13 22:11:01 +00:00
|
|
|
|
2014-11-14 04:03:50 +00:00
|
|
|
static bool IsSupported(const WebGLContext* webgl);
|
2013-08-13 22:11:01 +00:00
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2014-06-14 16:07:53 +00:00
|
|
|
class WebGLExtensionBlendMinMax
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
2014-11-14 04:03:50 +00:00
|
|
|
explicit WebGLExtensionBlendMinMax(WebGLContext* webgl);
|
2014-06-14 16:07:53 +00:00
|
|
|
virtual ~WebGLExtensionBlendMinMax();
|
|
|
|
|
|
|
|
static bool IsSupported(const WebGLContext*);
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
};
|
|
|
|
|
2015-05-27 11:12:00 +00:00
|
|
|
class WebGLExtensionDisjointTimerQuery
|
|
|
|
: public WebGLExtensionBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit WebGLExtensionDisjointTimerQuery(WebGLContext* webgl);
|
|
|
|
virtual ~WebGLExtensionDisjointTimerQuery();
|
|
|
|
|
|
|
|
already_AddRefed<WebGLTimerQuery> CreateQueryEXT();
|
|
|
|
void DeleteQueryEXT(WebGLTimerQuery* query);
|
|
|
|
bool IsQueryEXT(WebGLTimerQuery* query);
|
|
|
|
void BeginQueryEXT(GLenum target, WebGLTimerQuery* query);
|
|
|
|
void EndQueryEXT(GLenum target);
|
|
|
|
void QueryCounterEXT(WebGLTimerQuery* query, GLenum target);
|
|
|
|
void GetQueryEXT(JSContext *cx, GLenum target, GLenum pname,
|
|
|
|
JS::MutableHandle<JS::Value> retval);
|
|
|
|
void GetQueryObjectEXT(JSContext *cx, WebGLTimerQuery* query,
|
|
|
|
GLenum pname,
|
|
|
|
JS::MutableHandle<JS::Value> retval);
|
|
|
|
|
|
|
|
static bool IsSupported(const WebGLContext*);
|
|
|
|
|
|
|
|
DECL_WEBGL_EXTENSION_GOOP
|
|
|
|
|
|
|
|
private:
|
2016-05-24 16:52:00 +00:00
|
|
|
virtual void OnMarkLost() override;
|
|
|
|
|
2015-05-27 11:12:00 +00:00
|
|
|
/**
|
|
|
|
* An active TIME_ELAPSED query participating in a begin/end block.
|
|
|
|
*/
|
|
|
|
WebGLRefPtr<WebGLTimerQuery> mActiveQuery;
|
|
|
|
};
|
|
|
|
|
2012-10-03 21:13:05 +00:00
|
|
|
} // namespace mozilla
|
2011-10-01 04:45:50 +00:00
|
|
|
|
2014-11-14 04:03:50 +00:00
|
|
|
#endif // WEBGL_EXTENSIONS_H_
|