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

Unified Diff: Source/core/html/canvas/EXTTextureFilterAnisotropic.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
« no previous file with comments | « Source/core/html/canvas/EXTFragDepth.cpp ('k') | Source/core/html/canvas/OESElementIndexUint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp
diff --git a/Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp b/Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp
index 231c3c586626049f3fca6544ce0f5f881f07685c..a05bea6a666b609ae3356f70a7e86eb81521fba2 100644
--- a/Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp
+++ b/Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp
@@ -26,7 +26,6 @@
#include "config.h"
#include "core/html/canvas/EXTTextureFilterAnisotropic.h"
-#include "platform/graphics/Extensions3D.h"
namespace WebCore {
@@ -34,7 +33,7 @@ EXTTextureFilterAnisotropic::EXTTextureFilterAnisotropic(WebGLRenderingContext*
: WebGLExtension(context)
{
ScriptWrappable::init(this);
- context->graphicsContext3D()->extensions()->ensureEnabled("GL_EXT_texture_filter_anisotropic");
+ context->graphicsContext3D()->ensureExtensionEnabled("GL_EXT_texture_filter_anisotropic");
}
EXTTextureFilterAnisotropic::~EXTTextureFilterAnisotropic()
@@ -53,8 +52,7 @@ PassRefPtr<EXTTextureFilterAnisotropic> EXTTextureFilterAnisotropic::create(WebG
bool EXTTextureFilterAnisotropic::supported(WebGLRenderingContext* context)
{
- Extensions3D* extensions = context->graphicsContext3D()->extensions();
- return extensions->supports("GL_EXT_texture_filter_anisotropic");
+ return context->graphicsContext3D()->supportsExtension("GL_EXT_texture_filter_anisotropic");
}
const char* EXTTextureFilterAnisotropic::extensionName()
« no previous file with comments | « Source/core/html/canvas/EXTFragDepth.cpp ('k') | Source/core/html/canvas/OESElementIndexUint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698