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 b8cb34e84f..16d6192a71 100644
--- a/src/sksl/SkSLGLSLCodeGenerator.h
+++ b/src/sksl/SkSLGLSLCodeGenerator.h
@@ -12,7 +12,6 @@
#include <tuple>
#include <unordered_map>
-#include "SkStream.h"
#include "glsl/GrGLSLCaps.h"
#include "SkSLCodeGenerator.h"
#include "ir/SkSLBinaryExpression.h"
@@ -76,7 +75,7 @@ public:
: fContext(*context)
, fCaps(*caps) {}
- void generateCode(const Program& program, SkWStream& out) override;
+ void generateCode(const Program& program, std::ostream& out) override;
private:
void write(const char* s);
@@ -85,9 +84,9 @@ private:
void writeLine(const char* s);
- void write(const SkString& s);
+ void write(const std::string& s);
- void writeLine(const SkString& s);
+ void writeLine(const std::string& s);
void writeType(const Type& type);
@@ -157,9 +156,9 @@ private:
const Context& fContext;
const GrGLSLCaps& fCaps;
- SkWStream* fOut = nullptr;
- SkDynamicMemoryWStream fHeader;
- SkString fFunctionHeader;
+ std::ostream* fOut = nullptr;
+ std::stringstream fHeader;
+ std::string fFunctionHeader;
Program::Kind fProgramKind;
int fVarCount = 0;
int fIndentation = 0;