Added new public APIs to SkPngRustEncoder for encoding an SkImage or SkPixmap into SkData.