Change VariableReference::fVariable to a pointer
We will soon be re-targeting variable references, and this is going to
be much easier (and cheaper) than replacing the entire VariableReference
itself.
Change-Id: I8febc44a1c06e99251153f038a4f5f693cd30231
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/319344
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/sksl/SkSLDehydrator.cpp b/src/sksl/SkSLDehydrator.cpp
index b320343..9b8d2f3 100644
--- a/src/sksl/SkSLDehydrator.cpp
+++ b/src/sksl/SkSLDehydrator.cpp
@@ -371,7 +371,7 @@
case Expression::Kind::kVariableReference: {
const VariableReference& v = e->as<VariableReference>();
this->writeU8(Rehydrator::kVariableReference_Command);
- this->writeId(&v.fVariable);
+ this->writeId(v.fVariable);
this->writeU8(v.fRefKind);
break;
}