Replace the vector<Statement> in SwitchCase with a Block.
Change-Id: Ic2d1240ab785101365b0fd934562505fb5a3e599
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/381816
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
diff --git a/src/sksl/SkSLDehydrator.cpp b/src/sksl/SkSLDehydrator.cpp
index ab45693..c0e5fa4 100644
--- a/src/sksl/SkSLDehydrator.cpp
+++ b/src/sksl/SkSLDehydrator.cpp
@@ -464,10 +464,7 @@
this->writeU8(ss.cases().size());
for (const std::unique_ptr<SwitchCase>& sc : ss.cases()) {
this->write(sc->value().get());
- this->writeU8(sc->statements().size());
- for (const std::unique_ptr<Statement>& stmt : sc->statements()) {
- this->write(stmt.get());
- }
+ this->write(sc->statement().get());
}
break;
}