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

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

Issue 2131223002: SkSL performance improvements (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 5 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/SkSLConstructor.h ('k') | src/sksl/ir/SkSLField.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sksl/ir/SkSLExpression.h
diff --git a/src/sksl/ir/SkSLExpression.h b/src/sksl/ir/SkSLExpression.h
index 1e42c7a4755e02cb42c9f2456d4fd9bfee44c39c..92cb37de776bb4c3424d5b7ff8842da85bc8c223 100644
--- a/src/sksl/ir/SkSLExpression.h
+++ b/src/sksl/ir/SkSLExpression.h
@@ -35,7 +35,7 @@ struct Expression : public IRNode {
kTypeReference_Kind,
};
- Expression(Position position, Kind kind, std::shared_ptr<Type> type)
+ Expression(Position position, Kind kind, const Type& type)
: INHERITED(position)
, fKind(kind)
, fType(std::move(type)) {}
@@ -45,7 +45,7 @@ struct Expression : public IRNode {
}
const Kind fKind;
- const std::shared_ptr<Type> fType;
+ const Type& fType;
typedef IRNode INHERITED;
};
« no previous file with comments | « src/sksl/ir/SkSLConstructor.h ('k') | src/sksl/ir/SkSLField.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698