Convert image width and height (used by tiling) to float once.
authorMike Klein <mtklein@chromium.org>
Fri, 9 Dec 2016 22:00:32 +0000 (17:00 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 12 Dec 2016 14:00:47 +0000 (14:00 +0000)
commit0e18de9ed6af37ba729fea9696344fb8d3a0fbd2
tree9b5c1323c8a5c965ce208c6ba2f96c23e3808225
parent26cdbac17cd140e58023a39266b0485ce6533aeb
Convert image width and height (used by tiling) to float once.

The storage cost is the same, so might as well do this when building the pipeline instead of when running it.  This also avoids the awkward cvtsi2ss instruction that screws with register renaming.

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

Change-Id: I1c7d5bad558870256a31e3da969eee5d80fb93a8
Reviewed-on: https://skia-review.googlesource.com/5782
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
src/image/SkImageShader.cpp
src/image/SkImageShaderContext.h
src/opts/SkRasterPipeline_opts.h