Bug 965440 - VideoData::Create should use gralloc where possible - r=doublec

This commit is contained in:
Benoit Jacob 2014-01-31 13:23:39 -05:00
parent 5e22487099
commit beb95cd1ce

View File

@ -72,7 +72,7 @@ ValidatePlane(const VideoData::YCbCrBuffer::Plane& aPlane)
aPlane.mStride > 0;
}
#if 0
#ifdef MOZ_WIDGET_GONK
static bool
IsYV12Format(const VideoData::YCbCrBuffer::Plane& aYPlane,
const VideoData::YCbCrBuffer::Plane& aCbPlane,
@ -225,7 +225,7 @@ VideoData* VideoData::Create(VideoInfo& aInfo,
if (!aImage) {
// Currently our decoder only knows how to output to ImageFormat::PLANAR_YCBCR
// format.
#if 0
#ifdef MOZ_WIDGET_GONK
if (IsYV12Format(Y, Cb, Cr)) {
v->mImage = aContainer->CreateImage(ImageFormat::GRALLOC_PLANAR_YCBCR);
}