Bug 934886 - Fix incorrect color format of GetThebesSurfaceForDrawTarget when use SKIA as backend. r=gw280

This commit is contained in:
Peter Chang 2013-11-07 09:20:58 -05:00
parent bc173696b3
commit 01c98328c7

View File

@ -938,7 +938,7 @@ gfxPlatform::GetThebesSurfaceForDrawTarget(DrawTarget *aTarget)
}
IntSize size = data->GetSize();
gfxImageFormat format = OptimalFormatForContent(ContentForFormat(data->GetFormat()));
gfxImageFormat format = SurfaceFormatToImageFormat(data->GetFormat());
nsRefPtr<gfxASurface> surf =