aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLProgram.h
diff options
context:
space:
mode:
authorGravatar ethannicholas <ethannicholas@google.com>2016-07-25 10:08:54 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-25 10:08:54 -0700
commitd598f7981f34811e6f2a949207dc13638852f3f7 (patch)
tree83dd4cf4983f90125651a0ab380f4f71cb3e27f2 /src/sksl/ir/SkSLProgram.h
parentd9ddad2952cdfd0809249abbd94a285abdb6b1d0 (diff)
SkSL performance improvements (plus a couple of minor warning fixes)
Diffstat (limited to 'src/sksl/ir/SkSLProgram.h')
-rw-r--r--src/sksl/ir/SkSLProgram.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sksl/ir/SkSLProgram.h b/src/sksl/ir/SkSLProgram.h
index 5edcfded42..205db6e932 100644
--- a/src/sksl/ir/SkSLProgram.h
+++ b/src/sksl/ir/SkSLProgram.h
@@ -12,6 +12,7 @@
#include <memory>
#include "SkSLProgramElement.h"
+#include "SkSLSymbolTable.h"
namespace SkSL {
@@ -24,13 +25,16 @@ struct Program {
kVertex_Kind
};
- Program(Kind kind, std::vector<std::unique_ptr<ProgramElement>> elements)
+ Program(Kind kind, std::vector<std::unique_ptr<ProgramElement>> elements,
+ std::shared_ptr<SymbolTable> symbols)
: fKind(kind)
- , fElements(std::move(elements)) {}
+ , fElements(std::move(elements))
+ , fSymbols(symbols) {}
Kind fKind;
std::vector<std::unique_ptr<ProgramElement>> fElements;
+ std::shared_ptr<SymbolTable> fSymbols;
};
} // namespace