Bug 1076910 - Don't use gfxPlatform::GetPlatform() off the main thread. r=Bas, a=sledru
Bug 1076910 - Add some error checks to gfxUtils::EncodeSourceSurface. r=Bas, a=sledru