Xfermode: SSE2 implementation of multiply_modeproc
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 1 Apr 2014 14:01:32 +0000 (14:01 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 1 Apr 2014 14:01:32 +0000 (14:01 +0000)
commit25f7455f3a7cf2c440509bead85486079f1e4b31
treed9f77e2f326b21f340a42b2dd2072e7dc97d29e4
parent96050eb5a16059238d060f0db7d2a2e48d190c29
Xfermode: SSE2 implementation of multiply_modeproc

This patch implements basics for Xfermode SSE optimization. Based on
these basics, SSE2 implementation of multiply_modeproc is provided. SSE2
implementation for other modes will come in future. With this patch
performance of Xfermode_Multiply will improve about 45%. Here are the
data on desktop i7-3770.
before:
Xfermode_Multiply   8888:  cmsecs =     33.30   565:  cmsecs =     45.65
after:
Xfermode_Multiply   8888:  cmsecs =     17.18   565:  cmsecs =     24.87

BUG=
R=mtklein@google.com

Author: qiankun.miao@intel.com

Review URL: https://codereview.chromium.org/202903004

git-svn-id: http://skia.googlecode.com/svn/trunk@14006 2bbb7eff-a529-9590-31e7-b0007b416f81
gyp/opts.gyp
src/core/SkXfermode.cpp
src/opts/SkBlitRow_opts_SSE2.cpp
src/opts/SkColor_opts_SSE2.h
src/opts/SkXfermode_opts_SSE2.cpp [new file with mode: 0644]
src/opts/SkXfermode_opts_SSE2.h [new file with mode: 0644]
src/opts/opts_check_SSE2.cpp