diff options
Diffstat (limited to 'src/gpu/ccpr/GrCCDrawPathsOp.cpp')
-rw-r--r-- | src/gpu/ccpr/GrCCDrawPathsOp.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gpu/ccpr/GrCCDrawPathsOp.cpp b/src/gpu/ccpr/GrCCDrawPathsOp.cpp index 80304857d0..96c1134536 100644 --- a/src/gpu/ccpr/GrCCDrawPathsOp.cpp +++ b/src/gpu/ccpr/GrCCDrawPathsOp.cpp @@ -81,10 +81,11 @@ bool GrCCDrawPathsOp::onCombineIfPossible(GrOp* op, const GrCaps& caps) { return true; } -void GrCCDrawPathsOp::wasRecorded(GrRenderTargetOpList* opList) { +void GrCCDrawPathsOp::wasRecorded(GrCCRTPendingPaths* owningRTPendingPaths) { + SkASSERT(1 == fNumDraws); SkASSERT(!fOwningRTPendingPaths); - fOwningRTPendingPaths = fCCPR->lookupRTPendingPaths(opList); - fOwningRTPendingPaths->fDrawOps.addToTail(this); + owningRTPendingPaths->fDrawOps.addToTail(this); + fOwningRTPendingPaths = owningRTPendingPaths; } int GrCCDrawPathsOp::countPaths(GrCCPathParser::PathStats* stats) const { @@ -134,6 +135,8 @@ void GrCCDrawPathsOp::setupResources(GrCCPerFlushResources* resources, } void GrCCDrawPathsOp::onExecute(GrOpFlushState* flushState) { + SkASSERT(fOwningRTPendingPaths); + const GrCCPerFlushResources* resources = fCCPR->getPerFlushResources(); if (!resources) { return; // Setup failed. |