Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a21bbb02 authored by Nolan Scobie's avatar Nolan Scobie
Browse files

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
parent a9aaecab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment