| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrCoverageSetOpXP_DEFINED | 8 #ifndef GrCoverageSetOpXP_DEFINED |
| 9 #define GrCoverageSetOpXP_DEFINED | 9 #define GrCoverageSetOpXP_DEFINED |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 GrXPFactory::InvariantBlendedColor*) const ove
rride; | 27 GrXPFactory::InvariantBlendedColor*) const ove
rride; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 GrCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage); | 30 GrCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage); |
| 31 | 31 |
| 32 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, | 32 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, |
| 33 const GrPipelineOptimizations& optimi
zations, | 33 const GrPipelineOptimizations& optimi
zations, |
| 34 bool hasMixedSamples, | 34 bool hasMixedSamples, |
| 35 const DstTexture*) const override; | 35 const DstTexture*) const override; |
| 36 | 36 |
| 37 bool onWillReadDstColor(const GrCaps& /*caps*/, | 37 bool onWillReadDstColor(const GrCaps&, const GrPipelineOptimizations&) const
override { |
| 38 const GrPipelineOptimizations& /*optimizations*/, | |
| 39 bool /*hasMixedSamples*/) const override { | |
| 40 return false; | 38 return false; |
| 41 } | 39 } |
| 42 | 40 |
| 43 bool onIsEqual(const GrXPFactory& xpfBase) const override { | 41 bool onIsEqual(const GrXPFactory& xpfBase) const override { |
| 44 const GrCoverageSetOpXPFactory& xpf = xpfBase.cast<GrCoverageSetOpXPFact
ory>(); | 42 const GrCoverageSetOpXPFactory& xpf = xpfBase.cast<GrCoverageSetOpXPFact
ory>(); |
| 45 return fRegionOp == xpf.fRegionOp; | 43 return fRegionOp == xpf.fRegionOp; |
| 46 } | 44 } |
| 47 | 45 |
| 48 GR_DECLARE_XP_FACTORY_TEST; | 46 GR_DECLARE_XP_FACTORY_TEST; |
| 49 | 47 |
| 50 SkRegion::Op fRegionOp; | 48 SkRegion::Op fRegionOp; |
| 51 bool fInvertCoverage; | 49 bool fInvertCoverage; |
| 52 | 50 |
| 53 typedef GrXPFactory INHERITED; | 51 typedef GrXPFactory INHERITED; |
| 54 }; | 52 }; |
| 55 #endif | 53 #endif |
| 56 | 54 |
| OLD | NEW |