aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ccpr/GrCCDrawPathsOp.cpp
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-05-22 16:17:48 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-23 13:27:41 +0000
commitf104fec6d745540019556823f849535fe8872653 (patch)
tree49a7fb44c37f7e8b333f259714d14a2f5eefa3e3 /src/gpu/ccpr/GrCCDrawPathsOp.cpp
parent3087c1f382f1cd547598dc75f47ccbc8fe1e6e0f (diff)
Delete GrDrawOp::wasRecorded
Bug: skia:7988 Change-Id: I8d12beec835767f22302a1e167fcef46ee5e5ffc Reviewed-on: https://skia-review.googlesource.com/129555 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/ccpr/GrCCDrawPathsOp.cpp')
-rw-r--r--src/gpu/ccpr/GrCCDrawPathsOp.cpp9
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.