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

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 typo in comments 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
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
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | Source/core/html/canvas/WebGLRenderingContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698