aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/get_images_from_skps.cpp
diff options
context:
space:
mode:
authorGravatar Leon Scroggins III <scroggo@google.com>2018-03-15 16:35:56 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-15 21:13:26 +0000
commitaf18f22da6c53346a326dcb0c1b237e20ca44fe4 (patch)
treecaa8562eb7e9b4e499244ea71d064baf384ef7c7 /tools/get_images_from_skps.cpp
parente489c9f03db44b5dbc69dedbde8089df0046ee64 (diff)
Make get_images_from_skps always return success
Previously, it would fail (and thus turn the bot red) if an image failed to decode (e.g. with SkCodec::Result of kInvalidInput). This tends to happen because the captured page had not fully downloaded yet. Stop treating this an error. It may still be useful to test using SkCodec just to be sure that we didn't crash, so keep running the test. Change-Id: I1a0530fb82fa32d95c5f01d5131626745cf6c4f2 Reviewed-on: https://skia-review.googlesource.com/114582 Reviewed-by: Ravi Mistry <rmistry@google.com> Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'tools/get_images_from_skps.cpp')
-rw-r--r--tools/get_images_from_skps.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/get_images_from_skps.cpp b/tools/get_images_from_skps.cpp
index 35624348ff..3c15403d6d 100644
--- a/tools/get_images_from_skps.cpp
+++ b/tools/get_images_from_skps.cpp
@@ -208,7 +208,6 @@ int main(int argc, char** argv) {
stream.writeText(Json::StyledWriter().write(fRoot).c_str());
stream.flush();
}
- return -1;
}
return 0;
}