OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrGLProgramBuilder_DEFINED | 8 #ifndef GrGLProgramBuilder_DEFINED |
9 #define GrGLProgramBuilder_DEFINED | 9 #define GrGLProgramBuilder_DEFINED |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 int index, | 85 int index, |
86 const char* outColor, | 86 const char* outColor, |
87 const char* inColor); | 87 const char* inColor); |
88 void emitAndInstallProc(const GrPrimitiveProcessor&, | 88 void emitAndInstallProc(const GrPrimitiveProcessor&, |
89 const char* outColor, | 89 const char* outColor, |
90 const char* outCoverage); | 90 const char* outCoverage); |
91 void emitAndInstallXferProc(const GrXferProcessor&, | 91 void emitAndInstallXferProc(const GrXferProcessor&, |
92 const GrGLSLExpr4& colorIn, | 92 const GrGLSLExpr4& colorIn, |
93 const GrGLSLExpr4& coverageIn, | 93 const GrGLSLExpr4& coverageIn, |
94 bool ignoresCoverage); | 94 bool ignoresCoverage); |
| 95 void emitFSOutputSwizzle(bool hasSecondaryOutput); |
95 | 96 |
96 void verify(const GrPrimitiveProcessor&); | 97 void verify(const GrPrimitiveProcessor&); |
97 void verify(const GrXferProcessor&); | 98 void verify(const GrXferProcessor&); |
98 void verify(const GrFragmentProcessor&); | 99 void verify(const GrFragmentProcessor&); |
99 template <class Proc> | 100 template <class Proc> |
100 void emitSamplers(const GrProcessor&, | 101 void emitSamplers(const GrProcessor&, |
101 GrGLSLTextureSampler::TextureSamplerArray* outSamplers, | 102 GrGLSLTextureSampler::TextureSamplerArray* outSamplers, |
102 GrGLInstalledProc<Proc>*); | 103 GrGLInstalledProc<Proc>*); |
103 | 104 |
104 bool compileAndAttachShaders(GrGLSLShaderBuilder& shader, | 105 bool compileAndAttachShaders(GrGLSLShaderBuilder& shader, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; | 151 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; |
151 typedef GrGLSLUniformHandler::UniformHandle UniformHandle; | 152 typedef GrGLSLUniformHandler::UniformHandle UniformHandle; |
152 SkTArray<UniformHandle> fSamplerUniforms; | 153 SkTArray<UniformHandle> fSamplerUniforms; |
153 | 154 |
154 GrGLVaryingHandler fVaryingHandler; | 155 GrGLVaryingHandler fVaryingHandler; |
155 GrGLUniformHandler fUniformHandler; | 156 GrGLUniformHandler fUniformHandler; |
156 | 157 |
157 typedef GrGLSLProgramBuilder INHERITED; | 158 typedef GrGLSLProgramBuilder INHERITED; |
158 }; | 159 }; |
159 #endif | 160 #endif |
OLD | NEW |