| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef GrPaint_DEFINED | 10 #ifndef GrPaint_DEFINED |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 return false; | 207 return false; |
| 208 } else { | 208 } else { |
| 209 computed = true; | 209 computed = true; |
| 210 } | 210 } |
| 211 fCoverageStages[i].localCoordChange(oldToNew); | 211 fCoverageStages[i].localCoordChange(oldToNew); |
| 212 } | 212 } |
| 213 return true; | 213 return true; |
| 214 } | 214 } |
| 215 | 215 |
| 216 friend class GrContext; // To access above two functions | 216 friend class GrContext; // To access above two functions |
| 217 friend class GrStencilAndCoverTextContext; // To access above two functions |
| 217 | 218 |
| 218 SkSTArray<4, GrEffectStage> fColorStages; | 219 SkSTArray<4, GrEffectStage> fColorStages; |
| 219 SkSTArray<2, GrEffectStage> fCoverageStages; | 220 SkSTArray<2, GrEffectStage> fCoverageStages; |
| 220 | 221 |
| 221 GrBlendCoeff fSrcBlendCoeff; | 222 GrBlendCoeff fSrcBlendCoeff; |
| 222 GrBlendCoeff fDstBlendCoeff; | 223 GrBlendCoeff fDstBlendCoeff; |
| 223 bool fAntiAlias; | 224 bool fAntiAlias; |
| 224 bool fDither; | 225 bool fDither; |
| 225 | 226 |
| 226 GrColor fColor; | 227 GrColor fColor; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 244 fCoverage = 0xff; | 245 fCoverage = 0xff; |
| 245 } | 246 } |
| 246 | 247 |
| 247 void resetStages() { | 248 void resetStages() { |
| 248 fColorStages.reset(); | 249 fColorStages.reset(); |
| 249 fCoverageStages.reset(); | 250 fCoverageStages.reset(); |
| 250 } | 251 } |
| 251 }; | 252 }; |
| 252 | 253 |
| 253 #endif | 254 #endif |
| OLD | NEW |