Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1067)

Unified Diff: Source/core/html/canvas/WebGLRenderingContext.h

Issue 51323003: Expose WEBGL_debug_renderer_info through a chromium finch experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix member init order Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698