Bug 1072411 - Remove useless format convertion code in ImageClient. r=jrmuizel

This commit is contained in:
Nicolas Silva 2014-09-24 13:50:28 -04:00
parent 2130046b95
commit 5dc44835f0

View File

@ -303,9 +303,7 @@ ImageClientSingle::UpdateImageInternal(ImageContainer* aContainer,
bool bufferCreated = false;
if (!mFrontBuffer) {
gfxImageFormat format
= gfxPlatform::GetPlatform()->OptimalFormatForContent(gfx::ContentForFormat(surface->GetFormat()));
mFrontBuffer = CreateTextureClientForDrawing(gfx::ImageFormatToSurfaceFormat(format), size,
mFrontBuffer = CreateTextureClientForDrawing(surface->GetFormat(), size,
gfx::BackendType::NONE, mTextureFlags);
if (!mFrontBuffer) {
return false;