Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Unified Diff: cc/video_layer_impl.cc

Issue 11413005: YUV software decode path stride fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WebKit nits. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/video_layer_impl.cc
diff --git a/cc/video_layer_impl.cc b/cc/video_layer_impl.cc
index 68a424c7bef4ca5e3c44006af9b777f09ba244b6..09f382abe6c5d9fa9d386142bfc20087600f3e35 100644
--- a/cc/video_layer_impl.cc
+++ b/cc/video_layer_impl.cc
@@ -373,8 +373,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;
}

Powered by Google App Engine
This is Rietveld 408576698