diff options
author | 2017-11-10 15:34:03 -0500 | |
---|---|---|
committer | 2017-11-13 14:36:40 +0000 | |
commit | aae47c878b83ab6d9742d92a6fa47e762f6b9204 (patch) | |
tree | fd13dbc1dc7c5dc36f8262099cf8ade55ec0cb47 /src/sksl/ir/SkSLSymbolTable.h | |
parent | 2d9cb57c83553be3434c04f860d5e9fec30cb453 (diff) |
sksl enum support
Bug: skia:
Change-Id: I4d505b31cf8b59de12bcdbca410aafc085977ba9
Reviewed-on: https://skia-review.googlesource.com/68621
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/ir/SkSLSymbolTable.h')
-rw-r--r-- | src/sksl/ir/SkSLSymbolTable.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sksl/ir/SkSLSymbolTable.h b/src/sksl/ir/SkSLSymbolTable.h index 241631db80..f245964c35 100644 --- a/src/sksl/ir/SkSLSymbolTable.h +++ b/src/sksl/ir/SkSLSymbolTable.h @@ -39,14 +39,22 @@ public: Symbol* takeOwnership(Symbol* s); + IRNode* takeOwnership(IRNode* n); + void markAllFunctionsBuiltin(); + std::unordered_map<StringFragment, const Symbol*>::iterator begin(); + + std::unordered_map<StringFragment, const Symbol*>::iterator end(); + const std::shared_ptr<SymbolTable> fParent; private: static std::vector<const FunctionDeclaration*> GetFunctions(const Symbol& s); - std::vector<std::unique_ptr<Symbol>> fOwnedPointers; + std::vector<std::unique_ptr<Symbol>> fOwnedSymbols; + + std::vector<std::unique_ptr<IRNode>> fOwnedNodes; std::unordered_map<StringFragment, const Symbol*> fSymbols; |