diff options
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLDebugShaders.cpp')
-rw-r--r-- | Source/WebCore/html/canvas/WebGLDebugShaders.cpp | 20 |
1 files changed, 7 insertions, 13 deletions
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> 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 |