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

Unified Diff: Source/core/html/canvas/WebGLRenderingContextBase.cpp

Issue 296053004: Removed privledged and debug webgl extension handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | « Source/core/html/canvas/WebGLRenderingContextBase.h ('k') | Source/web/WebSettingsImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLRenderingContextBase.cpp
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
index 44257b1cd9224d4839c5782592c8ff55309c4cb9..85e3e9025e6da70cf74ba57b594148729ba25870 100644
--- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
@@ -639,18 +639,6 @@ void WebGLRenderingContextBase::setupFlags()
m_isDepthStencilSupported = extensionsUtil()->isExtensionEnabled("GL_OES_packed_depth_stencil");
}
-bool WebGLRenderingContextBase::allowPrivilegedExtensions() const
-{
- if (Page* p = canvas()->document().page())
- return p->settings().privilegedWebGLExtensionsEnabled();
- return false;
-}
-
-bool WebGLRenderingContextBase::allowWebGLDebugRendererInfo() const
-{
- return true;
-}
-
void WebGLRenderingContextBase::addCompressedTextureFormat(GLenum format)
{
if (!m_compressedTextureFormats.contains(format))
@@ -2128,10 +2116,6 @@ bool WebGLRenderingContextBase::ExtensionTracker::matchesNameWithPrefixes(const
bool WebGLRenderingContextBase::extensionSupportedAndAllowed(const ExtensionTracker* tracker)
{
- if (tracker->webglDebugRendererInfo() && !allowWebGLDebugRendererInfo())
- return false;
- if (tracker->privileged() && !allowPrivilegedExtensions())
- return false;
if (tracker->draft() && !RuntimeEnabledFeatures::webGLDraftExtensionsEnabled())
return false;
if (!tracker->supported(this))
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.h ('k') | Source/web/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698