Avoid constructing and passing a SkData for each fuzz iteration.
Calling SkData::MakeWithoutCopy does a heap allocation each
time to create the SkData wrapper object. In practice, most
of our fuzzers ignored the SkData wrapper and just pulled
the bytes out, so the allocation is wasted effort. Since fuzzers
run millions of iterations in a row, extra work on each iteration
can really add up.
Change-Id: I50f2493c7904bef59bb495c131275c465ed5c421
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/767856
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
26 files changed