Bug 985545 - Add a helper method to convert SourceSurfaces to a given format. r=Bas