0cb2fdefc2
This also simplifies the internalStencilClear() paint configuration to use GrDisableColorXP instead of a transparent black paint. Without the fix to finalize(), the use of GrDisableColorXP would cause GLPrograms unit tests to assert when run on a device that needed to draw for its stencil clears. What would happen is that an initial stencil clear would add an op with no FPs and the disabled-color XP. Then the unit test would generate a program with an FP that didn't support coverage as alpha and used the disabled-color XP. The FP would disable the coverage-as-alpha optimization, but then the XP would remove all FPs. This lead to processor sets that were considered equal (same XP, no FPs), but had different results from finalize(). Change-Id: I6387234a6834028b417a63b9045b9098f72bec75 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/216354 Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Brian Osman <brianosman@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
whitespace.txt |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.