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

Issue 676883003: flag imageinfo as srgb (Closed)

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

Description

flag imageinfo as srgb intended uses: - flag a SkSurface as sRGB (only supported by Ganesh for now) - flag images (e.g. png or jpeg) as sRGB if the codec tells us that wins: - faster gamma-correct text (esp. w/ distance-fields) when we can use sRGB for text - better color fidelity when the screen really is sRGB Committed: https://skia.googlesource.com/skia/+/7c74885e017a2473383fed72bd629cc07c773942

Patch Set 1 #

Patch Set 2 : sniff CGImage for sRGB-ness #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Total comments: 3

Patch Set 5 : add test for flattening #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : fix copy/paste error in loop limits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -25 lines) Patch
M include/core/SkImageInfo.h View 1 2 5 chunks +42 lines, -20 lines 0 comments Download
M src/core/SkImageInfo.cpp View 1 2 3 4 5 3 chunks +10 lines, -3 lines 0 comments Download
M src/ports/SkImageDecoder_CG.cpp View 1 2 chunks +24 lines, -1 line 0 comments Download
M tests/ImageIsOpaqueTest.cpp View 1 2 3 4 5 6 1 chunk +35 lines, -1 line 0 comments Download

Messages

Total messages: 19 (3 generated)
reed1
6 years, 1 month ago (2014-10-24 20:16:16 UTC) #2
djsollen
WooHoo...lgtm
6 years, 1 month ago (2014-10-24 20:22:16 UTC) #3
reed1
Ben is worried that sRGB applied to text may not make everyone happy, but I'd ...
6 years, 1 month ago (2014-10-24 20:33:57 UTC) #4
reed1
any pointers on where I would wack GL to tell it that the uploaded texture ...
6 years, 1 month ago (2014-11-07 15:16:26 UTC) #6
bsalomon
On 2014/11/07 15:16:26, reed1 wrote: > any pointers on where I would wack GL to ...
6 years, 1 month ago (2014-11-07 18:26:19 UTC) #7
robertphillips
https://codereview.chromium.org/676883003/diff/60001/src/core/SkImageInfo.cpp File src/core/SkImageInfo.cpp (right): https://codereview.chromium.org/676883003/diff/60001/src/core/SkImageInfo.cpp#newcode28 src/core/SkImageInfo.cpp:28: uint32_t packed = buffer.read32(); Seems like this assert could ...
6 years, 1 month ago (2014-11-07 18:38:56 UTC) #8
reed1
https://codereview.chromium.org/676883003/diff/60001/src/core/SkImageInfo.cpp File src/core/SkImageInfo.cpp (right): https://codereview.chromium.org/676883003/diff/60001/src/core/SkImageInfo.cpp#newcode28 src/core/SkImageInfo.cpp:28: uint32_t packed = buffer.read32(); On 2014/11/07 18:38:56, robertphillips wrote: ...
6 years, 1 month ago (2014-11-07 19:48:10 UTC) #9
reed1
https://codereview.chromium.org/676883003/diff/60001/src/core/SkImageInfo.cpp File src/core/SkImageInfo.cpp (right): https://codereview.chromium.org/676883003/diff/60001/src/core/SkImageInfo.cpp#newcode28 src/core/SkImageInfo.cpp:28: uint32_t packed = buffer.read32(); On 2014/11/07 19:48:10, reed1 wrote: ...
6 years, 1 month ago (2014-11-07 19:50:39 UTC) #10
reed1
ptal -- added test (and fix)
6 years, 1 month ago (2014-11-07 20:30:02 UTC) #11
robertphillips
lgtm modulo test fixes. https://codereview.chromium.org/676883003/diff/100001/tests/ImageIsOpaqueTest.cpp File tests/ImageIsOpaqueTest.cpp (right): https://codereview.chromium.org/676883003/diff/100001/tests/ImageIsOpaqueTest.cpp#newcode28 tests/ImageIsOpaqueTest.cpp:28: set -> sets ? https://codereview.chromium.org/676883003/diff/100001/tests/ImageIsOpaqueTest.cpp#newcode37 ...
6 years, 1 month ago (2014-11-10 13:45:59 UTC) #12
reed1
https://codereview.chromium.org/676883003/diff/100001/tests/ImageIsOpaqueTest.cpp File tests/ImageIsOpaqueTest.cpp (right): https://codereview.chromium.org/676883003/diff/100001/tests/ImageIsOpaqueTest.cpp#newcode28 tests/ImageIsOpaqueTest.cpp:28: On 2014/11/10 13:45:59, robertphillips wrote: > set -> sets ...
6 years, 1 month ago (2014-11-10 16:48:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/676883003/120001
6 years, 1 month ago (2014-11-10 16:49:00 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://skia.googlesource.com/skia/+/7c74885e017a2473383fed72bd629cc07c773942
6 years, 1 month ago (2014-11-10 16:57:25 UTC) #16
mtklein
On 2014/11/10 16:57:25, I haz the power (commit-bot) wrote: > Committed patchset #7 (id:120001) as ...
6 years, 1 month ago (2014-11-11 14:35:48 UTC) #17
reed1
On 2014/11/11 14:35:48, mtklein wrote: > On 2014/11/10 16:57:25, I haz the power (commit-bot) wrote: ...
6 years, 1 month ago (2014-11-11 14:50:08 UTC) #18
mtklein
6 years, 1 month ago (2014-11-11 14:51:40 UTC) #19
Message was sent while issue was closed.
> How can we know when we're building for iOS? I think in that world we can
> actually assume that ALL images are already sRGB (or so I've heard).

SK_BUILD_FOR_IOS?

Powered by Google App Engine
This is Rietveld 408576698