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 9a12f19244abe114d8f6e7df62de32533c69b3e5..19535a51e9fc9c4624f651ee10ddf40f9f1c3614 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
@@ -4513,7 +4513,7 @@ PassRefPtr<Image> WebGLRenderingContextBase::videoFrameToImage(HTMLVideoElement* |
return nullptr; |
} |
IntRect destRect(0, 0, size.width(), size.height()); |
- video->paintCurrentFrame(buf->canvas(), destRect, nullptr); |
+ video->paintCurrentFrame(buf->canvas(), destRect, nullptr, nullptr); |
return buf->newImageSnapshot(); |
} |
@@ -4543,7 +4543,7 @@ void WebGLRenderingContextBase::texImage2D(GLenum target, GLint level, GLint int |
// The video element paints an RGBA frame into our surface here. By using an AcceleratedImageBufferSurface, |
// we enable the WebMediaPlayer implementation to do any necessary color space conversion on the GPU (though it |
// may still do a CPU conversion and upload the results). |
- video->paintCurrentFrame(imageBuffer->canvas(), IntRect(0, 0, video->videoWidth(), video->videoHeight()), nullptr); |
+ video->paintCurrentFrame(imageBuffer->canvas(), IntRect(0, 0, video->videoWidth(), video->videoHeight()), nullptr, nullptr); |
// This is a straight GPU-GPU copy, any necessary color space conversion was handled in the paintCurrentFrameInContext() call. |
if (imageBuffer->copyToPlatformTexture(webContext(), texture->object(), internalformat, type, |