Go to file
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
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench SkDocument: remove unused fDoneProc 2018-01-08 20:53:41 +00:00
bin Add directions for when trouble strikes in fetch-skps. 2018-01-04 21:31:01 +00:00
debugger Update SkSurface MakeFromBackend* factories to take an SkColorType. 2017-12-19 18:41:36 +00:00
dm [skotty,sksg] Initial image support 2018-01-08 18:11:31 +00:00
docs use 64bit math to compute is a rect is empty 2018-01-09 16:54:52 +00:00
example Update SkSurface MakeFromBackend* factories to take an SkColorType. 2017-12-19 18:41:36 +00:00
experimental [skotty] Color opacity support 2018-01-09 19:11:27 +00:00
fuzz Refactor SerializedImageFilter to avoid duplicate code 2018-01-09 21:02:17 +00:00
gm SkBitmap now *has* a SkPixmap. 2018-01-09 16:46:22 +00:00
gn fix x86 Android builds 2018-01-08 23:48:21 +00:00
include use 64bit math to compute is a rect is empty 2018-01-09 16:54:52 +00:00
infra Move 5x to proper CQ 2018-01-09 15:44:52 +00:00
platform_tools First version of SkQP app to run on Firebase Testlab 2018-01-08 22:42:21 +00:00
resources [skotty] Fix path close handling 2017-12-31 00:07:39 +00:00
samplecode CCPR: Rename GrCCPR* -> GrCC* 2018-01-08 22:51:11 +00:00
site Update markdown files 2018-01-09 07:13:42 +00:00
src check for bad buffers in Unpack8 2018-01-09 20:41:17 +00:00
tests GrTessellator: set a cap on quadratic linearization. 2018-01-09 18:49:37 +00:00
third_party Update Windows clang asset 2017-12-08 16:55:10 +00:00
tools First version of SkQP app to run on Firebase Testlab 2018-01-08 22:42:21 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS fix use of uninitialized flag in SkCodec 2017-10-09 19:17:05 +00:00
BUILD.gn Refactor SerializedImageFilter to avoid duplicate code 2018-01-09 21:02:17 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll skia/third_party/externals/angle2/ b38dfde0a..0690e1aa3 (1 commit) 2018-01-09 11:29:22 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Skip AUTHORS check for Skia service accounts 2018-01-02 18:47:01 +00:00
public.bzl move largest apis into private 2018-01-08 20:42:27 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Removed general bot upload permissions, whitespace change to test 2017-12-04 13:03:34 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.