Store loop-unroll information inside ForStatement.
This will be useful when trying to determine the flattened size of a
program, and it is expensive to compute on demand.
Change-Id: I232d9189511502d4783e5542a9bfe0dff8ea8c4a
Bug: skia:12396
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/443883
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/src/sksl/SkSLRehydrator.cpp b/src/sksl/SkSLRehydrator.cpp
index 5a1e772..35ba922 100644
--- a/src/sksl/SkSLRehydrator.cpp
+++ b/src/sksl/SkSLRehydrator.cpp
@@ -350,7 +350,7 @@
std::shared_ptr<SymbolTable> symbols = this->symbolTable();
return ForStatement::Make(fContext, /*offset=*/-1, std::move(initializer),
std::move(test), std::move(next), std::move(body),
- std::move(symbols));
+ /*unrollInfo=*/nullptr, std::move(symbols));
}
case Rehydrator::kIf_Command: {
bool isStatic = this->readU8();