forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding OKLAB, OKLCH, AdobeRGB and Rec2020 to SkColor4f conversion
As part of the support of CSS Color 4, we need to support color spaces other than sRGB for inputing colors. For that we need to add support to some other color spaces. This CL particularly adds support to convert from AdobeRGB to sRGB and from Rec2020 to sRGB. This CL also adds OKLAB and OKLCH. There have been added extensive unittests for all those color transformations, and changing the expectation of some tests that now should be passing. Bug: 1358565 Change-Id: I1c44023a2291a9ab619bf263e9cc7a7bb992a95f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3922121 Auto-Submit: Juanmi Huertas <juanmihd@chromium.org> Reviewed-by: ccameron chromium <ccameron@chromium.org> Commit-Queue: Juanmi Huertas <juanmihd@chromium.org> Cr-Commit-Position: refs/heads/main@{#1052457}
- Loading branch information
Showing
5 changed files
with
407 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.