Fix broken Linux build (flutter/engine#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.
This commit is contained in:
Todd Volkert
2018-04-16 16:20:48 -07:00
committed by GitHub
parent 8d430519b0
commit 7a94e0c73f
3 changed files with 1 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
.DS_Store
.classpath
.cproject
.dart_tool
.gdb_history
.checkstyle
.gdbinit

View File

@@ -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);

View File

@@ -1,3 +1,2 @@
.dart_tool
.packages
pubspec.lock