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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 }; | 87 }; |
88 | 88 |
89 struct KeyHeader { | 89 struct KeyHeader { |
90 uint8_t fDstReadKey; // set by GrGLShaderBuil
der if there | 90 uint8_t fDstReadKey; // set by GrGLShaderBuil
der if there |
91 // are effects that must
read the dst. | 91 // are effects that must
read the dst. |
92 // Otherwise, 0. | 92 // Otherwise, 0. |
93 uint8_t fFragPosKey; // set by GrGLShaderBuil
der if there are | 93 uint8_t fFragPosKey; // set by GrGLShaderBuil
der if there are |
94 // effects that read the
fragment position. | 94 // effects that read the
fragment position. |
95 // Otherwise, 0. | 95 // Otherwise, 0. |
96 | 96 |
97 SkBool8 fUseNvpr; | 97 SkBool8 fUseFragShaderOnly; |
98 SkBool8 fEmitsPointSize; | 98 SkBool8 fEmitsPointSize; |
99 | 99 |
100 ColorInput fColorInput : 8; | 100 ColorInput fColorInput : 8; |
101 ColorInput fCoverageInput : 8; | 101 ColorInput fCoverageInput : 8; |
102 | 102 |
103 GrOptDrawState::PrimaryOutputType fPrimaryOutputType : 8; | 103 GrOptDrawState::PrimaryOutputType fPrimaryOutputType : 8; |
104 GrOptDrawState::SecondaryOutputType fSecondaryOutputType : 8; | 104 GrOptDrawState::SecondaryOutputType fSecondaryOutputType : 8; |
105 | 105 |
106 int8_t fPositionAttributeIndex; | 106 int8_t fPositionAttributeIndex; |
107 int8_t fLocalCoordAttributeIndex; | 107 int8_t fLocalCoordAttributeIndex; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // visible to GrGLProcessors. Then make public accessors as necessary and re
move friends. | 206 // visible to GrGLProcessors. Then make public accessors as necessary and re
move friends. |
207 friend class GrGLProgram; | 207 friend class GrGLProgram; |
208 friend class GrGLProgramBuilder; | 208 friend class GrGLProgramBuilder; |
209 friend class GrGLLegacyNvprProgramBuilder; | 209 friend class GrGLLegacyNvprProgramBuilder; |
210 friend class GrGLVertexBuilder; | 210 friend class GrGLVertexBuilder; |
211 friend class GrGLFragmentShaderBuilder; | 211 friend class GrGLFragmentShaderBuilder; |
212 friend class GrGLGeometryBuilder; | 212 friend class GrGLGeometryBuilder; |
213 }; | 213 }; |
214 | 214 |
215 #endif | 215 #endif |
OLD | NEW |