Index: Source/core/html/canvas/WebGLDepthTexture.cpp |
diff --git a/Source/core/html/canvas/WebGLDepthTexture.cpp b/Source/core/html/canvas/WebGLDepthTexture.cpp |
index d42019ff82f8058a89862bfb2d0995e952fade73..37cee2d4aedd183cbe2e887cd606238b3b4ee8d9 100644 |
--- a/Source/core/html/canvas/WebGLDepthTexture.cpp |
+++ b/Source/core/html/canvas/WebGLDepthTexture.cpp |
@@ -27,15 +27,13 @@ |
#include "core/html/canvas/WebGLDepthTexture.h" |
-#include "platform/graphics/Extensions3D.h" |
- |
namespace WebCore { |
WebGLDepthTexture::WebGLDepthTexture(WebGLRenderingContext* context) |
: WebGLExtension(context) |
{ |
ScriptWrappable::init(this); |
- context->graphicsContext3D()->extensions()->ensureEnabled("GL_CHROMIUM_depth_texture"); |
+ context->graphicsContext3D()->ensureExtensionEnabled("GL_CHROMIUM_depth_texture"); |
} |
WebGLDepthTexture::~WebGLDepthTexture() |
@@ -54,15 +52,15 @@ PassRefPtr<WebGLDepthTexture> WebGLDepthTexture::create(WebGLRenderingContext* c |
bool WebGLDepthTexture::supported(WebGLRenderingContext* context) |
{ |
- Extensions3D* extensions = context->graphicsContext3D()->extensions(); |
+ GraphicsContext3D* contextSupport = context->graphicsContext3D(); |
// Emulating the UNSIGNED_INT_24_8_WEBGL texture internal format in terms |
// of two separate texture objects is too difficult, so disable depth |
// textures unless a packed depth/stencil format is available. |
- if (!extensions->supports("GL_OES_packed_depth_stencil")) |
+ if (!contextSupport->supportsExtension("GL_OES_packed_depth_stencil")) |
return false; |
- return extensions->supports("GL_CHROMIUM_depth_texture") |
- || extensions->supports("GL_OES_depth_texture") |
- || extensions->supports("GL_ARB_depth_texture"); |
+ return contextSupport->supportsExtension("GL_CHROMIUM_depth_texture") |
+ || contextSupport->supportsExtension("GL_OES_depth_texture") |
+ || contextSupport->supportsExtension("GL_ARB_depth_texture"); |
} |
const char* WebGLDepthTexture::extensionName() |