aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLIntLiteral.h
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2018-01-17 13:51:52 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-17 20:09:37 +0000
commit8f6c2aba638c9397e9987fca7cbd8d0ff4b23e8f (patch)
treebc5a74f0de77fa7c5dbccfbbb479d6dccfdf1d38 /src/sksl/ir/SkSLIntLiteral.h
parentadbe1328789071d1f742023edd93b6948eed9470 (diff)
cleaned up SkSL constant handling
Bug: skia: Change-Id: I8131c4348f0f91bc2705e493918c4ca2d1f4867b Reviewed-on: https://skia-review.googlesource.com/95920 Reviewed-by: Chris Dalton <csmartdalton@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/ir/SkSLIntLiteral.h')
-rw-r--r--src/sksl/ir/SkSLIntLiteral.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sksl/ir/SkSLIntLiteral.h b/src/sksl/ir/SkSLIntLiteral.h
index da2b4082de..50337bfe6f 100644
--- a/src/sksl/ir/SkSLIntLiteral.h
+++ b/src/sksl/ir/SkSLIntLiteral.h
@@ -47,6 +47,10 @@ struct IntLiteral : public Expression {
return INHERITED::coercionCost(target);
}
+ int64_t getConstantInt() const override {
+ return fValue;
+ }
+
const int64_t fValue;
typedef Expression INHERITED;