Bug 1290293 - Part 4. Remove surface buffer initialization for raster images.

This commit is contained in:
Andrew Osmond
2016-08-18 09:55:45 -04:00
parent e059da097e
commit 80596e69cb

View File

@@ -254,12 +254,6 @@ imgFrame::InitForDecoder(const nsIntSize& aImageSize,
mAborted = true; mAborted = true;
return NS_ERROR_OUT_OF_MEMORY; return NS_ERROR_OUT_OF_MEMORY;
} }
if (!ClearSurface(mRawSurface, mFrameRect.Size(), mFormat)) {
NS_WARNING("Could not clear allocated buffer");
mAborted = true;
return NS_ERROR_OUT_OF_MEMORY;
}
} }
return NS_OK; return NS_OK;