commit | d9015a43cf6c6e7c372c804ee3e1021b153d505f | [log] [tgz] |
---|---|---|
author | msarett <msarett@google.com> | Mon Aug 22 12:29:31 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Aug 22 12:29:32 2016 -0700 |
tree | e52b1e47fd340695a2fef97bb63a5af88522c907 | |
parent | a90dcf791b70ee5147faebd1d102f51c455b2889 [diff] |
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 Review-Url: https://codereview.chromium.org/2221983002