commit | b65dc4a3747076cc700ed5f3f28efff8fe827d93 | [log] [tgz] |
---|---|---|
author | Brian Osman <brianosman@google.com> | Fri Aug 14 11:27:28 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Aug 17 17:49:09 2020 +0000 |
tree | 372c0a04ac6f3b60f06b314218fd34d2fcf270b8 | |
parent | 37e6f530dc100ef8b8be02878ffb8ad1e2041ef4 [diff] |
SkSL: Disallow swizzles that *only* contain '0' or '1' components These are very easy to mis-read, and they don't make much sense. Swizzles should refer to the base expression at least once. Change-Id: I4c2740c7439a11b51b2eb41263c6435e3aefad35 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/310376 Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>