Index: src/gpu/GrPipelineBuilder.h |
diff --git a/src/gpu/GrPipelineBuilder.h b/src/gpu/GrPipelineBuilder.h |
index 5743c39dc59c2c3609d435b24f517d4a06b00fa7..8f0657f159f8f13010a15fa1ccc49c5d76209e13 100644 |
--- a/src/gpu/GrPipelineBuilder.h |
+++ b/src/gpu/GrPipelineBuilder.h |
@@ -104,7 +104,8 @@ public: |
/** |
* Checks whether the xp will need a copy of the destination to correctly blend. |
*/ |
- bool willXPNeedDstCopy(const GrDrawTargetCaps& caps) const; |
+ bool willXPNeedDstCopy(const GrDrawTargetCaps& caps, const GrProcOptInfo& colorPOI, |
+ const GrProcOptInfo& coveragePOI) const; |
/** |
* The xfer processor factory. |
@@ -389,15 +390,6 @@ public: |
GrPipelineBuilder& operator= (const GrPipelineBuilder& that); |
-private: |
- // Calculating invariant color / coverage information is expensive, so we partially cache the |
- // results. |
- // |
- // canUseFracCoveragePrimProc() - Called in regular skia draw, caches results but only for a |
- // specific color and coverage. May be called multiple times |
- // willBlendWithDst() - only called by Nvpr, does not cache results |
- // GrOptDrawState constructor - never caches results |
- |
// TODO delete when we have Batch |
const GrProcOptInfo& colorProcInfo(const GrPrimitiveProcessor* pp) const { |
this->calcColorInvariantOutput(pp); |
@@ -418,6 +410,14 @@ private: |
this->calcCoverageInvariantOutput(batch); |
return fCoverageProcInfo; |
} |
+private: |
+ // Calculating invariant color / coverage information is expensive, so we partially cache the |
+ // results. |
+ // |
+ // canUseFracCoveragePrimProc() - Called in regular skia draw, caches results but only for a |
+ // specific color and coverage. May be called multiple times |
+ // willBlendWithDst() - only called by Nvpr, does not cache results |
+ // GrOptDrawState constructor - never caches results |
/** |
* Primproc variants of the calc functions |