mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
fixup: Change gfx::[PNG|JPEG]Codec::Decode to return a SkBitmap
This commit is contained in:
@@ -37,7 +37,7 @@ bool SaveIconToPath(const SkBitmap& bitmap, const base::FilePath& path) {
|
||||
if (!png_data.has_value())
|
||||
return false;
|
||||
|
||||
return base::WriteFile(path, png_data);
|
||||
return base::WriteFile(path, png_data.value());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user