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

Issue 2128893002: Move sRGB <-> linear conversion components to their own files. (Closed)

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

Description

Move sRGB <-> linear conversion components to their own files. This makes them a little easier to use outside SkColorXform code. I've added some notes about how best to use them and their eccentricities, and added a test. Ultimately any software sRGB <-> linear conversion should funnel somehow through here. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2128893002 CQ_EXTRA_TRYBOTS=client.skia.android:Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Release-Trybot;client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/45e58c8807179638980aae8503573b950b844e4c Committed: https://skia.googlesource.com/skia/+/ac41bac40f5a80d2bc5ccec584c23478a6900179

Patch Set 1 #

Patch Set 2 : missing include #

Patch Set 3 : move linear->srgb too #

Patch Set 4 : tweak comments #

Patch Set 5 : clarify? #

Total comments: 1

Patch Set 6 : relax test a little when NEON is present #

Patch Set 7 : clearer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -90 lines) Patch
M gyp/core.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkColorSpaceXform.cpp View 1 2 chunks +1 line, -67 lines 0 comments Download
A src/core/SkSRGB.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A src/core/SkSRGB.cpp View 1 chunk +75 lines, -0 lines 0 comments Download
M src/opts/SkColorXform_opts.h View 1 2 3 chunks +3 lines, -23 lines 0 comments Download
A tests/SRGBTest.cpp View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (24 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2128893002/1
4 years, 5 months ago (2016-07-07 15:17:36 UTC) #3
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-07 15:17:37 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot/builds/250)
4 years, 5 months ago (2016-07-07 15:20:06 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2128893002/20001
4 years, 5 months ago (2016-07-07 15:22:55 UTC) #8
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-07 15:22:57 UTC) #9
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-07 15:30:55 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 15:43:25 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2128893002/60001
4 years, 5 months ago (2016-07-07 16:41:56 UTC) #15
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-07 16:41:58 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2128893002/80001
4 years, 5 months ago (2016-07-07 16:50:55 UTC) #18
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-07 16:50:57 UTC) #19
mtklein_C
4 years, 5 months ago (2016-07-07 16:55:40 UTC) #23
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-07 17:00:53 UTC) #24
msarett
https://codereview.chromium.org/2128893002/diff/80001/src/opts/SkColorXform_opts.h File src/opts/SkColorXform_opts.h (left): https://codereview.chromium.org/2128893002/diff/80001/src/opts/SkColorXform_opts.h#oldcode29 src/opts/SkColorXform_opts.h:29: static Sk4f linear_to_srgb(const Sk4f& x) { FWIW, I'm thinking ...
4 years, 5 months ago (2016-07-07 17:05:35 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 17:12:45 UTC) #27
msarett
lgtm
4 years, 5 months ago (2016-07-07 18:50:23 UTC) #28
mtklein
On 2016/07/07 17:05:35, msarett wrote: > https://codereview.chromium.org/2128893002/diff/80001/src/opts/SkColorXform_opts.h > File src/opts/SkColorXform_opts.h (left): > > https://codereview.chromium.org/2128893002/diff/80001/src/opts/SkColorXform_opts.h#oldcode29 > ...
4 years, 5 months ago (2016-07-07 21:29:35 UTC) #29
msarett
Yeah I finally realized that my change didn't need to (or want to) change the ...
4 years, 5 months ago (2016-07-07 21:39:14 UTC) #30
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/2128893002/80001
4 years, 5 months ago (2016-07-07 21:46:38 UTC) #32
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-07 21:46:41 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/45e58c8807179638980aae8503573b950b844e4c
4 years, 5 months ago (2016-07-07 21:47:40 UTC) #35
mtklein
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2131793002/ by mtklein@google.com. ...
4 years, 5 months ago (2016-07-08 01:33:56 UTC) #36
mtklein
On 2016/07/08 01:33:56, mtklein wrote: > A revert of this CL (patchset #5 id:80001) has ...
4 years, 5 months ago (2016-07-08 12:13:54 UTC) #37
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/2128893002/120001
4 years, 5 months ago (2016-07-08 12:18:46 UTC) #43
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-08 12:18:49 UTC) #44
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-08 12:31:05 UTC) #45
msarett
On 2016/07/08 12:13:54, mtklein wrote: > On 2016/07/08 01:33:56, mtklein wrote: > > A revert ...
4 years, 5 months ago (2016-07-08 13:12:52 UTC) #48
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/2128893002/120001
4 years, 5 months ago (2016-07-08 13:22:15 UTC) #51
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-08 13:22:18 UTC) #52
commit-bot: I haz the power
There were warnings when CQ was processing your CL: * CQ_EXTRA_TRYBOTS flag is deprecated and ...
4 years, 5 months ago (2016-07-08 13:31:01 UTC) #53
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 13:33:20 UTC) #55
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/ac41bac40f5a80d2bc5ccec584c23478a6900179

Powered by Google App Engine
This is Rietveld 408576698