Chromium Code Reviews| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 int index, | 75 int index, |
| 76 const GrGLSLExpr4& input, | 76 const GrGLSLExpr4& input, |
| 77 GrGLSLExpr4* output); | 77 GrGLSLExpr4* output); |
| 78 | 78 |
| 79 void emitAndInstallProc(const GrPrimitiveProcessor&, | 79 void emitAndInstallProc(const GrPrimitiveProcessor&, |
| 80 GrGLSLExpr4* outputColor, | 80 GrGLSLExpr4* outputColor, |
| 81 GrGLSLExpr4* outputCoverage); | 81 GrGLSLExpr4* outputCoverage); |
| 82 | 82 |
| 83 // these emit functions help to keep the createAndEmitProcessors template ge neral | 83 // these emit functions help to keep the createAndEmitProcessors template ge neral |
| 84 void emitAndInstallProc(const GrFragmentProcessor&, | 84 void emitAndInstallProc(const GrFragmentProcessor&, |
| 85 int index, | 85 int index, |
|
egdaniel
2016/01/13 21:47:19
just heads up, these emit functions have been move
| |
| 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 virtual void emitAndInstallXferProc(const GrXferProcessor&, |
|
egdaniel
2016/01/13 21:47:19
why was this made virtual?
ethannicholas
2016/01/20 17:51:05
Had needed it at one point, failed to remove the v
| |
| 92 const GrGLSLExpr4& colorIn, | 92 const GrGLSLExpr4& colorIn, |
| 93 const GrGLSLExpr4& coverageIn, | 93 const GrGLSLExpr4& coverageIn, |
| 94 bool ignoresCoverage); | 94 bool ignoresCoverage, |
| 95 GrPixelLocalStorageState plsState); | |
| 95 void emitFSOutputSwizzle(bool hasSecondaryOutput); | 96 void emitFSOutputSwizzle(bool hasSecondaryOutput); |
| 96 | 97 |
| 97 void verify(const GrPrimitiveProcessor&); | 98 void verify(const GrPrimitiveProcessor&); |
| 98 void verify(const GrXferProcessor&); | 99 void verify(const GrXferProcessor&); |
| 99 void verify(const GrFragmentProcessor&); | 100 void verify(const GrFragmentProcessor&); |
| 100 template <class Proc> | 101 template <class Proc> |
| 101 void emitSamplers(const GrProcessor&, | 102 void emitSamplers(const GrProcessor&, |
| 102 GrGLSLTextureSampler::TextureSamplerArray* outSamplers, | 103 GrGLSLTextureSampler::TextureSamplerArray* outSamplers, |
| 103 GrGLInstalledProc<Proc>*); | 104 GrGLInstalledProc<Proc>*); |
| 104 | 105 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; | 152 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; |
| 152 typedef GrGLSLUniformHandler::UniformHandle UniformHandle; | 153 typedef GrGLSLUniformHandler::UniformHandle UniformHandle; |
| 153 SkTArray<UniformHandle> fSamplerUniforms; | 154 SkTArray<UniformHandle> fSamplerUniforms; |
| 154 | 155 |
| 155 GrGLVaryingHandler fVaryingHandler; | 156 GrGLVaryingHandler fVaryingHandler; |
| 156 GrGLUniformHandler fUniformHandler; | 157 GrGLUniformHandler fUniformHandler; |
| 157 | 158 |
| 158 typedef GrGLSLProgramBuilder INHERITED; | 159 typedef GrGLSLProgramBuilder INHERITED; |
| 159 }; | 160 }; |
| 160 #endif | 161 #endif |
| OLD | NEW |