未验证 提交 d6d4eec2 编写于 作者: T Todd Volkert 提交者: GitHub

Fix broken Linux build (#5019)

After we write the pixels in the correct format,
the color type of the SkPixmap is still set to
its previous value, so the existing assertion was
failing.
上级 d15dc76e
......@@ -5,6 +5,7 @@
.DS_Store
.classpath
.cproject
.dart_tool
.gdb_history
.checkstyle
.gdbinit
......
......@@ -79,7 +79,6 @@ sk_sp<SkData> GetImageBytesAsRGBA(sk_sp<SkImage> image) {
FXL_LOG(ERROR) << "Pixel address is not available.";
return nullptr;
}
ASSERT(pixmap.colorType() == kRGBA_8888_SkColorType);
const size_t pixmap_size = pixmap.computeByteSize();
return SkData::MakeWithCopy(pixmap.addr32(), pixmap_size);
......
.dart_tool
.packages
pubspec.lock
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册