summaryrefslogtreecommitdiff
path: root/opengl/java/com
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2020-04-10 15:04:22 -0400
committerLeon Scroggins <scroggo@google.com>2020-04-14 18:43:16 +0000
commit865f0f1ec9708cb6beca7d45f285ac06a312857a (patch)
tree6ea868b207a26a380e090e89fa8928b9f9929f76 /opengl/java/com
parent42987638f5819d5d50fd849467572cadda2a0446 (diff)
Support Skia's gray SkColorSpaces
Bug: 153410582 Test: I0a280cdfdb02766f5e415408386cce49a59504ab For gray color spaces, Skia creates a special toXYZD50 matrix which does not have any concept of primaries. Update the Java ColorSpace to recognize such a matrix and treat it specially. Instead of creating primaries, use a set of dummy values. This fixes a bug where the Java ColorSpace was invalid (NaNs in its transforms) and applying it to a new Bitmap yielded incorrect results. Fix up the @see links in getPrimaries and surrounding methods. Change-Id: I94fe232e10f56a69832d4a39a2e5909eac641264 (cherry picked from commit d82d585f283d59264c2e8459d4bda5ef69301044) Merged-In: I94fe232e10f56a69832d4a39a2e5909eac641264
Diffstat (limited to 'opengl/java/com')
0 files changed, 0 insertions, 0 deletions