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

Issue 1939783003: Add a hook for CPU-optimized sRGB-sRGB srcover. (Closed)

Created:
4 years, 7 months ago by mtklein_C
Modified:
4 years, 7 months ago
Reviewers:
herb_g, f(malita)
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add a hook for CPU-optimized sRGB-sRGB srcover. Herb's really starting to get serious about tweaking this, which becomes a lot easier when you've got SkOpts' runtime CPU detection. We should be able to optimize this usefully for SSSE3, SSE4.1, AVX, AVX2, or NEON. (We can of course implement a subset.) This function takes two counts to give us flexibility to write src patterns: nsrc >= ndst -> the usual srcover function nsrc < ndst -> repeat src until it fills dst nsrc << ndst -> possibly preprocess src into registers nsrc == 1 -> equivalent of blitrow_color32, srcover_1, etc. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1939783003 Committed: https://skia.googlesource.com/skia/+/c5091b5b6c4b8a7aef8c12db9ea2a85e907b01c4

Patch Set 1 #

Patch Set 2 : doc #

Patch Set 3 : nits #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -0 lines) Patch
M src/core/SkOpts.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkOpts.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
A src/opts/SkBlend_opts.h View 1 2 1 chunk +58 lines, -0 lines 1 comment Download

Messages

Total messages: 13 (5 generated)
mtklein_C
4 years, 7 months ago (2016-05-02 18:04:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939783003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1939783003/40001
4 years, 7 months ago (2016-05-02 18:04:15 UTC) #6
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 7 months ago (2016-05-02 18:04:16 UTC) #7
f(malita)
https://codereview.chromium.org/1939783003/diff/40001/src/opts/SkBlend_opts.h File src/opts/SkBlend_opts.h (right): https://codereview.chromium.org/1939783003/diff/40001/src/opts/SkBlend_opts.h#newcode18 src/opts/SkBlend_opts.h:18: switch (src >> 24) { Should dst/src be SkPMColor ...
4 years, 7 months ago (2016-05-02 18:19:27 UTC) #8
mtklein
On 2016/05/02 at 18:19:27, fmalita wrote: > https://codereview.chromium.org/1939783003/diff/40001/src/opts/SkBlend_opts.h > File src/opts/SkBlend_opts.h (right): > > https://codereview.chromium.org/1939783003/diff/40001/src/opts/SkBlend_opts.h#newcode18 ...
4 years, 7 months ago (2016-05-02 18:25:20 UTC) #9
f(malita)
On 2016/05/02 18:25:20, mtklein wrote: > On 2016/05/02 at 18:19:27, fmalita wrote: > > https://codereview.chromium.org/1939783003/diff/40001/src/opts/SkBlend_opts.h ...
4 years, 7 months ago (2016-05-02 18:46:34 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/c5091b5b6c4b8a7aef8c12db9ea2a85e907b01c4
4 years, 7 months ago (2016-05-02 18:48:45 UTC) #12
mtklein
4 years, 7 months ago (2016-05-02 21:08:29 UTC) #13
Message was sent while issue was closed.
> If SkPMColor is the natural storage/input type, is there any downside to
documenting it in the actual signature?
> 
> (Maybe I'm missing something and the clients don't always operate on SkPMColor
inputs/output; this is a minor nit, LGTM either way)

I guess I always think of SkPMColor == broken 8888.

Powered by Google App Engine
This is Rietveld 408576698