diff options
Diffstat (limited to 'src/sksl/ast/SkSLASTExtension.h')
-rw-r--r-- | src/sksl/ast/SkSLASTExtension.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sksl/ast/SkSLASTExtension.h b/src/sksl/ast/SkSLASTExtension.h index a6fde0694c..b9df3c52e9 100644 --- a/src/sksl/ast/SkSLASTExtension.h +++ b/src/sksl/ast/SkSLASTExtension.h @@ -4,7 +4,7 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ - + #ifndef SKSL_ASTEXTENSION #define SKSL_ASTEXTENSION @@ -12,19 +12,19 @@ namespace SkSL { -/** - * An extension declaration. +/** + * An extension declaration. */ struct ASTExtension : public ASTDeclaration { - ASTExtension(Position position, String name) + ASTExtension(Position position, SkString name) : INHERITED(position, kExtension_Kind) , fName(std::move(name)) {} - String description() const override { + SkString description() const override { return "#extension " + fName + " : enable"; } - const String fName; + const SkString fName; typedef ASTDeclaration INHERITED; }; |