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 GrProgramDesc_DEFINED | 8 #ifndef GrProgramDesc_DEFINED |
9 #define GrProgramDesc_DEFINED | 9 #define GrProgramDesc_DEFINED |
10 | 10 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 }; | 96 }; |
97 | 97 |
98 struct KeyHeader { | 98 struct KeyHeader { |
99 uint8_t fDstReadKey; // set by GrGLShaderBuilder i
f there | 99 uint8_t fDstReadKey; // set by GrGLShaderBuilder i
f there |
100 // are effects that must read
the dst. | 100 // are effects that must read
the dst. |
101 // Otherwise, 0. | 101 // Otherwise, 0. |
102 uint8_t fFragPosKey; // set by GrGLShaderBuilder i
f there are | 102 uint8_t fFragPosKey; // set by GrGLShaderBuilder i
f there are |
103 // effects that read the frag
ment position. | 103 // effects that read the frag
ment position. |
104 // Otherwise, 0. | 104 // Otherwise, 0. |
105 | 105 |
| 106 SkBool8 fEmitsPointSize; |
| 107 |
106 ColorInput fColorInput : 8; | 108 ColorInput fColorInput : 8; |
107 ColorInput fCoverageInput : 8; | 109 ColorInput fCoverageInput : 8; |
108 | 110 |
109 PrimaryOutputType fPrimaryOutputType : 8; | 111 PrimaryOutputType fPrimaryOutputType : 8; |
110 SecondaryOutputType fSecondaryOutputType : 8; | 112 SecondaryOutputType fSecondaryOutputType : 8; |
111 | 113 |
112 SkBool8 fHasGeometryProcessor; | 114 SkBool8 fHasGeometryProcessor; |
113 int8_t fColorEffectCnt; | 115 int8_t fColorEffectCnt; |
114 int8_t fCoverageEffectCnt; | 116 int8_t fCoverageEffectCnt; |
115 }; | 117 }; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 kPreAllocSize = kHeaderOffset + kHeaderSize + | 197 kPreAllocSize = kHeaderOffset + kHeaderSize + |
196 kMaxPreallocProcessors * sizeof(uint32_t) * kIntsPerProc
essor, | 198 kMaxPreallocProcessors * sizeof(uint32_t) * kIntsPerProc
essor, |
197 }; | 199 }; |
198 | 200 |
199 SkSTArray<kPreAllocSize, uint8_t, true> fKey; | 201 SkSTArray<kPreAllocSize, uint8_t, true> fKey; |
200 | 202 |
201 friend class GrGLProgramDescBuilder; | 203 friend class GrGLProgramDescBuilder; |
202 }; | 204 }; |
203 | 205 |
204 #endif | 206 #endif |
OLD | NEW |