Index: Source/core/html/canvas/WebGLRenderingContextBase.h |
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.h b/Source/core/html/canvas/WebGLRenderingContextBase.h |
index 7eb2f8033950f40b0ee3670dc9fc340b355f5f67..cad06d85a7ea88659835f6a1a2cab64f362a709c 100644 |
--- a/Source/core/html/canvas/WebGLRenderingContextBase.h |
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.h |
@@ -538,19 +538,15 @@ protected: |
ApprovedExtension = 0x00, |
// Extension that is behind the draft extensions runtime flag: |
DraftExtension = 0x01, |
- PrivilegedExtension = 0x02, |
// Extension that is still in draft state, but has been selectively enabled by default under a prefix. Do not use |
// this for enabling new draft extensions; use the DraftExtension flag instead, and do not use vendor prefixes: |
EnabledDraftExtension = 0x04, |
- WebGLDebugRendererInfoExtension = 0x08, |
}; |
class ExtensionTracker { |
public: |
ExtensionTracker(ExtensionFlags flags, const char* const* prefixes) |
- : m_privileged(flags & PrivilegedExtension) |
- , m_draft(flags & DraftExtension) |
- , m_webglDebugRendererInfo(flags & WebGLDebugRendererInfoExtension) |
+ : m_draft(flags & DraftExtension) |
, m_prefixes(prefixes) |
{ |
} |
@@ -559,21 +555,11 @@ protected: |
{ |
} |
- bool privileged() const |
- { |
- return m_privileged; |
- } |
- |
bool draft() const |
{ |
return m_draft; |
} |
- bool webglDebugRendererInfo() const |
- { |
- return m_webglDebugRendererInfo; |
- } |
- |
const char* const* prefixes() const; |
bool matchesNameWithPrefixes(const String&) const; |
@@ -583,9 +569,7 @@ protected: |
virtual void loseExtension() = 0; |
private: |
- bool m_privileged; |
bool m_draft; |
- bool m_webglDebugRendererInfo; |
const char* const* m_prefixes; |
}; |
@@ -866,15 +850,6 @@ protected: |
// Helper for restoration after context lost. |
void maybeRestoreContext(Timer<WebGLRenderingContextBase>*); |
- // Determine if we are running privileged code in the browser, for example, |
- // 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 |