Use stack instead of malloc() for most calls to SkRasterPipeline::run().
authorMike Klein <mtklein@chromium.org>
Thu, 5 Jan 2017 20:03:53 +0000 (15:03 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 5 Jan 2017 20:41:43 +0000 (20:41 +0000)
commita2d25ec0ef1b1054aa5b3e61280bd226fce4ab9a
tree9b63a117138b09374c30ee56b08a5dc05a424ac5
parent4a224f60111643f36d6f1c204142ce34511a32a1
Use stack instead of malloc() for most calls to SkRasterPipeline::run().

Also split bench into run/compile variants to measure the effect:
 Before …f16_compile 1x  …f16_run 1.02x  …srgb_compile 1.56x  …srgb_run 1.61x
 After  …f16_run 1x  …f16_compile 1.01x  …srgb_compile 1.58x  …srgb_run 1.59x

CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD

Change-Id: I8e65fb2acdbb05ccc0b3894f16d7646603c3e74d
Reviewed-on: https://skia-review.googlesource.com/6621
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
bench/SkRasterPipelineBench.cpp
src/opts/SkRasterPipeline_opts.h