aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLSection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sksl/ir/SkSLSection.h')
-rw-r--r--src/sksl/ir/SkSLSection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sksl/ir/SkSLSection.h b/src/sksl/ir/SkSLSection.h
index 96c257b1f8..d06b979c17 100644
--- a/src/sksl/ir/SkSLSection.h
+++ b/src/sksl/ir/SkSLSection.h
@@ -22,6 +22,10 @@ struct Section : public ProgramElement {
, fArgument(std::move(arg))
, fText(std::move(text)) {}
+ std::unique_ptr<ProgramElement> clone() const override {
+ return std::unique_ptr<ProgramElement>(new Section(fOffset, fName, fArgument, fText));
+ }
+
String description() const override {
String result = "@" + fName;
if (fArgument.size()) {