Xfermode: SSE2 implementation of multiply_modeproc
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 3 Apr 2014 18:26:40 +0000 (18:26 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 3 Apr 2014 18:26:40 +0000 (18:26 +0000)
commitc3118739277beb7678973d47e3d71bb863929bce
tree1b582f575f50003f49de4af3dfdb0ae5db402f52
parent609ced42e7cebef533cf9c1622280f5cdda1faae
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=

Committed: http://code.google.com/p/skia/source/detail?r=14006

R=mtklein@google.com, robertphillips@google.com

Author: qiankun.miao@intel.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@14050 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