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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 uint8_t fSurfaceOriginKey; | 74 uint8_t fSurfaceOriginKey; |
75 // Set to uniquely identify the sample pattern, or 0 if the shader doesn
't use sample | 75 // Set to uniquely identify the sample pattern, or 0 if the shader doesn
't use sample |
76 // locations. | 76 // locations. |
77 uint8_t fSamplePatternKey; | 77 uint8_t fSamplePatternKey; |
78 // Set to uniquely idenitify any swizzling of the shader's output color(
s). | 78 // Set to uniquely idenitify any swizzling of the shader's output color(
s). |
79 uint8_t fOutputSwizzle; | 79 uint8_t fOutputSwizzle; |
80 uint8_t fSnapVerticesToPixelCenters; | 80 uint8_t fSnapVerticesToPixelCenters; |
81 int8_t fColorEffectCnt; | 81 int8_t fColorEffectCnt; |
82 int8_t fCoverageEffectCnt; | 82 int8_t fCoverageEffectCnt; |
83 uint8_t fIgnoresCoverage; | 83 uint8_t fIgnoresCoverage; |
| 84 uint8_t fUsesDistanceVectorField; |
84 }; | 85 }; |
85 | 86 |
86 int numColorEffects() const { | 87 int numColorEffects() const { |
87 return this->header().fColorEffectCnt; | 88 return this->header().fColorEffectCnt; |
88 } | 89 } |
89 | 90 |
90 int numCoverageEffects() const { | 91 int numCoverageEffects() const { |
91 return this->header().fCoverageEffectCnt; | 92 return this->header().fCoverageEffectCnt; |
92 } | 93 } |
93 | 94 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 }; | 139 }; |
139 | 140 |
140 SkSTArray<kPreAllocSize, uint8_t, true>& key() { return fKey; } | 141 SkSTArray<kPreAllocSize, uint8_t, true>& key() { return fKey; } |
141 const SkSTArray<kPreAllocSize, uint8_t, true>& key() const { return fKey; } | 142 const SkSTArray<kPreAllocSize, uint8_t, true>& key() const { return fKey; } |
142 | 143 |
143 private: | 144 private: |
144 SkSTArray<kPreAllocSize, uint8_t, true> fKey; | 145 SkSTArray<kPreAllocSize, uint8_t, true> fKey; |
145 }; | 146 }; |
146 | 147 |
147 #endif | 148 #endif |
OLD | NEW |