diff options
Diffstat (limited to 'src/sksl/SkSLGLSLCodeGenerator.h')
-rw-r--r-- | src/sksl/SkSLGLSLCodeGenerator.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sksl/SkSLGLSLCodeGenerator.h b/src/sksl/SkSLGLSLCodeGenerator.h index 362ae7ca18..e19444d74d 100644 --- a/src/sksl/SkSLGLSLCodeGenerator.h +++ b/src/sksl/SkSLGLSLCodeGenerator.h @@ -102,7 +102,9 @@ protected: void writeType(const Type& type); - void writeExtension(const Extension& ext); + void writeExtension(const String& name); + + void writeExtension(const String& name, bool require); void writeInterfaceBlock(const InterfaceBlock& intf); @@ -194,7 +196,8 @@ protected: const char* fLineEnding; const Context& fContext; - StringStream fHeader; + StringStream fExtensions; + StringStream fGlobals; StringStream fExtraFunctions; String fFunctionHeader; Program::Kind fProgramKind; |