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

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

Issue 14860016: Implement OES_texture_float_linear and OES_texture_half_float_linear extensions in WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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/OESTextureHalfFloatLinear.cpp
diff --git a/Source/core/html/canvas/WebGLDepthTexture.cpp b/Source/core/html/canvas/OESTextureHalfFloatLinear.cpp
similarity index 68%
copy from Source/core/html/canvas/WebGLDepthTexture.cpp
copy to Source/core/html/canvas/OESTextureHalfFloatLinear.cpp
index a15e91a7b4ebb915d4c259b83ed0ad178d37fb36..4b222ec419f23ab549d4fe248d13f64c0fed101c 100644
--- a/Source/core/html/canvas/WebGLDepthTexture.cpp
+++ b/Source/core/html/canvas/OESTextureHalfFloatLinear.cpp
@@ -25,43 +25,41 @@
#include "config.h"
-#include "core/html/canvas/WebGLDepthTexture.h"
+#include "core/html/canvas/OESTextureHalfFloatLinear.h"
#include "core/platform/graphics/Extensions3D.h"
namespace WebCore {
-WebGLDepthTexture::WebGLDepthTexture(WebGLRenderingContext* context)
+OESTextureHalfFloatLinear::OESTextureHalfFloatLinear(WebGLRenderingContext* context)
: WebGLExtension(context)
{
- context->graphicsContext3D()->getExtensions()->ensureEnabled("GL_CHROMIUM_depth_texture");
+ context->graphicsContext3D()->getExtensions()->ensureEnabled("GL_OES_texture_half_float_linear");
}
-WebGLDepthTexture::~WebGLDepthTexture()
+OESTextureHalfFloatLinear::~OESTextureHalfFloatLinear()
{
}
-WebGLExtension::ExtensionName WebGLDepthTexture::getName() const
+WebGLExtension::ExtensionName OESTextureHalfFloatLinear::getName() const
{
- return WebGLDepthTextureName;
+ return OESTextureHalfFloatLinearName;
}
-PassOwnPtr<WebGLDepthTexture> WebGLDepthTexture::create(WebGLRenderingContext* context)
+PassOwnPtr<OESTextureHalfFloatLinear> OESTextureHalfFloatLinear::create(WebGLRenderingContext* context)
{
- return adoptPtr(new WebGLDepthTexture(context));
+ return adoptPtr(new OESTextureHalfFloatLinear(context));
}
-bool WebGLDepthTexture::supported(WebGLRenderingContext* context)
+bool OESTextureHalfFloatLinear::supported(WebGLRenderingContext* context)
{
Extensions3D* extensions = context->graphicsContext3D()->getExtensions();
- return extensions->supports("GL_CHROMIUM_depth_texture")
- || extensions->supports("GL_OES_depth_texture")
- || extensions->supports("GL_ARB_depth_texture");
+ return extensions->supports("GL_OES_texture_half_float_linear");
}
-const char* WebGLDepthTexture::getExtensionName()
+const char* OESTextureHalfFloatLinear::getExtensionName()
{
- return "WEBGL_depth_texture";
+ return "OES_texture_half_float_linear";
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698