Chromium Code Reviews| Index: Source/core/html/canvas/WebGLRenderingContextBase.cpp |
| diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
| index 4c7cc57438bcead5516d20fa34c7911ad4e7c9e6..1f1288f7f0fcd95bffbb33106e102646e8991c1f 100644 |
| --- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
| +++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
| @@ -3927,8 +3927,9 @@ void WebGLRenderingContextBase::texImage2D(GLenum target, GLint level, GLenum in |
| // Otherwise, it will fall back to the normal SW path. |
| WebGLTexture* texture = validateTextureBinding("texImage2D", target, true); |
| ASSERT(texture); |
| - if (Extensions3DUtil::canUseCopyTextureCHROMIUM(target, internalformat, type, level)) { |
| - if (video->copyVideoTextureToPlatformTexture(webContext(), texture->object(), internalformat, type, m_unpackPremultiplyAlpha, m_unpackFlipY)) { |
| + if (GL_TEXTURE_2D == target) { |
|
Sami
2015/06/19 06:15:58
I assume the intention is that we want to try usin
|
| + if (Extensions3DUtil::canUseCopyTextureCHROMIUM(target, internalformat, type, level) |
| + && video->copyVideoTextureToPlatformTexture(webContext(), texture->object(), internalformat, type, m_unpackPremultiplyAlpha, m_unpackFlipY)) { |
| texture->setLevelInfo(target, level, internalformat, video->videoWidth(), video->videoHeight(), 1, type); |
| return; |
| } |