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

Unified Diff: Source/core/html/canvas/OESTextureFloatLinear.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/OESTextureFloatLinear.cpp
diff --git a/Source/core/html/canvas/OESElementIndexUint.cpp b/Source/core/html/canvas/OESTextureFloatLinear.cpp
similarity index 70%
copy from Source/core/html/canvas/OESElementIndexUint.cpp
copy to Source/core/html/canvas/OESTextureFloatLinear.cpp
index ce7f2670b076ad64dbf891d52b58e4707b22943c..454df1f39b7f79c63a425f7a42f8b300a6e1810c 100644
--- a/Source/core/html/canvas/OESElementIndexUint.cpp
+++ b/Source/core/html/canvas/OESTextureFloatLinear.cpp
@@ -25,40 +25,41 @@
#include "config.h"
-#include "core/html/canvas/OESElementIndexUint.h"
+#include "core/html/canvas/OESTextureFloatLinear.h"
+
#include "core/platform/graphics/Extensions3D.h"
namespace WebCore {
-OESElementIndexUint::OESElementIndexUint(WebGLRenderingContext* context)
+OESTextureFloatLinear::OESTextureFloatLinear(WebGLRenderingContext* context)
: WebGLExtension(context)
{
- context->graphicsContext3D()->getExtensions()->ensureEnabled("GL_OES_element_index_uint");
+ context->graphicsContext3D()->getExtensions()->ensureEnabled("GL_OES_texture_float_linear");
}
-OESElementIndexUint::~OESElementIndexUint()
+OESTextureFloatLinear::~OESTextureFloatLinear()
{
}
-WebGLExtension::ExtensionName OESElementIndexUint::getName() const
+WebGLExtension::ExtensionName OESTextureFloatLinear::getName() const
{
- return OESElementIndexUintName;
+ return OESTextureFloatLinearName;
}
-PassOwnPtr<OESElementIndexUint> OESElementIndexUint::create(WebGLRenderingContext* context)
+PassOwnPtr<OESTextureFloatLinear> OESTextureFloatLinear::create(WebGLRenderingContext* context)
{
- return adoptPtr(new OESElementIndexUint(context));
+ return adoptPtr(new OESTextureFloatLinear(context));
}
-bool OESElementIndexUint::supported(WebGLRenderingContext* context)
+bool OESTextureFloatLinear::supported(WebGLRenderingContext* context)
{
Extensions3D* extensions = context->graphicsContext3D()->getExtensions();
- return extensions->supports("GL_OES_element_index_uint");
+ return extensions->supports("GL_OES_texture_float_linear");
}
-const char* OESElementIndexUint::getExtensionName()
+const char* OESTextureFloatLinear::getExtensionName()
{
- return "OES_element_index_uint";
+ return "OES_texture_float_linear";
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698