| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 //// | 139 //// |
| 140 | 140 |
| 141 /** | 141 /** |
| 142 * Determines whether multiplying the computed per-pixel color by the pixel'
s fractional | 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 | 143 * coverage before the blend will give the correct final destination color.
In general it |
| 144 * will not as coverage is applied after blending. | 144 * will not as coverage is applied after blending. |
| 145 */ | 145 */ |
| 146 bool canTweakAlphaForCoverage() const; | 146 bool canTweakAlphaForCoverage() const; |
| 147 | 147 |
| 148 /** | 148 /** |
| 149 * Returns whether blending will be done coherently with draw calls that hav
e been submitted |
| 150 * previously. This is generally true, however some blending extensions requ
ire the use of a |
| 151 * barrier. |
| 152 */ |
| 153 bool willBlendCoherently(const GrDrawTargetCaps& caps) const; |
| 154 |
| 155 /** |
| 149 * This function returns true if the render target destination pixel values
will be read for | 156 * This function returns true if the render target destination pixel values
will be read for |
| 150 * blending during draw. | 157 * blending during draw. |
| 151 */ | 158 */ |
| 152 bool willBlendWithDst(const GrPrimitiveProcessor*) const; | 159 bool willBlendWithDst(const GrPrimitiveProcessor*) const; |
| 153 | 160 |
| 154 /** | 161 /** |
| 155 * Installs a GrXPFactory. This object controls how src color, fractional pi
xel coverage, | 162 * Installs a GrXPFactory. This object controls how src color, fractional pi
xel coverage, |
| 156 * and the dst color are blended. | 163 * and the dst color are blended. |
| 157 */ | 164 */ |
| 158 const GrXPFactory* setXPFactory(const GrXPFactory* xpFactory) { | 165 const GrXPFactory* setXPFactory(const GrXPFactory* xpFactory) { |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 mutable GrProcOptInfo fCoverageProcInfo; | 441 mutable GrProcOptInfo fCoverageProcInfo; |
| 435 mutable bool fColorProcInfoValid; | 442 mutable bool fColorProcInfoValid; |
| 436 mutable bool fCoverageProcInfoValid; | 443 mutable bool fCoverageProcInfoValid; |
| 437 mutable GrColor fColorCache; | 444 mutable GrColor fColorCache; |
| 438 mutable GrColor fCoverageCache; | 445 mutable GrColor fCoverageCache; |
| 439 | 446 |
| 440 friend class GrPipeline; | 447 friend class GrPipeline; |
| 441 }; | 448 }; |
| 442 | 449 |
| 443 #endif | 450 #endif |
| OLD | NEW |