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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // these emit functions help to keep the createAndEmitProcessors template ge
neral | 101 // these emit functions help to keep the createAndEmitProcessors template ge
neral |
102 void emitAndInstallProc(const GrFragmentProcessor&, | 102 void emitAndInstallProc(const GrFragmentProcessor&, |
103 int index, | 103 int index, |
104 const char* outColor, | 104 const char* outColor, |
105 const char* inColor); | 105 const char* inColor); |
106 void emitAndInstallProc(const GrPrimitiveProcessor&, | 106 void emitAndInstallProc(const GrPrimitiveProcessor&, |
107 const char* outColor, | 107 const char* outColor, |
108 const char* outCoverage); | 108 const char* outCoverage); |
109 void emitAndInstallXferProc(const GrXferProcessor&, | 109 void emitAndInstallXferProc(const GrXferProcessor&, |
110 const GrGLSLExpr4& colorIn, | 110 const GrGLSLExpr4& colorIn, |
111 const GrGLSLExpr4& coverageIn); | 111 const GrGLSLExpr4& coverageIn, |
| 112 bool ignoresCoverage); |
112 | 113 |
113 void verify(const GrPrimitiveProcessor&); | 114 void verify(const GrPrimitiveProcessor&); |
114 void verify(const GrXferProcessor&); | 115 void verify(const GrXferProcessor&); |
115 void verify(const GrFragmentProcessor&); | 116 void verify(const GrFragmentProcessor&); |
116 template <class Proc> | 117 template <class Proc> |
117 void emitSamplers(const GrProcessor&, | 118 void emitSamplers(const GrProcessor&, |
118 GrGLSLTextureSampler::TextureSamplerArray* outSamplers, | 119 GrGLSLTextureSampler::TextureSamplerArray* outSamplers, |
119 GrGLInstalledProc<Proc>*); | 120 GrGLInstalledProc<Proc>*); |
120 | 121 |
121 bool compileAndAttachShaders(GrGLSLShaderBuilder& shader, | 122 bool compileAndAttachShaders(GrGLSLShaderBuilder& shader, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; | 169 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; |
169 SkTArray<UniformHandle> fSamplerUniforms; | 170 SkTArray<UniformHandle> fSamplerUniforms; |
170 | 171 |
171 GrGLVaryingHandler fVaryingHandler; | 172 GrGLVaryingHandler fVaryingHandler; |
172 | 173 |
173 friend class GrGLVaryingHandler; | 174 friend class GrGLVaryingHandler; |
174 | 175 |
175 typedef GrGLSLProgramBuilder INHERITED; | 176 typedef GrGLSLProgramBuilder INHERITED; |
176 }; | 177 }; |
177 #endif | 178 #endif |
OLD | NEW |