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

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: fixed gn build Created 4 years, 4 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
« no previous file with comments | « src/sksl/SkSLCodeGenerator.h ('k') | src/sksl/SkSLCompiler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sksl/SkSLCompiler.h
diff --git a/src/sksl/SkSLCompiler.h b/src/sksl/SkSLCompiler.h
index e63d5f4ed843bec6690e7c92974ce3f271398605..9cd1eac3f94f75520d789a63ece3b8e8d9ea4330 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, std::string text, std::string* out);
+ bool toSPIRV(Program::Kind kind, const std::string& text, std::ostream& 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);
+
+ bool toGLSL(Program::Kind kind, const std::string& text, GLCaps caps, std::string* out);
void error(Position position, std::string msg) override;
@@ -45,7 +50,7 @@ public:
private:
void internalConvertProgram(std::string text,
- std::vector<std::unique_ptr<ProgramElement>>* result);
+ std::vector<std::unique_ptr<ProgramElement>>* result);
std::shared_ptr<SymbolTable> fTypes;
IRGenerator* fIRGenerator;
« no previous file with comments | « src/sksl/SkSLCodeGenerator.h ('k') | src/sksl/SkSLCompiler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698