moved SkSL FieldAccess data into IRNode
Change-Id: Ib2fd8c246799a1bde566395080fe6617754644f9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/324635
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
diff --git a/src/sksl/SkSLDehydrator.cpp b/src/sksl/SkSLDehydrator.cpp
index 9e166e3..31a5431 100644
--- a/src/sksl/SkSLDehydrator.cpp
+++ b/src/sksl/SkSLDehydrator.cpp
@@ -296,9 +296,9 @@
case Expression::Kind::kFieldAccess: {
const FieldAccess& f = e->as<FieldAccess>();
this->writeCommand(Rehydrator::kFieldAccess_Command);
- this->write(f.fBase.get());
- this->writeU8(f.fFieldIndex);
- this->writeU8(f.fOwnerKind);
+ this->write(f.base().get());
+ this->writeU8(f.fieldIndex());
+ this->writeU8((int8_t) f.ownerKind());
break;
}
case Expression::Kind::kFloatLiteral: {