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

Unified Diff: src/sksl/SkSLCompiler.h

Issue 2185393003: added initial GLSL support to skslc (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: added initial GLSL support to skslc 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
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;
« no previous file with comments | « gyp/sksl.gypi ('k') | src/sksl/SkSLCompiler.cpp » ('j') | src/sksl/SkSLGLSLCodeGenerator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698