diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-03-31 09:33:41 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-31 15:25:32 +0000 |
commit | f3333c89bf05fc602d9bf8e1e24547668c660383 (patch) | |
tree | 3c0855ef8829201299ce757ecaf28bfda50a2683 /src/sksl/SkSLGLSLCodeGenerator.h | |
parent | 66b09abdb184d843ece45a1d343fbe632075b323 (diff) |
skslc can now be compiled with no Skia dependencies, in preparation for its eventual
role in Skia's build process.
This reverts commit bcf35f86d50b784b165de703b404998dd4299f6a.
BUG=skia:
Change-Id: Id0a12dfc4d804d69a3c6bf60fed37e89ee130f02
Reviewed-on: https://skia-review.googlesource.com/10802
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.h | 13 |
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; |