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

Unified Diff: Source/core/html/canvas/WebGLCompressedTextureATC.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/WebGLCompressedTextureATC.cpp
diff --git a/Source/core/html/canvas/WebGLCompressedTextureATC.cpp b/Source/core/html/canvas/WebGLCompressedTextureATC.cpp
index dad7ff49b059378b30c9eadaffb2c7bfe9662f9f..d5f6824ebc070e97836981aa38691a74439ab604 100644
--- a/Source/core/html/canvas/WebGLCompressedTextureATC.cpp
+++ b/Source/core/html/canvas/WebGLCompressedTextureATC.cpp
@@ -27,17 +27,15 @@
#include "core/html/canvas/WebGLCompressedTextureATC.h"
-#include "platform/graphics/Extensions3D.h"
-
namespace WebCore {
WebGLCompressedTextureATC::WebGLCompressedTextureATC(WebGLRenderingContext* context)
: WebGLExtension(context)
{
ScriptWrappable::init(this);
- context->addCompressedTextureFormat(Extensions3D::COMPRESSED_ATC_RGB_AMD);
- context->addCompressedTextureFormat(Extensions3D::COMPRESSED_ATC_RGBA_EXPLICIT_ALPHA_AMD);
- context->addCompressedTextureFormat(Extensions3D::COMPRESSED_ATC_RGBA_INTERPOLATED_ALPHA_AMD);
+ context->addCompressedTextureFormat(GC3D_COMPRESSED_ATC_RGB_AMD);
+ context->addCompressedTextureFormat(GC3D_COMPRESSED_ATC_RGBA_EXPLICIT_ALPHA_AMD);
+ context->addCompressedTextureFormat(GC3D_COMPRESSED_ATC_RGBA_INTERPOLATED_ALPHA_AMD);
}
WebGLCompressedTextureATC::~WebGLCompressedTextureATC()
@@ -56,8 +54,7 @@ PassRefPtr<WebGLCompressedTextureATC> WebGLCompressedTextureATC::create(WebGLRen
bool WebGLCompressedTextureATC::supported(WebGLRenderingContext* context)
{
- Extensions3D* extensions = context->graphicsContext3D()->extensions();
- return extensions->supports("GL_AMD_compressed_ATC_texture");
+ return context->graphicsContext3D()->supportsExtension("GL_AMD_compressed_ATC_texture");
}
const char* WebGLCompressedTextureATC::extensionName()
« no previous file with comments | « Source/core/html/canvas/OESVertexArrayObject.cpp ('k') | Source/core/html/canvas/WebGLCompressedTexturePVRTC.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698