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

Issue 2175413002: Use sk_srgb_to_linear_trunc in SkColorXform_opts (Closed)

Created:
4 years, 4 months ago by msarett
Modified:
4 years, 4 months ago
Reviewers:
mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@delete-default-xform
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Use sk_srgb_to_linear_trunc in SkColorXform_opts This gives us a little more control over instruction order, allowing us to pipeline the muls and get better performance. Technically, clang should be able to do this for us anyway... Performance on HP z620 (201295.jpg): toSRGB: 371us -> 356us BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2175413002 CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/a18c3b8306c08619ad40fe26122462d4c7a9059d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove unnecessary template param #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -17 lines) Patch
M src/opts/SkColorXform_opts.h View 1 3 chunks +30 lines, -17 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 10 (5 generated)
msarett
4 years, 4 months ago (2016-07-25 19:19:38 UTC) #3
mtklein
lgtm https://codereview.chromium.org/2175413002/diff/1/src/opts/SkColorXform_opts.h File src/opts/SkColorXform_opts.h (right): https://codereview.chromium.org/2175413002/diff/1/src/opts/SkColorXform_opts.h#newcode21 src/opts/SkColorXform_opts.h:21: return SkNx_cast<int, float>(x); probably don't need that ,float ...
4 years, 4 months ago (2016-07-25 19:28:07 UTC) #4
msarett
https://codereview.chromium.org/2175413002/diff/1/src/opts/SkColorXform_opts.h File src/opts/SkColorXform_opts.h (right): https://codereview.chromium.org/2175413002/diff/1/src/opts/SkColorXform_opts.h#newcode21 src/opts/SkColorXform_opts.h:21: return SkNx_cast<int, float>(x); On 2016/07/25 19:28:07, mtklein wrote: > ...
4 years, 4 months ago (2016-07-25 19:54:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2175413002/20001
4 years, 4 months ago (2016-07-26 01:28:23 UTC) #8
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 01:58:14 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/a18c3b8306c08619ad40fe26122462d4c7a9059d

Powered by Google App Engine
This is Rietveld 408576698