diff options
Diffstat (limited to 'src/sksl/SkSLCompiler.h')
-rw-r--r-- | src/sksl/SkSLCompiler.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sksl/SkSLCompiler.h b/src/sksl/SkSLCompiler.h index 9f8ef4f18a..0ed6a3bdbb 100644 --- a/src/sksl/SkSLCompiler.h +++ b/src/sksl/SkSLCompiler.h @@ -88,6 +88,10 @@ public: return fErrorCount; } + Context& context() { + return *fContext; + } + static const char* OperatorName(Token::Kind token); static bool IsAssignment(Token::Kind token); @@ -134,7 +138,7 @@ private: int fFlags; const String* fSource; - Context fContext; + std::shared_ptr<Context> fContext; int fErrorCount; String fErrorText; }; |