diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-02-22 17:20:11 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-23 15:30:37 +0000 |
commit | 2b1e468dabd2ac7bea7ec17740275f4f4aad30c3 (patch) | |
tree | 6cd847e75b45c9f02f2c3f299ca81664434c0f85 /src/sksl/SkSLGLSLCodeGenerator.h | |
parent | 69d4992e69d7b142450d0ccb587b7b26be7cf1ea (diff) |
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>
Diffstat (limited to 'src/sksl/SkSLGLSLCodeGenerator.h')
-rw-r--r-- | src/sksl/SkSLGLSLCodeGenerator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sksl/SkSLGLSLCodeGenerator.h b/src/sksl/SkSLGLSLCodeGenerator.h index 0ae2c5c585..907c3053c6 100644 --- a/src/sksl/SkSLGLSLCodeGenerator.h +++ b/src/sksl/SkSLGLSLCodeGenerator.h @@ -34,6 +34,7 @@ #include "ir/SkSLProgramElement.h" #include "ir/SkSLReturnStatement.h" #include "ir/SkSLStatement.h" +#include "ir/SkSLSwitchStatement.h" #include "ir/SkSLSwizzle.h" #include "ir/SkSLTernaryExpression.h" #include "ir/SkSLVarDeclarations.h" @@ -155,6 +156,8 @@ private: void writeDoStatement(const DoStatement& d); + void writeSwitchStatement(const SwitchStatement& s); + void writeReturnStatement(const ReturnStatement& r); const Context& fContext; |