moved SkSL FunctionDefinition data into IRNode
Change-Id: Ia828de0793ee66301ba315f4593b4d7d69222b4e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/326717
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
diff --git a/src/sksl/SkSLDehydrator.cpp b/src/sksl/SkSLDehydrator.cpp
index 6bbcfd4..ea36e94 100644
--- a/src/sksl/SkSLDehydrator.cpp
+++ b/src/sksl/SkSLDehydrator.cpp
@@ -529,11 +529,11 @@
case ProgramElement::Kind::kFunction: {
const FunctionDefinition& f = e.as<FunctionDefinition>();
this->writeCommand(Rehydrator::kFunctionDefinition_Command);
- this->writeU16(this->symbolId(&f.fDeclaration));
- this->write(f.fBody.get());
- this->writeU8(f.fReferencedIntrinsics.size());
+ this->writeU16(this->symbolId(&f.declaration()));
+ this->write(f.body().get());
+ this->writeU8(f.referencedIntrinsics().size());
std::set<uint16_t> ordered;
- for (const FunctionDeclaration* ref : f.fReferencedIntrinsics) {
+ for (const FunctionDeclaration* ref : f.referencedIntrinsics()) {
ordered.insert(this->symbolId(ref));
}
for (uint16_t ref : ordered) {