commit | 0dfb2d96793fde6fded26b2c1c3a9c965ef2cd59 | [log] [tgz] |
---|---|---|
author | Brian Osman <brianosman@google.com> | Fri Oct 29 09:36:03 2021 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Fri Oct 29 15:57:53 2021 +0000 |
tree | 84383e07770157ede09eb9ff892ec3c13e925d4a | |
parent | 378e4aecfe58209447b0c51350272e73280ae282 [diff] |
When setting paint color/alpha, pin alpha to [0,1] We used to just assert, but it turns out that Android has tests that explicitly set out-of-range alpha values (and disable our asserts). Bug: skia:11942 Bug: b/186543004 Change-Id: I167de7aba261ca3df579f9a0bddb0d90605e0094 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/465381 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Osman <brianosman@google.com>