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

Issue 2221983002: Fix Equals and serialization for rare pngs (Closed)

Created:
4 years, 4 months ago by msarett
Modified:
4 years, 4 months ago
Reviewers:
Brian Osman, 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

Fix Equals and serialization for rare pngs PNGs may contain a gAMA chunk that specifies gamma values as floats. If so, we will use these floats to create an SkColorSpace. This CL fixes Equals(), serialize(), and Deserialize() to correctly handle SkColorSpaces with strange gammas, where we are unable to fall back on the profile data. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2221983002 Committed: https://skia.googlesource.com/skia/+/d9015a43cf6c6e7c372c804ee3e1021b153d505f

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Response to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -47 lines) Patch
M src/core/SkColorSpace.cpp View 1 2 6 chunks +74 lines, -23 lines 0 comments Download
M src/core/SkColorSpace_Base.h View 1 chunk +1 line, -1 line 0 comments Download
M tests/ColorSpaceTest.cpp View 1 2 6 chunks +15 lines, -23 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (10 generated)
msarett
4 years, 4 months ago (2016-08-08 15:56:17 UTC) #4
msarett
Please take a look.
4 years, 4 months ago (2016-08-22 13:46:38 UTC) #6
Brian Osman
https://codereview.chromium.org/2221983002/diff/1/src/core/SkColorSpace.cpp File src/core/SkColorSpace.cpp (right): https://codereview.chromium.org/2221983002/diff/1/src/core/SkColorSpace.cpp#newcode347 src/core/SkColorSpace.cpp:347: if (ColorSpaceHeader::kFloatGamma_Flag != header.fFlags || length < 15 * ...
4 years, 4 months ago (2016-08-22 14:00:03 UTC) #7
msarett
https://codereview.chromium.org/2221983002/diff/1/src/core/SkColorSpace.cpp File src/core/SkColorSpace.cpp (right): https://codereview.chromium.org/2221983002/diff/1/src/core/SkColorSpace.cpp#newcode347 src/core/SkColorSpace.cpp:347: if (ColorSpaceHeader::kFloatGamma_Flag != header.fFlags || length < 15 * ...
4 years, 4 months ago (2016-08-22 14:10:24 UTC) #8
Brian Osman
lgtm
4 years, 4 months ago (2016-08-22 18:32:49 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/2221983002/40001
4 years, 4 months ago (2016-08-22 19:28:41 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 19:29:40 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/d9015a43cf6c6e7c372c804ee3e1021b153d505f

Powered by Google App Engine
This is Rietveld 408576698