未验证 提交 75802deb 编写于 作者: J Jason Simmons 提交者: GitHub

Retain the original image's color type when encoding in raw unmodified format (#5735)

上级 eaffe812
......@@ -176,7 +176,7 @@ sk_sp<SkData> EncodeImage(sk_sp<SkImage> p_image,
return CopyImageByteData(raster_image, kRGBA_8888_SkColorType);
} break;
case kRawUnmodified: {
return CopyImageByteData(raster_image, kN32_SkColorType);
return CopyImageByteData(raster_image, raster_image->colorType());
} break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册