Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: src/gpu/GrPipelineBuilder.h

Issue 1127693002: Remove canTweakAlphaForCoverage from XP's since batch reads flag. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/effects/SkArithmeticMode_gpu.h ('k') | src/gpu/GrPipelineBuilder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/effects/SkArithmeticMode_gpu.h ('k') | src/gpu/GrPipelineBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698