| 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..88d5e11ba8093f5d3476bfdd180656ad76530872 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 {
|
| @@ -548,6 +549,7 @@ public:
|
| , m_draft(flags & DraftExtension)
|
| , m_prefixed(flags & PrefixedExtension)
|
| , m_prefixes(prefixes)
|
| + , m_webglDebugRendererInfo(flags & WebGLDebugRendererInfoExtension)
|
| {
|
| }
|
|
|
| @@ -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
|
|
|