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

Issue 1726823002: Set SkColorSpace object for PNGs and parse ICC profiles (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : Add fColorProfile to SkCodec #

Total comments: 14

Patch Set 3 : Refactored a bit, added guesses for "default" gAMA/cHRM #

Total comments: 23

Patch Set 4 : Response to comments / adds code to parse icc profiles #

Total comments: 13

Patch Set 5 : Actually add the test #

Patch Set 6 : Response to comments from Patch Set 4 #

Total comments: 4

Patch Set 7 : Remove constexpr #

Total comments: 16

Patch Set 8 : Response to comments from Patch Set 7 #

Total comments: 4

Patch Set 9 : Adding comments to the code #

Total comments: 2

Patch Set 10 : Change ref lifecycle of colorSpace as discussed in person #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -30 lines) Patch
M gyp/codec_android.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gyp/tools.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -13 lines 0 comments Download
M include/codec/SkCodec.h View 1 2 3 4 5 6 7 8 9 4 chunks +21 lines, -7 lines 0 comments Download
A + resources/color_wheel_with_profile.png View 1 2 3 Binary file 0 comments Download
M src/codec/SkCodec.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M src/codec/SkPngCodec.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/codec/SkPngCodec.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +105 lines, -8 lines 0 comments Download
D src/core/SkColorSpace.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkColorSpace.cpp View 1 2 3 4 5 6 7 1 chunk +304 lines, -0 lines 0 comments Download
A tests/ColorSpaceTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (13 generated)
msarett
4 years, 10 months ago (2016-02-23 19:42:39 UTC) #3
msarett
Obvious obstacles to this landing include: (1) SkColorSpace.h is not ready to be public. (2) ...
4 years, 10 months ago (2016-02-24 01:01:11 UTC) #6
scroggo
https://codereview.chromium.org/1726823002/diff/40001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1726823002/diff/40001/include/codec/SkCodec.h#newcode103 include/codec/SkCodec.h:103: * Returns the color space associated with the codec. ...
4 years, 10 months ago (2016-02-24 13:58:13 UTC) #7
scroggo
I noticed that reed@'s doc stated that color spaces would be opt-in. Should we make ...
4 years, 10 months ago (2016-02-24 14:16:53 UTC) #8
msarett
"I noticed that reed@'s doc stated that color spaces would be opt-in. Should we make ...
4 years, 10 months ago (2016-02-24 17:32:35 UTC) #9
scroggo
> "I noticed that reed@'s doc stated that color spaces would be opt-in. Should we ...
4 years, 10 months ago (2016-02-24 18:31:36 UTC) #10
reed1
I had presumed that the steps were: 1. extract the colorspace from the codec 2. ...
4 years, 10 months ago (2016-02-24 18:39:17 UTC) #11
msarett
> Obvious obstacles to this landing include: > (1) SkColorSpace.h is not ready to be ...
4 years, 9 months ago (2016-02-29 21:47:55 UTC) #16
scroggo
https://codereview.chromium.org/1726823002/diff/60001/src/codec/SkPngCodec.cpp File src/codec/SkPngCodec.cpp (right): https://codereview.chromium.org/1726823002/diff/60001/src/codec/SkPngCodec.cpp#newcode223 src/codec/SkPngCodec.cpp:223: // Here we use the identity matrix as a ...
4 years, 9 months ago (2016-02-29 22:18:50 UTC) #17
msarett
FYI I forgot to upload the test in Patch Set 4, but it is uploaded ...
4 years, 9 months ago (2016-03-01 00:39:35 UTC) #18
reed1
to where did the colorspace header move?
4 years, 9 months ago (2016-03-01 14:08:30 UTC) #19
msarett
On 2016/03/01 14:08:30, reed1 wrote: > to where did the colorspace header move? It's still ...
4 years, 9 months ago (2016-03-01 14:10:30 UTC) #20
scroggo
https://codereview.chromium.org/1726823002/diff/140001/src/codec/SkPngCodec.cpp File src/codec/SkPngCodec.cpp (right): https://codereview.chromium.org/1726823002/diff/140001/src/codec/SkPngCodec.cpp#newcode243 src/codec/SkPngCodec.cpp:243: gammas.fVec[0] = gammas.fVec[1] = gammas.fVec[2] = ((float) gamma) * ...
4 years, 9 months ago (2016-03-01 14:42:30 UTC) #21
msarett
https://codereview.chromium.org/1726823002/diff/140001/src/core/SkColorSpace.cpp File src/core/SkColorSpace.cpp (right): https://codereview.chromium.org/1726823002/diff/140001/src/core/SkColorSpace.cpp#newcode191 src/core/SkColorSpace.cpp:191: static const size_t kICCHeaderSize = 132; On 2016/03/01 14:42:29, ...
4 years, 9 months ago (2016-03-01 21:01:59 UTC) #22
scroggo
https://codereview.chromium.org/1726823002/diff/200001/src/codec/SkPngCodec.cpp File src/codec/SkPngCodec.cpp (right): https://codereview.chromium.org/1726823002/diff/200001/src/codec/SkPngCodec.cpp#newcode226 src/codec/SkPngCodec.cpp:226: if (!(PNG_INFO_gAMA == png_get_gAMA_fixed(png_ptr, info_ptr, &gamma))) { nit: Why ...
4 years, 9 months ago (2016-03-01 21:29:57 UTC) #23
msarett
https://codereview.chromium.org/1726823002/diff/200001/src/codec/SkPngCodec.cpp File src/codec/SkPngCodec.cpp (right): https://codereview.chromium.org/1726823002/diff/200001/src/codec/SkPngCodec.cpp#newcode226 src/codec/SkPngCodec.cpp:226: if (!(PNG_INFO_gAMA == png_get_gAMA_fixed(png_ptr, info_ptr, &gamma))) { On 2016/03/01 ...
4 years, 9 months ago (2016-03-02 00:22:54 UTC) #24
reed1
is it reasonable to land the colorspace changes separately from the codec changes? https://codereview.chromium.org/1726823002/diff/220001/tests/ColorSpaceTest.cpp File ...
4 years, 9 months ago (2016-03-02 01:29:54 UTC) #25
msarett
> is it reasonable to land the colorspace changes separately from the codec > changes? ...
4 years, 9 months ago (2016-03-02 14:09:41 UTC) #26
msarett
Alright, now I've responded to questions/comments with actual comments in the code :). I'll prepare ...
4 years, 9 months ago (2016-03-04 20:16:07 UTC) #27
reed1
lgtm https://codereview.chromium.org/1726823002/diff/240001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1726823002/diff/240001/include/codec/SkCodec.h#newcode515 include/codec/SkCodec.h:515: * Takes ownership of SkColorSpace* This is rarely ...
4 years, 9 months ago (2016-03-04 20:22:08 UTC) #28
msarett
https://codereview.chromium.org/1726823002/diff/240001/include/codec/SkCodec.h File include/codec/SkCodec.h (right): https://codereview.chromium.org/1726823002/diff/240001/include/codec/SkCodec.h#newcode515 include/codec/SkCodec.h:515: * Takes ownership of SkColorSpace* On 2016/03/04 20:22:08, reed1 ...
4 years, 9 months ago (2016-03-04 20:47:52 UTC) #29
reed1
lgtm
4 years, 9 months ago (2016-03-04 20:51:09 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1726823002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1726823002/260001
4 years, 9 months ago (2016-03-04 21:01:05 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot/builds/1866) Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, ...
4 years, 9 months ago (2016-03-04 21:02:36 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1726823002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1726823002/280001
4 years, 9 months ago (2016-03-04 21:06:46 UTC) #37
commit-bot: I haz the power
4 years, 9 months ago (2016-03-04 21:27:39 UTC) #39
Message was sent while issue was closed.
Committed patchset #11 (id:280001) as
https://skia.googlesource.com/skia/+/6a738217eaeb9aed45a07efdfc1ae52372430d87

Powered by Google App Engine
This is Rietveld 408576698