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

Unified Diff: src/sksl/ir/SkSLFunctionReference.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/SkSLFunctionDefinition.h ('k') | src/sksl/ir/SkSLIndexExpression.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sksl/ir/SkSLFunctionReference.h
diff --git a/src/sksl/ir/SkSLFunctionReference.h b/src/sksl/ir/SkSLFunctionReference.h
index d5cc444000c9324b694517b794f33c4839f234fb..5d97a5879fce257690d97ec3dcc252ee4ab601f7 100644
--- a/src/sksl/ir/SkSLFunctionReference.h
+++ b/src/sksl/ir/SkSLFunctionReference.h
@@ -8,6 +8,7 @@
#ifndef SKSL_FUNCTIONREFERENCE
#define SKSL_FUNCTIONREFERENCE
+#include "SkSLContext.h"
#include "SkSLExpression.h"
namespace SkSL {
@@ -17,8 +18,9 @@ namespace SkSL {
* always eventually replaced by FunctionCalls in valid programs.
*/
struct FunctionReference : public Expression {
- FunctionReference(Position position, std::vector<std::shared_ptr<FunctionDeclaration>> function)
- : INHERITED(position, kFunctionReference_Kind, kInvalid_Type)
+ FunctionReference(const Context& context, Position position,
+ std::vector<const FunctionDeclaration*> function)
+ : INHERITED(position, kFunctionReference_Kind, *context.fInvalid_Type)
, fFunctions(function) {}
virtual std::string description() const override {
@@ -26,7 +28,7 @@ struct FunctionReference : public Expression {
return "<function>";
}
- const std::vector<std::shared_ptr<FunctionDeclaration>> fFunctions;
+ const std::vector<const FunctionDeclaration*> fFunctions;
typedef Expression INHERITED;
};
« no previous file with comments | « src/sksl/ir/SkSLFunctionDefinition.h ('k') | src/sksl/ir/SkSLIndexExpression.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698