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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 } | 170 } |
171 | 171 |
172 const GrXPFactory* getXPFactory() const { | 172 const GrXPFactory* getXPFactory() const { |
173 if (!fXPFactory) { | 173 if (!fXPFactory) { |
174 fXPFactory.reset(GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode
)); | 174 fXPFactory.reset(GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode
)); |
175 } | 175 } |
176 return fXPFactory.get(); | 176 return fXPFactory.get(); |
177 } | 177 } |
178 | 178 |
179 /** | 179 /** |
180 * Checks whether the xp will need a copy of the destination to correctly bl
end. | 180 * Checks whether the xp will need destination in a texture to correctly ble
nd. |
181 */ | 181 */ |
182 bool willXPNeedDstCopy(const GrDrawTargetCaps& caps, const GrProcOptInfo& co
lorPOI, | 182 bool willXPNeedDstTexture(const GrDrawTargetCaps& caps, const GrProcOptInfo&
colorPOI, |
183 const GrProcOptInfo& coveragePOI) const; | 183 const GrProcOptInfo& coveragePOI) const; |
184 | 184 |
185 /// @} | 185 /// @} |
186 | 186 |
187 | 187 |
188 /////////////////////////////////////////////////////////////////////////// | 188 /////////////////////////////////////////////////////////////////////////// |
189 /// @name Render Target | 189 /// @name Render Target |
190 //// | 190 //// |
191 | 191 |
192 /** | 192 /** |
193 * Retrieves the currently set render-target. | 193 * Retrieves the currently set render-target. |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 mutable GrProcOptInfo fCoverageProcInfo; | 434 mutable GrProcOptInfo fCoverageProcInfo; |
435 mutable bool fColorProcInfoValid; | 435 mutable bool fColorProcInfoValid; |
436 mutable bool fCoverageProcInfoValid; | 436 mutable bool fCoverageProcInfoValid; |
437 mutable GrColor fColorCache; | 437 mutable GrColor fColorCache; |
438 mutable GrColor fCoverageCache; | 438 mutable GrColor fCoverageCache; |
439 | 439 |
440 friend class GrPipeline; | 440 friend class GrPipeline; |
441 }; | 441 }; |
442 | 442 |
443 #endif | 443 #endif |
OLD | NEW |