skia /
skia /
5606ef899116266132253e979a793fea97f12604 Reland "[graphite] Use colorspace matrix to handle RGB swizzle."
This is a reland of Ia4f0cd9e64e28a33c16a5b8b0928c38db7a63d6c
Original change's description:
> Handles the swizzle swaps by manipulating the gamut matrix.
> * BGR is a column swap
> * RRR puts the sum of the matrix rows in the left component
> * 000 zeros out the matrix
>
> Alpha swizzle is handled prior to this. If the alpha changes it
> will either be R or 1, which is handled by multiplying by a 2-vector.
>
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/781297
> Commit-Queue: Jim Van Verth <jvanverth@google.com>
> Reviewed-by: Michael Ludwig <michaelludwig@google.com>
> Reviewed-by: James Godfrey-Kittle <jamesgk@google.com>
Change-Id: I68587c2ee3628adc1b6b6a1283d4cd702dd84f31
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/782536
Reviewed-by: James Godfrey-Kittle <jamesgk@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
5 files changed