Remove dedicated name from SymbolTable entries.
We now assume that the Symbol's name() is its actual name, instead of
having it passed it in by the caller. This simplifies calling code, and
also removes redundant symbol names from the Dehydrator, saving a few
hundred bytes here and there.
Change-Id: I3e3d65b238ea58ab52f5dca205458d6f45c06c3d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/323110
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
diff --git a/src/sksl/SkSLRehydrator.cpp b/src/sksl/SkSLRehydrator.cpp
index 3e9d7bf..e31184d 100644
--- a/src/sksl/SkSLRehydrator.cpp
+++ b/src/sksl/SkSLRehydrator.cpp
@@ -573,9 +573,8 @@
std::vector<std::pair<StringFragment, int>> symbols;
symbols.reserve(symbolCount);
for (int i = 0; i < symbolCount; ++i) {
- StringFragment name = this->readString();
int index = this->readU16();
- fSymbolTable->addWithoutOwnership(name, ownedSymbols[index]);
+ fSymbolTable->addWithoutOwnership(ownedSymbols[index]);
}
fSymbolTable = oldTable;
return result;