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

Issue 2324843003: Fix storage of gamut transform matrices in SkColorSpace (Closed)

Created:
4 years, 3 months ago by Brian Osman
Modified:
4 years, 3 months ago
Reviewers:
msarett, mtklein, bsalomon, reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix storage of gamut transform matrices in SkColorSpace We were effectively storing the transpose, which made all of our operations on individual colors, and our concatenation of matrices awkward and backwards. I'm planning to push this further into Ganesh, where I had incorrectly adjusted to the previous layout, treating colors as row vectors in the shaders. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2324843003 Committed: https://skia.googlesource.com/skia/+/de68d6c4616d86621373d88100002ddfdb9c08e3

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -73 lines) Patch
M gm/color4f.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/gamut.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M include/core/SkMatrix44.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/codec/SkPngCodec.cpp View 2 chunks +6 lines, -5 lines 0 comments Download
M src/core/SkColorSpace.cpp View 5 chunks +10 lines, -10 lines 0 comments Download
M src/core/SkColorSpaceXform.cpp View 3 chunks +2 lines, -8 lines 1 comment Download
M src/core/SkColorSpace_ICC.cpp View 3 chunks +8 lines, -6 lines 0 comments Download
M src/core/SkMatrix44.cpp View 2 chunks +9 lines, -14 lines 0 comments Download
M src/gpu/GrColorSpaceXform.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M tests/ColorSpaceTest.cpp View 3 chunks +16 lines, -10 lines 0 comments Download
M tools/visualize_color_gamut.cpp View 2 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
Brian Osman
4 years, 3 months ago (2016-09-08 21:38:57 UTC) #5
msarett
lgtm https://codereview.chromium.org/2324843003/diff/1/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (left): https://codereview.chromium.org/2324843003/diff/1/src/core/SkColorSpaceXform.cpp#oldcode449 src/core/SkColorSpaceXform.cpp:449: static inline void compute_gamut_xform(SkMatrix44* srcToDst, const SkColorSpace* src, ...
4 years, 3 months ago (2016-09-08 21:43:48 UTC) #6
reed1
api lgtm
4 years, 3 months ago (2016-09-08 23:11:02 UTC) #9
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/2324843003/1
4 years, 3 months ago (2016-09-09 17:35:18 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 17:36:21 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/de68d6c4616d86621373d88100002ddfdb9c08e3

Powered by Google App Engine
This is Rietveld 408576698