Bug 435296 - Decode-On-Draw. r=joe,roc,bz,dolske,peterw sr=vlad

This commit is contained in:
Bobby Holley
2009-09-12 16:44:18 -06:00
parent b6fe8205dd
commit 464b4712e3
71 changed files with 3232 additions and 1514 deletions

View File

@@ -524,7 +524,9 @@ static nsresult
WriteBitmap(nsIFile* aFile, imgIContainer* aImage)
{
nsRefPtr<gfxImageSurface> image;
nsresult rv = aImage->CopyCurrentFrame(getter_AddRefs(image));
nsresult rv = aImage->CopyFrame(imgIContainer::FRAME_FIRST,
imgIContainer::FLAG_SYNC_DECODE,
getter_AddRefs(image));
NS_ENSURE_SUCCESS(rv, rv);
PRInt32 width = image->Width();