8e2ef02855
As a first step, convert sksl_pipeline.sksl to an IntrinsicMap (rather than inherited element list). This makes the new code operate on sk_FragCoord (which was previously being shared by all runtime effect programs). The new unit test angered TSAN, and now runs without complaint. Also finish converting the .fp intrinsics over, so those don't need an inherited element list either. And while doing that, refactor that parsing to match all of the others. FP was uniquely implementing processIncludeFile itself, rather than reusing the pattern of other pre-include parsing. The meat of the CL is the subtle changes in Compiler, and the logic in cloneBuiltinVariables. Note that we need to clone the global variable declaration element (because one of the goals is to get rid of shared and inherited program elements), but also the variable itself (and the new copy needs to live in the program's symbol table). Bug: skia:10589 Bug: skia:10679 Bug: skia:10680 Change-Id: Ied352f8434dac2b8eacb4e515b014b6af7b57d20 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/319023 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com> |
||
---|---|---|
animations | ||
bazel | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
client_utils/android | ||
demos.skia.org | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.bazelignore | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.bazel | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt | ||
WORKSPACE.bazel |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.