diff options
Diffstat (limited to 'src/sksl/SkSLCompiler.h')
-rw-r--r-- | src/sksl/SkSLCompiler.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/sksl/SkSLCompiler.h b/src/sksl/SkSLCompiler.h index 7e3c83edff..ec02c5ac52 100644 --- a/src/sksl/SkSLCompiler.h +++ b/src/sksl/SkSLCompiler.h @@ -4,7 +4,7 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ - + #ifndef SKSL_COMPILER #define SKSL_COMPILER @@ -42,20 +42,20 @@ public: ~Compiler() override; - std::unique_ptr<Program> convertProgram(Program::Kind kind, String text, + std::unique_ptr<Program> convertProgram(Program::Kind kind, SkString text, const Program::Settings& settings); - bool toSPIRV(const Program& program, OutputStream& out); + bool toSPIRV(const Program& program, SkWStream& out); - bool toSPIRV(const Program& program, String* out); + bool toSPIRV(const Program& program, SkString* out); - bool toGLSL(const Program& program, OutputStream& out); + bool toGLSL(const Program& program, SkWStream& out); - bool toGLSL(const Program& program, String* out); + bool toGLSL(const Program& program, SkString* out); - void error(Position position, String msg) override; + void error(Position position, SkString msg) override; - String errorText(); + SkString errorText(); void writeErrorCount(); @@ -73,17 +73,17 @@ private: void scanCFG(const FunctionDefinition& f); - void internalConvertProgram(String text, + void internalConvertProgram(SkString text, Modifiers::Flag* defaultPrecision, std::vector<std::unique_ptr<ProgramElement>>* result); std::shared_ptr<SymbolTable> fTypes; IRGenerator* fIRGenerator; - String fSkiaVertText; // FIXME store parsed version instead + SkString fSkiaVertText; // FIXME store parsed version instead Context fContext; int fErrorCount; - String fErrorText; + SkString fErrorText; }; } // namespace |