skia2/fuzz
Kevin Lubick edef8ec4b2 Refactor SerializedImageFilter to avoid duplicate code
After this CL, we have 3.5 options for fuzzing ImageFilter
1. Create it from API calls and then draw it
   fuzz -t api -n ImageFilter -b [input]

2. Deserialize a fuzzed stream into an ImageFilter (this is
what Chromium's  filter_fuzz_stub does)
   fuzz -t filter_fuzz -b [input]

3. Create an ImageFilter from API calls, serialize it, apply
some mutations to the stream, deserialize it, then draw it.
   fuzz -t api -n SerializedImageFilter -b [input]

3.5 Create ImageFilters as part of our more general canvas
fuzzers.
   fuzz -t api -n RasterN32Canvas -b [input] (and others)

Previously, the SerializedImageFilter had its own, slightly
stale and prone to stack-overflow way of making an image filter.
This CL re-uses what we already do for Canvas fuzzing and removes
that dead code.

Additionally, there is a way to easily generate a corpus
for the filter_fuzz type, via SerializedImageFilter.

Bug: skia:
Change-Id: I31bb4ffce2abf1c1a6d0a7000e5aceb8d7b38b65
Reviewed-on: https://skia-review.googlesource.com/92142
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2018-01-09 21:02:17 +00:00
..
coverage Update coverage script to cover new Canvas Fuzzers 2017-03-15 14:32:59 +00:00
fuzz.cpp Refactor SerializedImageFilter to avoid duplicate code 2018-01-09 21:02:17 +00:00
Fuzz.h Change SkMemory to the more accurately named SkMalloc. 2017-03-27 18:13:07 +00:00
FuzzCanvas.cpp Refactor SerializedImageFilter to avoid duplicate code 2018-01-09 21:02:17 +00:00
FuzzDrawFunctions.cpp Revert "Revert "Revert[2] "hide deprecated underline and strikethru""" 2017-02-23 14:19:40 +00:00
FuzzGradients.cpp [4fGradient] Relax interval checks for SkGradientShaderBase also 2017-02-09 20:44:47 +00:00
FuzzParsePath.cpp Add back in min/max check on fuzzer range 2016-11-16 19:17:19 +00:00
FuzzPathop.cpp Avoid platform-dependent function params in Fuzzer 2016-11-10 22:52:03 +00:00
FuzzScaleToSides.cpp Avoid platform-dependent function params in Fuzzer 2016-11-10 22:52:03 +00:00