skia2/dm
mtklein 4089ef7c98 DM: support non-fatal errors
Tasks that produce a non-fatal error will bail out before writing their output to
disk and hash to dm.json, but not count as failures.

This also makes true failures bail out before writing their results.  If the DM
program failed, we probably don't want to triage that image result.

We use this new feature first to skip image subset decoding when we detect it's
not supported.  Here's a snippet of an example run, where in this case only
.webp are subset decodable:

...
(  15MB    12) 172µs	8888 subset color_wheel.jpg (skipped: Subset decoding not supported.)
(  15MB    11) 9.05ms	8888 subset randPixels.webp
(  16MB    10) 863µs	8888 subset baby_tux.png (skipped: Subset decoding not supported.)
...

Only outputs corresponding to the .webp show up, both on disk and in the .json.

BUG=skia:

Review URL: https://codereview.chromium.org/980333002
2015-03-05 08:40:28 -08:00
..
DM.cpp DM: support non-fatal errors 2015-03-05 08:40:28 -08:00
DMGpuSupport.h patch from issue 886233004 at patchset 40001 (http://crrev.com/886233004#ps40001) 2015-02-02 18:26:03 -08:00
DMJsonWriter.cpp DM: move ext into key 2015-02-17 13:18:04 -08:00
DMJsonWriter.h add -r to DM 2015-01-27 14:46:26 -08:00
DMSrcSink.cpp DM: support non-fatal errors 2015-03-05 08:40:28 -08:00
DMSrcSink.h DM: support non-fatal errors 2015-03-05 08:40:28 -08:00
DMSrcSinkAndroid.cpp ViaAndroidSDK for DM 2015-03-05 08:01:07 -08:00
DMSrcSinkAndroid.h ViaAndroidSDK for DM 2015-03-05 08:01:07 -08:00