summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/canvas/WebGLDebugShaders.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/canvas/WebGLDebugShaders.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLDebugShaders.cpp')
-rw-r--r--Source/WebCore/html/canvas/WebGLDebugShaders.cpp20
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