未验证 提交 96bd2cf0 编写于 作者: A amirh 提交者: GitHub

More informative error message for image decoding failure. (#4389)

上级 1fa99176
......@@ -75,7 +75,8 @@ fxl::RefPtr<Codec> InitCodec(sk_sp<SkData> buffer, size_t trace_id) {
std::unique_ptr<SkCodec> skCodec = SkCodec::MakeFromData(buffer);
if (!skCodec) {
FXL_LOG(ERROR) << "SkCodec::MakeFromData failed";
FXL_LOG(ERROR) << "Failed decoding image. Data is either invalid, or it is "
"encoded using an unsupported format.";
return nullptr;
}
if (skCodec->getFrameCount() > 1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册