commit | 0928c4acc90deba9bd01dc8bcbecba5ff581e021 | [log] [tgz] |
---|---|---|
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jan 31 15:14:08 2012 +0000 |
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jan 31 15:14:08 2012 +0000 |
tree | 40a2608f1aa93a16577ab0a2ceb7348120e19916 | |
parent | bb0948fce2744e1009d9f388c9faad5cc6dc946c [diff] |
Make SkImageEncoder_CG report more failures to its caller. Review URL: https://codereview.appspot.com/5580052 git-svn-id: http://skia.googlecode.com/svn/trunk@3115 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/ports/SkImageDecoder_CG.cpp b/src/ports/SkImageDecoder_CG.cpp index 81c6b37..4e2bcc9 100644 --- a/src/ports/SkImageDecoder_CG.cpp +++ b/src/ports/SkImageDecoder_CG.cpp
@@ -171,10 +171,9 @@ return false; } SkAutoTCallVProc<CGImage, CGImageRelease> agimage(image); - - CGImageDestinationAddImage(dst, image, NULL); - CGImageDestinationFinalize(dst); - return true; + + CGImageDestinationAddImage(dst, image, NULL); + return CGImageDestinationFinalize(dst); } SkImageEncoder* SkImageEncoder::Create(Type t) {