aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/svg/parser
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-08-27 06:46:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-27 06:46:03 -0700
commit435af2f736c85c3274a0c6760a3523810750d237 (patch)
treed33d679033b2c9ae91a38f53a3d69c0b4e875724 /src/svg/parser
parentfe495f0bae96c732730a7d6b2667662c4d67bfa1 (diff)
SkColorCubeFilter_opts: start with a statically-initializable zero.
SkPMFloat(0) and SkPMFloat(0,0,0,0) end up with the same value, but the first goes through math to get there. The second is a lot more transparent to the compiler, and should compile all the way down to just `xorps xmmN,xmmN` or even be optimized away. Didn't measure any additional benefit from hoisting the zero outside the loop and writing `SkPMFloat color = zero;`. Perf win is <2%. BUG=skia: Review URL: https://codereview.chromium.org/1314763007
Diffstat (limited to 'src/svg/parser')
0 files changed, 0 insertions, 0 deletions