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

Issue 514753002: add gamma/sRGB to SkImageInfo (Closed)

Created:
6 years, 3 months ago by reed1
Modified:
6 years, 1 month ago
Reviewers:
bungeman-skia, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

add gamma/sRGB to SkImageInfo BUG=skia: Committed: https://skia.googlesource.com/skia/+/615c369777258231054840a88cdb74c68c382485

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 1

Patch Set 3 : fix spelling in comment #

Patch Set 4 : now with tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -45 lines) Patch
M gyp/tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkImageInfo.h View 1 2 3 4 chunks +64 lines, -24 lines 0 comments Download
M src/core/SkImageInfo.cpp View 1 2 3 2 chunks +111 lines, -21 lines 0 comments Download
A tests/ImageInfoTest.cpp View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
reed1
reed@google.com changed reviewers: + bsalomon@google.com, bungeman@google.com
6 years, 3 months ago (2014-08-27 16:16:31 UTC) #1
reed1
Open questions: 1. What is gamma() of an Unknown info? 2. What is gamma() of ...
6 years, 3 months ago (2014-08-27 16:16:31 UTC) #2
bsalomon
I think: 1) 0 2) 0 3) Not sure, depends on what our current impl ...
6 years, 3 months ago (2014-08-27 17:11:31 UTC) #3
bungeman-skia
gamma() returning 0 for unknown, but then being able to discriminate by using isSRGB alleviates ...
6 years, 3 months ago (2014-08-27 18:08:52 UTC) #4
reed1
https://codereview.chromium.org/514753002/diff/1/include/core/SkImageInfo.h File include/core/SkImageInfo.h (right): https://codereview.chromium.org/514753002/diff/1/include/core/SkImageInfo.h#newcode158 include/core/SkImageInfo.h:158: static SkImageInfo MakeWithGamam(int width, int height, SkColorType ct, SkAlphaType ...
6 years, 3 months ago (2014-08-27 18:52:49 UTC) #5
reed1
next iteration...
6 years, 3 months ago (2014-08-27 18:58:14 UTC) #6
bungeman-skia
lgtm with nit https://codereview.chromium.org/514753002/diff/20001/include/core/SkImageInfo.h File include/core/SkImageInfo.h (right): https://codereview.chromium.org/514753002/diff/20001/include/core/SkImageInfo.h#newcode177 include/core/SkImageInfo.h:177: * Not that if the requested ...
6 years, 3 months ago (2014-08-27 19:48:24 UTC) #7
bsalomon
lgtm
6 years, 3 months ago (2014-08-27 19:50:23 UTC) #8
reed1
The CQ bit was checked by reed@google.com
6 years, 3 months ago (2014-08-27 20:28:05 UTC) #9
reed1
The CQ bit was unchecked by reed@google.com
6 years, 3 months ago (2014-08-27 20:28:06 UTC) #10
reed1
The CQ bit was checked by reed@google.com
6 years, 3 months ago (2014-08-27 20:29:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/514753002/40001
6 years, 3 months ago (2014-08-27 20:29:23 UTC) #12
reed1
The CQ bit was unchecked by reed@google.com
6 years, 3 months ago (2014-08-27 20:30:34 UTC) #13
reed1
oops, need to bump the bloody picture format...
6 years, 3 months ago (2014-08-27 20:30:48 UTC) #14
reed1
no need to bump picture format after all.
6 years, 3 months ago (2014-08-28 00:35:58 UTC) #15
reed1
The CQ bit was checked by reed@google.com
6 years, 3 months ago (2014-08-28 12:44:50 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/514753002/60001
6 years, 3 months ago (2014-08-28 12:44:56 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 615c369777258231054840a88cdb74c68c382485
6 years, 3 months ago (2014-08-28 12:56:42 UTC) #18
reed1
6 years, 3 months ago (2014-08-28 13:52:30 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #4) has been created in
https://codereview.chromium.org/512243002/ by reed@google.com.

The reason for reverting is: breaks linker on chrome -- may need SK_API, but not
sure..

Powered by Google App Engine
This is Rietveld 408576698