aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/SkSLCompiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sksl/SkSLCompiler.h')
-rw-r--r--src/sksl/SkSLCompiler.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/sksl/SkSLCompiler.h b/src/sksl/SkSLCompiler.h
index e69db5997d..e1bc052fef 100644
--- a/src/sksl/SkSLCompiler.h
+++ b/src/sksl/SkSLCompiler.h
@@ -37,21 +37,21 @@ public:
~Compiler();
- std::unique_ptr<Program> convertProgram(Program::Kind kind, std::string text);
+ std::unique_ptr<Program> convertProgram(Program::Kind kind, SkString text);
- bool toSPIRV(Program::Kind kind, const std::string& text, std::ostream& out);
+ bool toSPIRV(Program::Kind kind, const SkString& text, SkWStream& out);
- bool toSPIRV(Program::Kind kind, const std::string& text, std::string* out);
+ bool toSPIRV(Program::Kind kind, const SkString& text, SkString* out);
- bool toGLSL(Program::Kind kind, const std::string& text, const GrGLSLCaps& caps,
- std::ostream& out);
+ bool toGLSL(Program::Kind kind, const SkString& text, const GrGLSLCaps& caps,
+ SkWStream& out);
- bool toGLSL(Program::Kind kind, const std::string& text, const GrGLSLCaps& caps,
- std::string* out);
+ bool toGLSL(Program::Kind kind, const SkString& text, const GrGLSLCaps& caps,
+ SkString* out);
- void error(Position position, std::string msg) override;
+ void error(Position position, SkString msg) override;
- std::string errorText();
+ SkString errorText();
void writeErrorCount();
@@ -66,17 +66,17 @@ private:
void scanCFG(const FunctionDefinition& f);
- void internalConvertProgram(std::string text,
+ void internalConvertProgram(SkString text,
Modifiers::Flag* defaultPrecision,
std::vector<std::unique_ptr<ProgramElement>>* result);
std::shared_ptr<SymbolTable> fTypes;
IRGenerator* fIRGenerator;
- std::string fSkiaVertText; // FIXME store parsed version instead
+ SkString fSkiaVertText; // FIXME store parsed version instead
Context fContext;
int fErrorCount;
- std::string fErrorText;
+ SkString fErrorText;
};
} // namespace