OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrPipelineBuilder_DEFINED | 8 #ifndef GrPipelineBuilder_DEFINED |
9 #define GrPipelineBuilder_DEFINED | 9 #define GrPipelineBuilder_DEFINED |
10 | 10 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 int fCoverageEffectCnt; | 132 int fCoverageEffectCnt; |
133 }; | 133 }; |
134 | 134 |
135 /// @} | 135 /// @} |
136 | 136 |
137 /////////////////////////////////////////////////////////////////////////// | 137 /////////////////////////////////////////////////////////////////////////// |
138 /// @name Blending | 138 /// @name Blending |
139 //// | 139 //// |
140 | 140 |
141 /** | 141 /** |
142 * Determines whether multiplying the computed per-pixel color by the pixel'
s fractional | |
143 * coverage before the blend will give the correct final destination color.
In general it | |
144 * will not as coverage is applied after blending. | |
145 */ | |
146 bool canTweakAlphaForCoverage() const; | |
147 | |
148 /** | |
149 * This function returns true if the render target destination pixel values
will be read for | 142 * This function returns true if the render target destination pixel values
will be read for |
150 * blending during draw. | 143 * blending during draw. |
151 */ | 144 */ |
152 bool willBlendWithDst(const GrPrimitiveProcessor*) const; | 145 bool willBlendWithDst(const GrPrimitiveProcessor*) const; |
153 | 146 |
154 /** | 147 /** |
155 * Installs a GrXPFactory. This object controls how src color, fractional pi
xel coverage, | 148 * Installs a GrXPFactory. This object controls how src color, fractional pi
xel coverage, |
156 * and the dst color are blended. | 149 * and the dst color are blended. |
157 */ | 150 */ |
158 const GrXPFactory* setXPFactory(const GrXPFactory* xpFactory) { | 151 const GrXPFactory* setXPFactory(const GrXPFactory* xpFactory) { |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 mutable GrProcOptInfo fCoverageProcInfo; | 434 mutable GrProcOptInfo fCoverageProcInfo; |
442 mutable bool fColorProcInfoValid; | 435 mutable bool fColorProcInfoValid; |
443 mutable bool fCoverageProcInfoValid; | 436 mutable bool fCoverageProcInfoValid; |
444 mutable GrColor fColorCache; | 437 mutable GrColor fColorCache; |
445 mutable GrColor fCoverageCache; | 438 mutable GrColor fCoverageCache; |
446 | 439 |
447 friend class GrPipeline; | 440 friend class GrPipeline; |
448 }; | 441 }; |
449 | 442 |
450 #endif | 443 #endif |
OLD | NEW |