diff options
author | 2017-08-01 13:41:59 -0400 | |
---|---|---|
committer | 2017-08-01 18:59:15 +0000 | |
commit | 93061b53442ce303e9d3ef74c7eeddc034802c4f (patch) | |
tree | 28def473e41068ccd2f62614371c52ee1f14cdd9 /src/sksl/ir/SkSLExpression.h | |
parent | 4bd3b0905477ea1f005526818305c9a10ef2f6f8 (diff) |
support for 'half' types in sksl, plus general numeric type improvements
Bug: skia:
Change-Id: Id285262fda8291847f11343d499b5df62ddb4b09
Reviewed-on: https://skia-review.googlesource.com/28980
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/ir/SkSLExpression.h')
-rw-r--r-- | src/sksl/ir/SkSLExpression.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sksl/ir/SkSLExpression.h b/src/sksl/ir/SkSLExpression.h index 89a1a1e84a..286610f078 100644 --- a/src/sksl/ir/SkSLExpression.h +++ b/src/sksl/ir/SkSLExpression.h @@ -85,6 +85,10 @@ struct Expression : public IRNode { return nullptr; } + virtual int coercionCost(const Type& target) const { + return fType.coercionCost(target); + } + const Kind fKind; const Type& fType; |