aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-03 14:42:08 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-03 14:42:08 +0000
commit1a366217cd7a9833756fe1b53c59053d6621f4bc (patch)
tree6149bda4741c95ca815c6d8049ffa3adc672fb53 /src
parent0f175a6dabf6cc02d1630c62dc8074dabe73c61c (diff)
Fix return value from SkImageDecoder::DecodeFile(): false even in case of
*partial* failure. git-svn-id: http://skia.googlecode.com/svn/trunk@2941 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/images/SkImageDecoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/images/SkImageDecoder.cpp b/src/images/SkImageDecoder.cpp
index f3962cf98a..c076f842cf 100644
--- a/src/images/SkImageDecoder.cpp
+++ b/src/images/SkImageDecoder.cpp
@@ -153,8 +153,8 @@ bool SkImageDecoder::DecodeFile(const char file[], SkBitmap* bm,
if (stream.isValid()) {
if (SkImageDecoder::DecodeStream(&stream, bm, pref, mode, format)) {
bm->pixelRef()->setURI(file);
+ return true;
}
- return true;
}
return false;
}