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

Unified Diff: Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp

Issue 15876011: Make WebGL extensions get lost when context is lost. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/EXTTextureFilterAnisotropic.cpp
diff --git a/Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp b/Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp
index 6128c259188f658e22d65216413d0e38d43f7595..50cc8d4208d655d07714ffade16365d58a65ce36 100644
--- a/Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp
+++ b/Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp
@@ -34,13 +34,18 @@ EXTTextureFilterAnisotropic::EXTTextureFilterAnisotropic(WebGLRenderingContext*
: WebGLExtension(context)
{
ScriptWrappable::init(this);
- context->graphicsContext3D()->getExtensions()->ensureEnabled("GL_EXT_texture_filter_anisotropic");
+ enable();
}
EXTTextureFilterAnisotropic::~EXTTextureFilterAnisotropic()
{
}
+void EXTTextureFilterAnisotropic::enable()
+{
+ m_context->graphicsContext3D()->getExtensions()->ensureEnabled("GL_EXT_texture_filter_anisotropic");
+}
+
WebGLExtension::ExtensionName EXTTextureFilterAnisotropic::getName() const
{
return EXTTextureFilterAnisotropicName;

Powered by Google App Engine
This is Rietveld 408576698