aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/StrokeTest.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-05-12 15:48:09 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-12 15:48:09 -0700
commit6cbf18c70bf99f58b2bb1c49cdf8d41be561fee4 (patch)
tree9e634dfc2fc8a957b50c2bf5d830344ab106943c /tests/StrokeTest.cpp
parent8c9b6f1d71faeff9ae742425466a4ee58492d6d2 (diff)
Plus xfermode using Sk4px.
Xfermode_Plus runs 4-5x faster. We expect mixed_xfermodes to have a small diff. This is because kFoldCoverageIntoSrcAlpha was incorrectly set to true. This implementation handily beats the Sk4f impl, the portable impl, and the existing SSE2 impl. Reading the SkXfermodes_opts_SSE2.cpp file, I'm pretty confident that we'll be able to beat all SSE2 impls. I believe this impl will beat or match the existing NEON impl too, but that may not be true for more complicated xfermodes. They can take advantage of transposing ARGBARGB... to AAAARRRR.... cheaply and I haven't figured out an abstraction for that yet that doesn't screw SSE. Adds: - MapDstSrc() to Sk4px - saturatedAdd() to SkNi (only implemented as far as it's used). - div255Narrow() BUG=skia: Review URL: https://codereview.chromium.org/1138893002
Diffstat (limited to 'tests/StrokeTest.cpp')
0 files changed, 0 insertions, 0 deletions