commit | e314b4593c92df8f87f7c54f75d4d2cd8bd47a90 | [log] [tgz] |
---|---|---|
author | Michael Ludwig <michaelludwig@google.com> | Tue Jan 28 10:21:13 2025 -0500 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Tue Jan 28 08:42:52 2025 -0800 |
tree | 66d7f91c351135ec137c7e71a47860754995f2a0 | |
parent | f1e9a73c87cb3032d0c7a8c3ae139c9ed6537146 [diff] |
Use Apple's linear transformation equation for XR color types in SkRasterPipeline Removes an unnecessary form of round() that took a scale parameter, and adjusts to_unorm() to support extended range inputs that have valid negative values before being scale/biased into the unorm range. Adjusts the store operations to use the integer-based linear transformation equation, which is what the decoding functions already used. This keeps SkRasterPipeline in sync with the now updated skcms after https://skia-review.googlesource.com/c/skcms/+/941659 and https://skia-review.googlesource.com/c/skcms/+/941122 Bug: b/391972897 Change-Id: Idba87643ceeb9a570774b1f0ed68028b88be0e56 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/942776 Commit-Queue: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Kaylee Lubick <kjlubick@google.com>