Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1293)

Unified Diff: src/sksl/ir/SkSLVarDeclarationStatement.h

Issue 2312233002: refactored SkSL VarDeclaration handling (Closed)
Patch Set: fixed nits Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/sksl/ir/SkSLVarDeclaration.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sksl/ir/SkSLVarDeclarationStatement.h
diff --git a/src/sksl/ir/SkSLVarDeclarationStatement.h b/src/sksl/ir/SkSLVarDeclarationStatement.h
index e81c0ac3ecab97cb09a28a3a565de547a3394e00..59d37ab9158945b78cd7ffda6b065224e286eb9e 100644
--- a/src/sksl/ir/SkSLVarDeclarationStatement.h
+++ b/src/sksl/ir/SkSLVarDeclarationStatement.h
@@ -14,18 +14,18 @@
namespace SkSL {
/**
- * A variable declaration appearing as a statement within a function.
+ * One or more variable declarations appearing as a statement within a function.
*/
-struct VarDeclarationStatement : public Statement {
- VarDeclarationStatement(std::unique_ptr<VarDeclaration> decl)
- : INHERITED(decl->fPosition, kVarDeclaration_Kind)
+struct VarDeclarationsStatement : public Statement {
+ VarDeclarationsStatement(std::unique_ptr<VarDeclarations> decl)
+ : INHERITED(decl->fPosition, kVarDeclarations_Kind)
, fDeclaration(std::move(decl)) {}
std::string description() const override {
return fDeclaration->description();
}
- const std::shared_ptr<VarDeclaration> fDeclaration;
+ const std::shared_ptr<VarDeclarations> fDeclaration;
typedef Statement INHERITED;
};
« no previous file with comments | « src/sksl/ir/SkSLVarDeclaration.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698