diff options
Diffstat (limited to 'src/images')
-rw-r--r-- | src/images/SkImageEncoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/images/SkImageEncoder.cpp b/src/images/SkImageEncoder.cpp index fc5f1267a5..c137bc5e0a 100644 --- a/src/images/SkImageEncoder.cpp +++ b/src/images/SkImageEncoder.cpp @@ -11,7 +11,7 @@ bool SkEncodeImage(SkWStream* dst, const SkPixmap& src, SkEncodedImageFormat format, int quality) { SkBitmap bm; if (!bm.installPixels(src)) { - return nullptr; + return false; } bm.setImmutable(); std::unique_ptr<SkImageEncoder> enc(SkImageEncoder::Create((SkImageEncoder::Type)format)); |