diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-02-23 16:18:54 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-23 16:20:10 +0000 |
commit | 7d975fc200bbbea991ec4c04c08f3a5ea7b847af (patch) | |
tree | 813ff12f25afc903a65880be187ef88162fad866 /src/sksl/SkSLGLSLCodeGenerator.cpp | |
parent | d196cbe9c270799a6edb6e110ab647c5a4a850a2 (diff) |
Revert "skslc switch support"
This reverts commit 2b1e468dabd2ac7bea7ec17740275f4f4aad30c3.
Reason for revert: bot breakage
Original change's description:
> skslc switch support
>
> BUG=skia:
>
> Change-Id: Ida7f9e80139aa1e4f43804cafbcac640e47fab25
> Reviewed-on: https://skia-review.googlesource.com/8771
> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
> Reviewed-by: Ben Wagner <benjaminwagner@google.com>
>
TBR=benjaminwagner@google.com,ethannicholas@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Change-Id: Iaaa35d10a15704279c6883d4d68f6d4ad5078320
Reviewed-on: https://skia-review.googlesource.com/8792
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/SkSLGLSLCodeGenerator.cpp')
-rw-r--r-- | src/sksl/SkSLGLSLCodeGenerator.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/sksl/SkSLGLSLCodeGenerator.cpp b/src/sksl/SkSLGLSLCodeGenerator.cpp index 35a2f62b08..3f5f9d1b39 100644 --- a/src/sksl/SkSLGLSLCodeGenerator.cpp +++ b/src/sksl/SkSLGLSLCodeGenerator.cpp @@ -681,9 +681,6 @@ void GLSLCodeGenerator::writeStatement(const Statement& s) { case Statement::kDo_Kind: this->writeDoStatement((DoStatement&) s); break; - case Statement::kSwitch_Kind: - this->writeSwitchStatement((SwitchStatement&) s); - break; case Statement::kBreak_Kind: this->write("break;"); break; @@ -753,30 +750,6 @@ void GLSLCodeGenerator::writeDoStatement(const DoStatement& d) { this->write(");"); } -void GLSLCodeGenerator::writeSwitchStatement(const SwitchStatement& s) { - this->write("switch ("); - this->writeExpression(*s.fValue, kTopLevel_Precedence); - this->writeLine(") {"); - fIndentation++; - for (const auto& c : s.fCases) { - if (c->fValue) { - this->write("case "); - this->writeExpression(*c->fValue, kTopLevel_Precedence); - this->writeLine(":"); - } else { - this->writeLine("default:"); - } - fIndentation++; - for (const auto& stmt : c->fStatements) { - this->writeStatement(*stmt); - this->writeLine(); - } - fIndentation--; - } - fIndentation--; - this->write("}"); -} - void GLSLCodeGenerator::writeReturnStatement(const ReturnStatement& r) { this->write("return"); if (r.fExpression) { |