Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Unified Diff: Source/core/html/canvas/EXTFragDepth.cpp

Issue 127163003: Completely removed the Extensions3D class (Take 2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/canvas/EXTFragDepth.cpp
diff --git a/Source/core/html/canvas/EXTFragDepth.cpp b/Source/core/html/canvas/EXTFragDepth.cpp
index a2484d283d3c7afacb6a038ea1a23daa188c607b..9608e0be0f4ac55009039e160c6696e0dd0efb4d 100644
--- a/Source/core/html/canvas/EXTFragDepth.cpp
+++ b/Source/core/html/canvas/EXTFragDepth.cpp
@@ -27,15 +27,13 @@
#include "core/html/canvas/EXTFragDepth.h"
-#include "platform/graphics/Extensions3D.h"
-
namespace WebCore {
EXTFragDepth::EXTFragDepth(WebGLRenderingContext* context)
: WebGLExtension(context)
{
ScriptWrappable::init(this);
- context->graphicsContext3D()->extensions()->ensureEnabled("GL_EXT_frag_depth");
+ context->graphicsContext3D()->ensureExtensionEnabled("GL_EXT_frag_depth");
}
EXTFragDepth::~EXTFragDepth()
@@ -54,8 +52,7 @@ PassRefPtr<EXTFragDepth> EXTFragDepth::create(WebGLRenderingContext* context)
bool EXTFragDepth::supported(WebGLRenderingContext* context)
{
- Extensions3D* extensions = context->graphicsContext3D()->extensions();
- return extensions->supports("GL_EXT_frag_depth");
+ return context->graphicsContext3D()->supportsExtension("GL_EXT_frag_depth");
}
const char* EXTFragDepth::extensionName()
« no previous file with comments | « Source/core/html/canvas/ANGLEInstancedArrays.cpp ('k') | Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698