diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-02-07 17:28:31 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-09 14:48:18 +0000 |
commit | 6f223283661c1ddc4a5334d2464804c6b6ba3ffa (patch) | |
tree | ea9a73a68bc283bea25ed317c870668ab99f1823 /src/sksl/SkSLIRGenerator.h | |
parent | 9eae62c039304b4c315d0ba343c7cb209221cf45 (diff) |
skslc type constructor cleanups
BUG=skia:
Change-Id: I87108b5e107419d99c996ef032eda512a68451ab
Reviewed-on: https://skia-review.googlesource.com/8117
Commit-Queue: Greg Daniel <egdaniel@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/sksl/SkSLIRGenerator.h')
-rw-r--r-- | src/sksl/SkSLIRGenerator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sksl/SkSLIRGenerator.h b/src/sksl/SkSLIRGenerator.h index 2ffcb0df26..1336b68c88 100644 --- a/src/sksl/SkSLIRGenerator.h +++ b/src/sksl/SkSLIRGenerator.h @@ -126,6 +126,14 @@ private: std::unique_ptr<Expression> coerce(std::unique_ptr<Expression> expr, const Type& type); std::unique_ptr<Block> convertBlock(const ASTBlock& block); std::unique_ptr<Statement> convertBreak(const ASTBreakStatement& b); + std::unique_ptr<Expression> convertNumberConstructor( + Position position, + const Type& type, + std::vector<std::unique_ptr<Expression>> params); + std::unique_ptr<Expression> convertCompoundConstructor( + Position position, + const Type& type, + std::vector<std::unique_ptr<Expression>> params); std::unique_ptr<Expression> convertConstructor(Position position, const Type& type, std::vector<std::unique_ptr<Expression>> params); |