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

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

Powered by Google App Engine
This is Rietveld 408576698