aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLSetting.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sksl/ir/SkSLSetting.h')
-rw-r--r--src/sksl/ir/SkSLSetting.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sksl/ir/SkSLSetting.h b/src/sksl/ir/SkSLSetting.h
index 1396099102..cc1c551077 100644
--- a/src/sksl/ir/SkSLSetting.h
+++ b/src/sksl/ir/SkSLSetting.h
@@ -28,6 +28,10 @@ struct Setting : public Expression {
std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator,
const DefinitionMap& definitions) override;
+ std::unique_ptr<Expression> clone() const override {
+ return std::unique_ptr<Expression>(new Setting(fOffset, fName, fValue->clone()));
+ }
+
String description() const override {
return fName;
}