commit | 77320dbabcddf05c0a1489eaf1f496729dc8de0e | [log] [tgz] |
---|---|---|
author | brianosman <brianosman@google.com> | Wed Sep 07 08:09:10 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Sep 07 08:09:10 2016 -0700 |
tree | 6dce3ee85d2206685279217db47e66dd47839e43 | |
parent | d2e39dbc6a68a6cc2a480d0c8082eb204f6b6e77 [diff] |
Add color gamut xform helpers to GrGLSLShaderBuilder New helper functions inject the necessary shader function. Texture lookup functions can now insert the gamut xform at the appropriate place, too. As written, could be used to transform non-texture colors (e.g. vertex colors) as well. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2180803005 Review-Url: https://codereview.chromium.org/2180803005