summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorNolan Scobie <nscobie@google.com>2022-07-28 16:37:25 +0000
committerNolan Scobie <nscobie@google.com>2022-08-08 21:55:43 +0000
commita21bbb027a3eff72f94063e59c894020abd73c3c (patch)
treefae5f17b92c42ad9e80c46f7fb3f86211f12ec33 /core/java/android/widget/TextView.java
parenta9aaecab10d825212fec69db827bf5bff87e5edb (diff)
Fix Canvas#drawVertices color blending when no shader is provided
Since https://skia-review.googlesource.com/c/skia/+/473676, Skia will blend paint and vertex colors when no shader is provided. This fix mimics the old behavior of ignoring the paint and using the vertex colors directly when no shader is provided. Additionally, centralizes some legacy compatability logic of disabling the shader if no texs array is provided. I think this simplifies the logic/cognitive overhead of understanding what compatability tweaks are being made to the call. Tests added in Iddb4d2a3872b905684ec57c0e039d0bd0ca64a71 Test: atest ExactCanvasTests Fix: 239398877 Change-Id: Ie9a6389b422cc0c315485d8a8097314cb6706538
Diffstat (limited to 'core/java/android/widget/TextView.java')
0 files changed, 0 insertions, 0 deletions