From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/canvas/WebGLDebugShaders.cpp | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'Source/WebCore/html/canvas/WebGLDebugShaders.cpp') diff --git a/Source/WebCore/html/canvas/WebGLDebugShaders.cpp b/Source/WebCore/html/canvas/WebGLDebugShaders.cpp index 0c028265c..ed4281309 100644 --- a/Source/WebCore/html/canvas/WebGLDebugShaders.cpp +++ b/Source/WebCore/html/canvas/WebGLDebugShaders.cpp @@ -30,12 +30,12 @@ #include "WebGLDebugShaders.h" #include "Extensions3D.h" -#include "WebGLRenderingContext.h" +#include "WebGLRenderingContextBase.h" #include "WebGLShader.h" namespace WebCore { -WebGLDebugShaders::WebGLDebugShaders(WebGLRenderingContext* context) +WebGLDebugShaders::WebGLDebugShaders(WebGLRenderingContextBase& context) : WebGLExtension(context) { } @@ -49,19 +49,13 @@ WebGLExtension::ExtensionName WebGLDebugShaders::getName() const return WebGLDebugShadersName; } -OwnPtr WebGLDebugShaders::create(WebGLRenderingContext* context) +String WebGLDebugShaders::getTranslatedShaderSource(WebGLShader* shader) { - return adoptPtr(new WebGLDebugShaders(context)); -} - -String WebGLDebugShaders::getTranslatedShaderSource(WebGLShader* shader, ExceptionCode& ec) -{ - UNUSED_PARAM(ec); - if (m_context->isContextLost()) + if (m_context.isContextLost()) return String(); - if (!m_context->validateWebGLObject("getTranslatedShaderSource", shader)) - return ""; - return m_context->graphicsContext3D()->getExtensions()->getTranslatedShaderSourceANGLE(shader->object()); + if (!m_context.validateWebGLObject("getTranslatedShaderSource", shader)) + return emptyString(); + return m_context.graphicsContext3D()->getExtensions().getTranslatedShaderSourceANGLE(shader->object()); } } // namespace WebCore -- cgit v1.2.1