diff options
Diffstat (limited to 'src/sksl/SkSLGLSLCodeGenerator.h')
-rw-r--r-- | src/sksl/SkSLGLSLCodeGenerator.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/sksl/SkSLGLSLCodeGenerator.h b/src/sksl/SkSLGLSLCodeGenerator.h index ab88d50881..907c3053c6 100644 --- a/src/sksl/SkSLGLSLCodeGenerator.h +++ b/src/sksl/SkSLGLSLCodeGenerator.h @@ -12,6 +12,7 @@ #include <tuple> #include <unordered_map> +#include "SkStream.h" #include "SkSLCodeGenerator.h" #include "ir/SkSLBinaryExpression.h" #include "ir/SkSLBoolLiteral.h" @@ -72,7 +73,7 @@ public: }; GLSLCodeGenerator(const Context* context, const Program* program, ErrorReporter* errors, - OutputStream* out) + SkWStream* out) : INHERITED(program, errors, out) , fContext(*context) {} @@ -85,9 +86,9 @@ private: void writeLine(const char* s); - void write(const String& s); + void write(const SkString& s); - void writeLine(const String& s); + void writeLine(const SkString& s); void writeType(const Type& type); @@ -96,7 +97,7 @@ private: void writeInterfaceBlock(const InterfaceBlock& intf); void writeFunctionStart(const FunctionDeclaration& f); - + void writeFunctionDeclaration(const FunctionDeclaration& f); void writeFunction(const FunctionDefinition& f); @@ -160,8 +161,8 @@ private: void writeReturnStatement(const ReturnStatement& r); const Context& fContext; - StringStream fHeader; - String fFunctionHeader; + SkDynamicMemoryWStream fHeader; + SkString fFunctionHeader; Program::Kind fProgramKind; int fVarCount = 0; int fIndentation = 0; |