aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLEnum.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sksl/ir/SkSLEnum.h')
-rw-r--r--src/sksl/ir/SkSLEnum.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sksl/ir/SkSLEnum.h b/src/sksl/ir/SkSLEnum.h
index 6c44a67678..eea7e5c3a5 100644
--- a/src/sksl/ir/SkSLEnum.h
+++ b/src/sksl/ir/SkSLEnum.h
@@ -17,6 +17,10 @@ struct Enum : public ProgramElement {
, fTypeName(typeName)
, fSymbols(std::move(symbols)) {}
+ std::unique_ptr<ProgramElement> clone() const override {
+ return std::unique_ptr<ProgramElement>(new Enum(fOffset, fTypeName, fSymbols));
+ }
+
String description() const override {
String result = "enum class " + fTypeName + " {\n";
String separator;