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

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

Powered by Google App Engine
This is Rietveld 408576698