skia2/tests/sksl
John Stiles 569249be6c Improve support for function prototypes in SkSL.
Previously, when a prototype was parsed, this added a function
declaration to the symbol table, but the prototype itself was not
re-emitted during code generation. This meant that the final code might
not be valid, since the absence of prototypes meant that the code might
attempt to invoke a function before its declaration. Now, prototypes are
stored in the ProgramElement list and re-emitted during code generation
for GLSL/Metal/CPP. (SPIR-V doesn't name its functions at all.)

Change-Id: I76446c796000eb0b56f964d82457122182c28b87
Bug: skia:10872
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/331136
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-11-03 19:09:25 +00:00
..
blend Directly compute call counts, rather than mutating state 2020-10-19 16:08:39 +00:00
errors Improve support for function prototypes in SkSL. 2020-11-03 19:09:25 +00:00
fp Improve support for function prototypes in SkSL. 2020-11-03 19:09:25 +00:00
glsl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
inliner Directly compute call counts, rather than mutating state 2020-10-19 16:08:39 +00:00
shared Improve support for function prototypes in SkSL. 2020-11-03 19:09:25 +00:00
workarounds Directly compute call counts, rather than mutating state 2020-10-19 16:08:39 +00:00