summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/canvas/WebGLDepthTexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLDepthTexture.cpp')
-rw-r--r--Source/WebCore/html/canvas/WebGLDepthTexture.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/Source/WebCore/html/canvas/WebGLDepthTexture.cpp b/Source/WebCore/html/canvas/WebGLDepthTexture.cpp
index 71a8da7d4..29f9b64e4 100644
--- a/Source/WebCore/html/canvas/WebGLDepthTexture.cpp
+++ b/Source/WebCore/html/canvas/WebGLDepthTexture.cpp
@@ -33,7 +33,7 @@
namespace WebCore {
-WebGLDepthTexture::WebGLDepthTexture(WebGLRenderingContext* context)
+WebGLDepthTexture::WebGLDepthTexture(WebGLRenderingContextBase& context)
: WebGLExtension(context)
{
}
@@ -47,17 +47,11 @@ WebGLExtension::ExtensionName WebGLDepthTexture::getName() const
return WebGLDepthTextureName;
}
-OwnPtr<WebGLDepthTexture> WebGLDepthTexture::create(WebGLRenderingContext* context)
+bool WebGLDepthTexture::supported(GraphicsContext3D& context)
{
- return adoptPtr(new WebGLDepthTexture(context));
-}
-
-bool WebGLDepthTexture::supported(GraphicsContext3D* context)
-{
- Extensions3D* extensions = context->getExtensions();
- return extensions->supports("GL_CHROMIUM_depth_texture")
- || extensions->supports("GL_OES_depth_texture")
- || extensions->supports("GL_ARB_depth_texture");
+ Extensions3D& extensions = context.getExtensions();
+ return extensions.supports("GL_OES_depth_texture")
+ || extensions.supports("GL_ARB_depth_texture");
}
} // namespace WebCore