Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Issue 232793002: Xfermode: SSE2 implementation of a number of simple transfer modes (Closed)

Created:
6 years, 8 months ago by qiankun
Modified:
6 years, 8 months ago
Reviewers:
mtklein
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Xfermode: SSE2 implementation of a number of simple transfer modes These modes share some common code and not very complex, so group them together. This CL yields about 50% performance improvement on desktop i7-3770. Here are the data: before: Xfermode_Screen 8888: cmsecs = 30.25 565: cmsecs = 46.81 Xfermode_Modulate 8888: cmsecs = 22.48 565: cmsecs = 40.06 Xfermode_Plus 8888: cmsecs = 21.04 565: cmsecs = 37.51 Xfermode_Xor 8888: cmsecs = 37.18 565: cmsecs = 52.53 Xfermode_DstATop 8888: cmsecs = 28.97 565: cmsecs = 46.42 Xfermode_SrcATop 8888: cmsecs = 29.74 565: cmsecs = 46.25 Xfermode_DstOut 8888: cmsecs = 5.34 565: cmsecs = 24.53 Xfermode_SrcOut 8888: cmsecs = 12.25 565: cmsecs = 24.39 Xfermode_DstIn 8888: cmsecs = 5.30 565: cmsecs = 24.50 Xfermode_SrcIn 8888: cmsecs = 12.05 565: cmsecs = 25.40 Xfermode_DstOver 8888: cmsecs = 12.45 565: cmsecs = 0.15 Xfermode_SrcOver 8888: cmsecs = 2.68 565: cmsecs = 4.42 after: Xfermode_Screen 8888: cmsecs = 13.68 565: cmsecs = 21.73 Xfermode_Modulate 8888: cmsecs = 13.25 565: cmsecs = 20.97 Xfermode_Plus 8888: cmsecs = 9.77 565: cmsecs = 16.71 Xfermode_Xor 8888: cmsecs = 17.64 565: cmsecs = 25.62 Xfermode_DstATop 8888: cmsecs = 15.99 565: cmsecs = 23.74 Xfermode_SrcATop 8888: cmsecs = 15.69 565: cmsecs = 23.40 Xfermode_DstOut 8888: cmsecs = 4.77 565: cmsecs = 11.85 Xfermode_SrcOut 8888: cmsecs = 4.98 565: cmsecs = 11.84 Xfermode_DstIn 8888: cmsecs = 4.68 565: cmsecs = 11.72 Xfermode_SrcIn 8888: cmsecs = 4.93 565: cmsecs = 11.79 Xfermode_DstOver 8888: cmsecs = 5.04 565: cmsecs = 0.15 Xfermode_SrcOver 8888: cmsecs = 2.69 565: cmsecs = 4.42 BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=14176

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -12 lines) Patch
M src/opts/SkColor_opts_SSE2.h View 2 chunks +25 lines, -0 lines 2 comments Download
M src/opts/SkXfermode_opts_SSE2.cpp View 4 chunks +157 lines, -12 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
qiankun
PTAL.
6 years, 8 months ago (2014-04-10 09:23:57 UTC) #1
mtklein
lgtm Some questions, but this LGTM as it stands. https://codereview.chromium.org/232793002/diff/1/src/opts/SkColor_opts_SSE2.h File src/opts/SkColor_opts_SSE2.h (right): https://codereview.chromium.org/232793002/diff/1/src/opts/SkColor_opts_SSE2.h#newcode29 src/opts/SkColor_opts_SSE2.h:29: ...
6 years, 8 months ago (2014-04-11 18:41:53 UTC) #2
qiankun
Thanks for review, see my reply below. I will check the commit box. https://codereview.chromium.org/232793002/diff/1/src/opts/SkColor_opts_SSE2.h File ...
6 years, 8 months ago (2014-04-14 02:33:00 UTC) #3
qiankun
The CQ bit was checked by qiankun.miao@intel.com
6 years, 8 months ago (2014-04-14 02:33:32 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/qiankun.miao@intel.com/232793002/1
6 years, 8 months ago (2014-04-14 02:33:39 UTC) #5
commit-bot: I haz the power
6 years, 8 months ago (2014-04-14 14:54:24 UTC) #6
Message was sent while issue was closed.
Change committed as 14176

Powered by Google App Engine
This is Rietveld 408576698