Skip to content

Commit

Permalink
Fix broken Linux build (flutter#5019)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tvolkert authored Apr 16, 2018
1 parent d15dc76 commit d6d4eec
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.DS_Store
.classpath
.cproject
.dart_tool
.gdb_history
.checkstyle
.gdbinit
Expand Down
1 change: 0 additions & 1 deletion lib/ui/painting/image_encoding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion testing/dart/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.dart_tool
.packages
pubspec.lock

0 comments on commit d6d4eec

Please sign in to comment.