aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/SkSLGLSLCodeGenerator.h
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-03-30 13:45:54 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-30 18:28:47 +0000
commit7833466da45bfa1e078427c4a6db94d41c5c1535 (patch)
treed3bb49ba327f0bc3cb5cafe52d992702828031b2 /src/sksl/SkSLGLSLCodeGenerator.h
parentcdc651d29d88e87ef84d5a586879db2c16ff4579 (diff)
skslc can now be compiled with no Skia dependencies, in preparation for
its eventual role in Skia's build process. Bug: skia: Change-Id: Iaa9933f4fc4a64bec60aa897c509a3513f457a78 Reviewed-on: https://skia-review.googlesource.com/10282 Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Ben Wagner <benjaminwagner@google.com>
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;