Document two special cases of NewColorTransform()
Officially document the two special cases of gfx::ColorTransform::NewColorTransform(): the source color space is invalid, or the target color space is invalid. I discovered them while reading the source code, and found that they are enforced by unit tests. I am interested in relying on the second special case for YUV to RGB color conversion. So I'd like to document the special cases officially. Also some minor test cleanup. Tested: gfx_unittests --gtest_filter=SimpleColorSpace.ToUndefined Change-Id: Ie80948dc8bf1677d7f7fbd69e78790d3e45df76d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2211127Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Reviewed-by:
ccameron <ccameron@chromium.org> Commit-Queue: Wan-Teh Chang <wtc@google.com> Cr-Commit-Position: refs/heads/master@{#771970}
Showing
Please register or sign in to comment