aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLExpression.h
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-08-01 13:41:59 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-01 18:59:15 +0000
commit93061b53442ce303e9d3ef74c7eeddc034802c4f (patch)
tree28def473e41068ccd2f62614371c52ee1f14cdd9 /src/sksl/ir/SkSLExpression.h
parent4bd3b0905477ea1f005526818305c9a10ef2f6f8 (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.h4
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;