| Index: third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp b/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
|
| index aa333ff32c41745591b593415838723cd9eadab7..10c38f86e8c7ec776395bc4e0fbb4a30cff7c150 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
|
| @@ -37,6 +37,7 @@ WebGLTexture* WebGLTexture::create(WebGLRenderingContextBase* ctx)
|
|
|
| WebGLTexture::WebGLTexture(WebGLRenderingContextBase* ctx)
|
| : WebGLSharedPlatform3DObject(ctx)
|
| + , m_colorFormat(0)
|
| , m_target(0)
|
| {
|
| GLuint texture;
|
| @@ -60,6 +61,13 @@ void WebGLTexture::setTarget(GLenum target)
|
| m_target = target;
|
| }
|
|
|
| +void WebGLTexture::setColorFormat(GLenum format)
|
| +{
|
| + if (!object())
|
| + return;
|
| + m_colorFormat = format;
|
| +}
|
| +
|
| void WebGLTexture::deleteObjectImpl(gpu::gles2::GLES2Interface* gl)
|
| {
|
| gl->DeleteTextures(1, &m_object);
|
|
|