Index: cc/video_layer_impl.cc |
diff --git a/cc/video_layer_impl.cc b/cc/video_layer_impl.cc |
index 9930a0c4eac8bd4b7e0dac633d74d82951699d99..cd7f8c2e186721732f2a857e137d55c0ec41bde0 100644 |
--- a/cc/video_layer_impl.cc |
+++ b/cc/video_layer_impl.cc |
@@ -372,8 +372,9 @@ bool VideoLayerImpl::copyPlaneData(ResourceProvider* resourceProvider) |
// Only non-FormatNativeTexture planes should need upload. |
DCHECK_EQ(plane.format, GL_LUMINANCE); |
const uint8_t* softwarePlanePixels = m_frame->data(planeIndex); |
- gfx::Rect planeRect(gfx::Point(), plane.size); |
- resourceProvider->setPixels(plane.resourceId, softwarePlanePixels, planeRect, planeRect, gfx::Vector2d()); |
+ gfx::Rect imageRect(0, 0, m_frame->stride(planeIndex), plane.size.height()); |
+ gfx::Rect sourceRect(gfx::Point(), plane.size); |
+ resourceProvider->setPixels(plane.resourceId, softwarePlanePixels, imageRect, sourceRect, gfx::Vector2d()); |
} |
return true; |
} |