skia2/include
John Stiles e76f507164 Remove variable-declared flags from DSLVarBase.
The DSLVarBase `fDeclared` field was used to track whether a variable
was created with `Var`, but never declared with a matching `Declare`, in
a hand-authored DSL program. This was expected to be a common source of
slip-ups in hand-authored DSL, so we tracked it and printed a handy
error message if `Declare` was ever missing. However, this complicated
testing, because in tiny test snippets we _do_ want the ability to
create variables without necessarily declaring them. So, we had a
separate program setting to disable enforcement for test code.

For programs created in DSLParser, tracking this state is unnecessary;
the parser won't ever forget to declare variables.

Since hand-authored DSL programs are no longer expected to be
commonplace, we can remove the state tracking and the associated
ProgramSettings field entirely.

Change-Id: I32b28f8a2ca6591d3da80cd974fff8101f5a4be8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/541638
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-05-18 15:54:42 +00:00
..
android [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
c [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
codec [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
config [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
core Reland "Add SkCapabilities object" 2022-05-17 13:15:06 +00:00
docs [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
effects Add #version directive to SkSL 2022-05-17 15:42:31 +00:00
encode [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
gpu [graphite] Begin mutating PaintCombo to be more encapsulated 2022-05-18 15:39:19 +00:00
pathops [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
ports [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
private [graphite] Use scalar constructor in Rect::Infinite 2022-05-17 20:03:24 +00:00
sksl Remove variable-declared flags from DSLVarBase. 2022-05-18 15:54:42 +00:00
svg [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
third_party [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
utils [bazel] Put licenses() after legacy_exports 2022-05-02 15:04:33 +00:00
OWNERS Add Bazel folks as owners to BUILD.bazel files 2021-11-09 14:24:54 +00:00