summaryrefslogtreecommitdiffstats
path: root/WebCore/html/canvas/WebGLRenderingContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/canvas/WebGLRenderingContext.h')
-rw-r--r--WebCore/html/canvas/WebGLRenderingContext.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/WebCore/html/canvas/WebGLRenderingContext.h b/WebCore/html/canvas/WebGLRenderingContext.h
index 5f66248..950d704 100644
--- a/WebCore/html/canvas/WebGLRenderingContext.h
+++ b/WebCore/html/canvas/WebGLRenderingContext.h
@@ -54,7 +54,6 @@ class HTMLVideoElement;
class ImageBuffer;
class ImageData;
class IntSize;
-class WebKitCSSMatrix;
class WebGLRenderingContext : public CanvasRenderingContext {
public:
@@ -297,6 +296,7 @@ public:
WebGLRenderingContext(HTMLCanvasElement*, PassRefPtr<GraphicsContext3D>);
void initializeNewContext();
+ void setupFlags();
void addObject(WebGLObject*);
void detachAndRemoveAllObjects();
@@ -312,9 +312,16 @@ public:
markContextChanged();
}
- bool isGLES2Compliant();
- bool isGLES2NPOTStrict();
- bool isErrorGeneratedOnOutOfBoundsAccesses();
+ // Query whether it is built on top of compliant GLES2 implementation.
+ bool isGLES2Compliant() { return m_isGLES2Compliant; }
+ // Query if the GL implementation is NPOT strict.
+ bool isGLES2NPOTStrict() { return m_isGLES2NPOTStrict; }
+ // Query if the GL implementation generates errors on out-of-bounds buffer accesses.
+ bool isErrorGeneratedOnOutOfBoundsAccesses() { return m_isErrorGeneratedOnOutOfBoundsAccesses; }
+ // Query if the GL implementation initializes textures/renderbuffers to 0.
+ bool isResourceSafe() { return m_isResourceSafe; }
+ // Query if depth_stencil buffer is supported.
+ bool isDepthStencilSupported() { return m_isDepthStencilSupported; }
// Helper to return the size in bytes of OpenGL data types
// like GL_FLOAT, GL_INT, etc.
@@ -422,6 +429,7 @@ public:
int m_unpackAlignment;
bool m_unpackFlipY;
bool m_unpackPremultiplyAlpha;
+ unsigned long m_unpackColorspaceConversion;
bool m_contextLost;
long m_stencilBits;
@@ -429,6 +437,10 @@ public:
long m_stencilFuncRef; // Note that this is the user specified value, not the internal clamped value.
unsigned long m_stencilFuncMask;
+ bool m_isGLES2Compliant;
+ bool m_isGLES2NPOTStrict;
+ bool m_isErrorGeneratedOnOutOfBoundsAccesses;
+ bool m_isResourceSafe;
bool m_isDepthStencilSupported;
// Helpers for getParameter and others