e76f507164
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> |
||
---|---|---|
.. | ||
android | ||
c | ||
codec | ||
config | ||
core | ||
docs | ||
effects | ||
encode | ||
gpu | ||
pathops | ||
ports | ||
private | ||
sksl | ||
svg | ||
third_party | ||
utils | ||
OWNERS |