| 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
|
|
|