Index: Source/core/html/canvas/WebGLRenderingContext.h |
diff --git a/Source/core/html/canvas/WebGLRenderingContext.h b/Source/core/html/canvas/WebGLRenderingContext.h |
index 9f4cb3dc302198a823e8430182e584585a863957..c55146f4e4f5259c71b24445c38ae129e50f0a79 100644 |
--- a/Source/core/html/canvas/WebGLRenderingContext.h |
+++ b/Source/core/html/canvas/WebGLRenderingContext.h |
@@ -539,6 +539,7 @@ public: |
DraftExtension = 0x01, |
PrivilegedExtension = 0x02, |
PrefixedExtension = 0x04, |
+ WebGLDebugRendererInfoExtension = 0x08, |
}; |
class ExtensionTracker { |
@@ -547,6 +548,7 @@ public: |
: m_privileged(flags & PrivilegedExtension) |
, m_draft(flags & DraftExtension) |
, m_prefixed(flags & PrefixedExtension) |
+ , m_webglDebugRendererInfo(flags & WebGLDebugRendererInfoExtension) |
, m_prefixes(prefixes) |
{ |
} |
@@ -570,6 +572,11 @@ public: |
return m_draft; |
} |
+ bool webglDebugRendererInfo() const |
+ { |
+ return m_webglDebugRendererInfo; |
+ } |
+ |
bool matchesNameWithPrefixes(const String&) const; |
virtual PassRefPtr<WebGLExtension> getExtension(WebGLRenderingContext*) const = 0; |
@@ -581,6 +588,7 @@ public: |
bool m_privileged; |
bool m_draft; |
bool m_prefixed; |
+ bool m_webglDebugRendererInfo; |
const char* const* m_prefixes; |
}; |
@@ -860,6 +868,11 @@ public: |
// a Safari or Chrome extension. |
bool allowPrivilegedExtensions() const; |
+ // Determine if WEBGL_debug_renderer_info extension is enabled. For the |
+ // moment it can be enabled either through a chromium finch experiment |
+ // or for privileged code in the browser. |
+ bool allowWebGLDebugRendererInfo() const; |
+ |
enum ConsoleDisplayPreference { |
DisplayInConsole, |
DontDisplayInConsole |