提交 aabc95df 编写于 作者: B Brian Osman 提交者: GitHub

Switch to new encode API on SkPixelSerializer (#3892)

Previous API is deprecated, soon to be deleted.
上级 ad7f258b
......@@ -246,7 +246,7 @@ static sk_sp<SkData> EncodeBitmapAsPNG(const SkBitmap& bitmap) {
}
PngPixelSerializer serializer;
sk_sp<SkData> data(serializer.encode(pixmap));
sk_sp<SkData> data(serializer.encodeToData(pixmap));
return data;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册