skia2/include/sksl
Ethan Nicholas 80f6235688 Fixed an issue with passing DSLVar as a DSL function parameter
DSLVar is normally implicitly converted to DSLExpression wherever it is
used, but the naively template-ized nature of DSLFunction::operator()
meant that it was accepting DSLVar parameters directly. Since DSLVar is
non-copyable, this meant DSLVar couldn't be passed directly to a DSL
function.

The smarter templates in this change are able to pass DSLVar by
reference.

Change-Id: Id04531f909cefd29b377c46e37fc4525bb29953c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/394161
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-04-09 17:13:27 +00:00
..
DSL.h
DSLBlock.h
DSLCase.h
DSLCore.h
DSLErrorHandling.h
DSLExpression.h Refactored DSL variable creation 2021-03-25 23:02:04 +00:00
DSLFunction.h Fixed an issue with passing DSLVar as a DSL function parameter 2021-04-09 17:13:27 +00:00
DSLModifiers.h Refactored DSL variable creation 2021-03-25 23:02:04 +00:00
DSLStatement.h Fixed an issue with DSL includes 2021-03-09 20:07:00 +00:00
DSLType.h Added _Type suffix to DSL Type enum 2021-04-08 21:55:05 +00:00
DSLVar.h Refactored DSL variable creation 2021-03-25 23:02:04 +00:00