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

Unified Diff: Source/core/html/canvas/ANGLEInstancedArrays.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/ANGLEInstancedArrays.h ('k') | Source/core/html/canvas/EXTFragDepth.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/ANGLEInstancedArrays.cpp
diff --git a/Source/core/html/canvas/ANGLEInstancedArrays.cpp b/Source/core/html/canvas/ANGLEInstancedArrays.cpp
index 9392e147a949e22ff8e98d806a32dcbac30e2faa..0f567a2d62e9d186a3e8540d947cee0e516e1f03 100644
--- a/Source/core/html/canvas/ANGLEInstancedArrays.cpp
+++ b/Source/core/html/canvas/ANGLEInstancedArrays.cpp
@@ -33,7 +33,6 @@
#include "core/html/canvas/ANGLEInstancedArrays.h"
#include "core/html/canvas/WebGLRenderingContext.h"
-#include "platform/graphics/Extensions3D.h"
namespace WebCore {
@@ -41,7 +40,7 @@ ANGLEInstancedArrays::ANGLEInstancedArrays(WebGLRenderingContext* context)
: WebGLExtension(context)
{
ScriptWrappable::init(this);
- context->graphicsContext3D()->extensions()->ensureEnabled("GL_ANGLE_instanced_arrays");
+ context->graphicsContext3D()->ensureExtensionEnabled("GL_ANGLE_instanced_arrays");
}
ANGLEInstancedArrays::~ANGLEInstancedArrays()
@@ -60,8 +59,7 @@ PassRefPtr<ANGLEInstancedArrays> ANGLEInstancedArrays::create(WebGLRenderingCont
bool ANGLEInstancedArrays::supported(WebGLRenderingContext* context)
{
- Extensions3D* extensions = context->graphicsContext3D()->extensions();
- return extensions->supports("GL_ANGLE_instanced_arrays");
+ return context->graphicsContext3D()->supportsExtension("GL_ANGLE_instanced_arrays");
}
const char* ANGLEInstancedArrays::extensionName()
« no previous file with comments | « Source/core/html/canvas/ANGLEInstancedArrays.h ('k') | Source/core/html/canvas/EXTFragDepth.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698