Bug 1421187 - P1. Don't use fast path copy when CbCr channel interleaved. r?mattwoodrow
MozReview-Commit-ID: 6lZVoIiViEn
--- a/gfx/layers/client/TextureClient.cpp
+++ b/gfx/layers/client/TextureClient.cpp
@@ -1814,17 +1814,17 @@ TextureClient::CreateWithData(TextureDat
bool
MappedYCbCrChannelData::CopyInto(MappedYCbCrChannelData& aDst)
{
if (!data || !aDst.data || size != aDst.size) {
return false;
}
- if (stride == aDst.stride) {
+ if (stride == aDst.stride && skip == aDst.skip) {
// fast path!
// We assume that the padding in the destination is there for alignment
// purposes and doesn't contain useful data.
memcpy(aDst.data, data, stride * size.height);
return true;
}
for (int32_t i = 0; i < size.height; ++i) {