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

Unified Diff: Source/core/html/canvas/OESTextureFloat.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/OESTextureFloat.cpp
diff --git a/Source/core/html/canvas/OESTextureFloat.cpp b/Source/core/html/canvas/OESTextureFloat.cpp
index 99d1387376ca3de38af88024da282007297e1ac0..fffed2754513e772a5132bf0e1ec3cb389d71444 100644
--- a/Source/core/html/canvas/OESTextureFloat.cpp
+++ b/Source/core/html/canvas/OESTextureFloat.cpp
@@ -26,7 +26,6 @@
#include "config.h"
#include "core/html/canvas/OESTextureFloat.h"
-#include "platform/graphics/Extensions3D.h"
namespace WebCore {
@@ -34,7 +33,7 @@ OESTextureFloat::OESTextureFloat(WebGLRenderingContext* context)
: WebGLExtension(context)
{
ScriptWrappable::init(this);
- context->graphicsContext3D()->extensions()->ensureEnabled("GL_OES_texture_float");
+ context->graphicsContext3D()->ensureExtensionEnabled("GL_OES_texture_float");
}
OESTextureFloat::~OESTextureFloat()
@@ -53,8 +52,7 @@ PassRefPtr<OESTextureFloat> OESTextureFloat::create(WebGLRenderingContext* conte
bool OESTextureFloat::supported(WebGLRenderingContext* context)
{
- Extensions3D* extensions = context->graphicsContext3D()->extensions();
- return extensions->supports("GL_OES_texture_float");
+ return context->graphicsContext3D()->supportsExtension("GL_OES_texture_float");
}
const char* OESTextureFloat::extensionName()
« no previous file with comments | « Source/core/html/canvas/OESStandardDerivatives.cpp ('k') | Source/core/html/canvas/OESTextureFloatLinear.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698