| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrGLSLProgramBuilder_DEFINED | 8 #ifndef GrGLSLProgramBuilder_DEFINED |
| 9 #define GrGLSLProgramBuilder_DEFINED | 9 #define GrGLSLProgramBuilder_DEFINED |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void emitAndInstallFragProcs(int procOffset, int numProcs, GrGLSLExpr4* inOu
t); | 139 void emitAndInstallFragProcs(int procOffset, int numProcs, GrGLSLExpr4* inOu
t); |
| 140 void emitAndInstallFragProc(const GrFragmentProcessor&, | 140 void emitAndInstallFragProc(const GrFragmentProcessor&, |
| 141 int index, | 141 int index, |
| 142 const GrGLSLExpr4& input, | 142 const GrGLSLExpr4& input, |
| 143 GrGLSLExpr4* output); | 143 GrGLSLExpr4* output); |
| 144 void emitAndInstallXferProc(const GrXferProcessor&, | 144 void emitAndInstallXferProc(const GrXferProcessor&, |
| 145 const GrGLSLExpr4& colorIn, | 145 const GrGLSLExpr4& colorIn, |
| 146 const GrGLSLExpr4& coverageIn, | 146 const GrGLSLExpr4& coverageIn, |
| 147 bool ignoresCoverage, | 147 bool ignoresCoverage, |
| 148 GrPixelLocalStorageState plsState); | 148 GrPixelLocalStorageState plsState); |
| 149 void emitSamplers(const GrProcessor& processor, GrGLSLSampler::SamplerArray*
outTexSamplers); | 149 void emitSamplers(const GrProcessor& processor, |
| 150 GrGLSLSampler::SamplerArray* outTexSamplers, |
| 151 GrGLSLSampler::SamplerArray* outBufferSamplers); |
| 152 void emitSampler(GrSLType samplerType, |
| 153 GrPixelConfig, |
| 154 const char* name, |
| 155 GrShaderFlags visibility, |
| 156 GrGLSLSampler::SamplerArray* outSamplers); |
| 150 void emitFSOutputSwizzle(bool hasSecondaryOutput); | 157 void emitFSOutputSwizzle(bool hasSecondaryOutput); |
| 151 bool checkSamplerCounts(); | 158 bool checkSamplerCounts(); |
| 152 | 159 |
| 153 #ifdef SK_DEBUG | 160 #ifdef SK_DEBUG |
| 154 void verify(const GrPrimitiveProcessor&); | 161 void verify(const GrPrimitiveProcessor&); |
| 155 void verify(const GrXferProcessor&); | 162 void verify(const GrXferProcessor&); |
| 156 void verify(const GrFragmentProcessor&); | 163 void verify(const GrFragmentProcessor&); |
| 157 #endif | 164 #endif |
| 158 | 165 |
| 159 GrGLSLPrimitiveProcessor::TransformsIn fCoordTransforms; | 166 GrGLSLPrimitiveProcessor::TransformsIn fCoordTransforms; |
| 160 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; | 167 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; |
| 161 int fNumVertexSamplers; | 168 int fNumVertexSamplers; |
| 162 int fNumGeometrySamplers; | 169 int fNumGeometrySamplers; |
| 163 int fNumFragmentSamplers; | 170 int fNumFragmentSamplers; |
| 164 }; | 171 }; |
| 165 | 172 |
| 166 #endif | 173 #endif |
| OLD | NEW |