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