diff options
Diffstat (limited to 'src/sksl/ast/SkSLASTExtension.h')
-rw-r--r-- | src/sksl/ast/SkSLASTExtension.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sksl/ast/SkSLASTExtension.h b/src/sksl/ast/SkSLASTExtension.h index 896ac46c58..b9df3c52e9 100644 --- a/src/sksl/ast/SkSLASTExtension.h +++ b/src/sksl/ast/SkSLASTExtension.h @@ -16,15 +16,15 @@ namespace SkSL { * An extension declaration. */ struct ASTExtension : public ASTDeclaration { - ASTExtension(Position position, std::string name) + ASTExtension(Position position, SkString name) : INHERITED(position, kExtension_Kind) , fName(std::move(name)) {} - std::string description() const override { + SkString description() const override { return "#extension " + fName + " : enable"; } - const std::string fName; + const SkString fName; typedef ASTDeclaration INHERITED; }; |