| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 GrGLProgramDesc_DEFINED | 8 #ifndef GrGLProgramDesc_DEFINED |
| 9 #define GrGLProgramDesc_DEFINED | 9 #define GrGLProgramDesc_DEFINED |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 GrGLShaderBuilder::DstReadKey fDstReadKey; // set by GrGLShaderBuil
der if there | 147 GrGLShaderBuilder::DstReadKey fDstReadKey; // set by GrGLShaderBuil
der if there |
| 148 // are effects that must
read the dst. | 148 // are effects that must
read the dst. |
| 149 // Otherwise, 0. | 149 // Otherwise, 0. |
| 150 GrGLShaderBuilder::FragPosKey fFragPosKey; // set by GrGLShaderBuil
der if there are | 150 GrGLShaderBuilder::FragPosKey fFragPosKey; // set by GrGLShaderBuil
der if there are |
| 151 // effects that read the
fragment position. | 151 // effects that read the
fragment position. |
| 152 // Otherwise, 0. | 152 // Otherwise, 0. |
| 153 | 153 |
| 154 // should the FS discard if the coverage is zero (to avoid stencil manip
ulation) | 154 // should the FS discard if the coverage is zero (to avoid stencil manip
ulation) |
| 155 SkBool8 fDiscardIfZeroCoverage; | 155 SkBool8 fDiscardIfZeroCoverage; |
| 156 | 156 |
| 157 uint8_t fColorInput; // casts to enum Col
orInput | 157 ColorInput fColorInput : 8; |
| 158 uint8_t fCoverageInput; // casts to enum Col
orInput | 158 ColorInput fCoverageInput : 8; |
| 159 uint8_t fCoverageOutput; // casts to enum Cov
erageOutput | 159 CoverageOutput fCoverageOutput : 8; |
| 160 | 160 |
| 161 SkBool8 fHasVertexCode; | 161 SkBool8 fHasVertexCode; |
| 162 SkBool8 fEmitsPointSize; | 162 SkBool8 fEmitsPointSize; |
| 163 uint8_t fColorFilterXfermode; // casts to enum SkX
fermode::Mode | 163 SkXfermode::Mode fColorFilterXfermode : 8; |
| 164 | 164 |
| 165 // To enable experimental geometry shader code (not for use in | 165 // To enable experimental geometry shader code (not for use in |
| 166 // production) | 166 // production) |
| 167 #if GR_GL_EXPERIMENTAL_GS | 167 #if GR_GL_EXPERIMENTAL_GS |
| 168 SkBool8 fExperimentalGS; | 168 SkBool8 fExperimentalGS; |
| 169 #endif | 169 #endif |
| 170 | 170 |
| 171 int8_t fPositionAttributeIndex; | 171 int8_t fPositionAttributeIndex; |
| 172 int8_t fLocalCoordAttributeIndex; | 172 int8_t fLocalCoordAttributeIndex; |
| 173 int8_t fColorAttributeIndex; | 173 int8_t fColorAttributeIndex; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 SkAutoSMalloc<kPreAllocSize> fKey; | 217 SkAutoSMalloc<kPreAllocSize> fKey; |
| 218 bool fInitialized; | 218 bool fInitialized; |
| 219 | 219 |
| 220 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod
e. TODO: Move all | 220 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod
e. TODO: Move all |
| 221 // code generation to GrGLShaderBuilder (and maybe add getters rather than f
riending). | 221 // code generation to GrGLShaderBuilder (and maybe add getters rather than f
riending). |
| 222 friend class GrGLProgram; | 222 friend class GrGLProgram; |
| 223 friend class GrGLShaderBuilder; | 223 friend class GrGLShaderBuilder; |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 #endif | 226 #endif |
| OLD | NEW |