aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrOpList.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-06-14 17:55:12 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-14 17:55:18 +0000
commitc8ecb0328b69f08b4fb231469d1545d935d44567 (patch)
tree331dbf6f78d2ae4dcdfc729dc9894ee1dcd92a0e /src/gpu/GrOpList.cpp
parente225b565fcdebcc5d642bd026f57c4514438d4e6 (diff)
Revert "Drop the ref on the GrOpList's target in makeClosed"
This reverts commit dcd499caed823f23bc70c07df7804a6dc1306606. Reason for revert: memory issue Original change's description: > Drop the ref on the GrOpList's target in makeClosed > > Bug: 729233 > Change-Id: Ifb66b745e604d7f7c22c2907bcffa91d2086236d > Reviewed-on: https://skia-review.googlesource.com/19495 > Commit-Queue: Robert Phillips <robertphillips@google.com> > Reviewed-by: Brian Salomon <bsalomon@google.com> TBR=bsalomon@google.com,robertphillips@google.com Change-Id: I4269c696c57a93cdd056e7c3a887c35b8765ac6d No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 729233 Reviewed-on: https://skia-review.googlesource.com/19793 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrOpList.cpp')
-rw-r--r--src/gpu/GrOpList.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrOpList.cpp b/src/gpu/GrOpList.cpp
index 14f2baadf7..5160be16c2 100644
--- a/src/gpu/GrOpList.cpp
+++ b/src/gpu/GrOpList.cpp
@@ -45,6 +45,8 @@ GrOpList::~GrOpList() {
if (this == fTarget.get()->getLastOpList()) {
fTarget.get()->setLastOpList(nullptr);
}
+
+ fTarget.pendingIOComplete();
}
}
@@ -57,6 +59,7 @@ void GrOpList::reset() {
fTarget.get()->setLastOpList(nullptr);
}
+ fTarget.pendingIOComplete();
fTarget.reset();
fAuditTrail = nullptr;
}