Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / html / canvas / WebGLDepthTexture.cpp
index 37cee2d..f3c5c65 100644 (file)
@@ -33,7 +33,7 @@ WebGLDepthTexture::WebGLDepthTexture(WebGLRenderingContext* context)
     : WebGLExtension(context)
 {
     ScriptWrappable::init(this);
-    context->graphicsContext3D()->ensureExtensionEnabled("GL_CHROMIUM_depth_texture");
+    context->extensionsUtil()->ensureExtensionEnabled("GL_CHROMIUM_depth_texture");
 }
 
 WebGLDepthTexture::~WebGLDepthTexture()
@@ -52,15 +52,15 @@ PassRefPtr<WebGLDepthTexture> WebGLDepthTexture::create(WebGLRenderingContext* c
 
 bool WebGLDepthTexture::supported(WebGLRenderingContext* context)
 {
-    GraphicsContext3D* contextSupport = context->graphicsContext3D();
+    Extensions3DUtil* extensionsUtil = context->extensionsUtil();
     // 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 (!contextSupport->supportsExtension("GL_OES_packed_depth_stencil"))
+    if (!extensionsUtil->supportsExtension("GL_OES_packed_depth_stencil"))
         return false;
-    return contextSupport->supportsExtension("GL_CHROMIUM_depth_texture")
-        || contextSupport->supportsExtension("GL_OES_depth_texture")
-        || contextSupport->supportsExtension("GL_ARB_depth_texture");
+    return extensionsUtil->supportsExtension("GL_CHROMIUM_depth_texture")
+        || extensionsUtil->supportsExtension("GL_OES_depth_texture")
+        || extensionsUtil->supportsExtension("GL_ARB_depth_texture");
 }
 
 const char* WebGLDepthTexture::extensionName()