Chromium Code Reviews| Index: src/sksl/SkSLCompiler.h |
| diff --git a/src/sksl/SkSLCompiler.h b/src/sksl/SkSLCompiler.h |
| index e63d5f4ed843bec6690e7c92974ce3f271398605..c64a24c43302da8035ce7c4098c505918752d6b5 100644 |
| --- a/src/sksl/SkSLCompiler.h |
| +++ b/src/sksl/SkSLCompiler.h |
| @@ -13,6 +13,7 @@ |
| #include "ir/SkSLSymbolTable.h" |
| #include "SkSLContext.h" |
| #include "SkSLErrorReporter.h" |
| +#include "SkSLGLSLCodeGenerator.h" |
| namespace SkSL { |
| @@ -32,9 +33,13 @@ public: |
| std::unique_ptr<Program> convertProgram(Program::Kind kind, std::string text); |
| - bool toSPIRV(Program::Kind kind, std::string text, std::ostream& out); |
| + bool toSPIRV(Program::Kind kind, const std::string& text, std::ostream& out); |
| - bool toSPIRV(Program::Kind kind, std::string text, std::string* out); |
| + bool toSPIRV(Program::Kind kind, const std::string& text, std::string* out); |
| + |
| + bool toGLSL(Program::Kind kind, const std::string& text, GLCaps caps, std::ostream& out); |
|
dogben
2016/07/31 23:20:19
nit: indentation doesn't seem to match above.
ethannicholas
2016/08/02 16:13:17
Evidently one of the editors I use was not properl
|
| + |
| + bool toGLSL(Program::Kind kind, const std::string& text, GLCaps caps, std::string* out); |
| void error(Position position, std::string msg) override; |