Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
index f516c0de10c4a3346599dfedc00c53128916a293..f83b52215e735d98bbb78fafec5774e0708e3d6b 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
@@ -4376,7 +4376,7 @@ void WebGLRenderingContextBase::texImageHelperHTMLCanvasElement(TexImageFunction |
// TODO(crbug.com/622958): relax the constrains if copyTextureCHROMIUM is upgraded to handle more formats. |
if (!canvas->renderingContext() || !canvas->renderingContext()->isAccelerated() || !canUseTexImageByGPU(functionID, internalformat, type)) { |
// 2D canvas has only FrontBuffer. |
- texImageImpl(functionID, target, level, internalformat, xoffset, yoffset, zoffset, format, type, canvas->copiedImage(FrontBuffer, PreferAcceleration).get(), |
+ texImageImpl(functionID, target, level, internalformat, xoffset, yoffset, zoffset, format, type, canvas->copiedImage(FrontBuffer, PreferAcceleration), |
WebGLImageConversion::HtmlDomCanvas, m_unpackFlipY, m_unpackPremultiplyAlpha); |
return; |
} |
@@ -4390,7 +4390,7 @@ void WebGLRenderingContextBase::texImageHelperHTMLCanvasElement(TexImageFunction |
} else { |
DCHECK_EQ(functionID, TexSubImage3D); |
// FIXME: Implement GPU-to-GPU copy path (crbug.com/586269). |
- texImageImpl(TexSubImage3D, target, level, 0, xoffset, yoffset, zoffset, format, type, canvas->copiedImage(FrontBuffer, PreferAcceleration).get(), |
+ texImageImpl(TexSubImage3D, target, level, 0, xoffset, yoffset, zoffset, format, type, canvas->copiedImage(FrontBuffer, PreferAcceleration), |
WebGLImageConversion::HtmlDomCanvas, m_unpackFlipY, m_unpackPremultiplyAlpha); |
} |
} |