aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrOpList.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-06-14 15:16:59 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-14 20:11:51 +0000
commitd99148623b1daecc54eca1e2df607a49f86c6fae (patch)
treee8bbbf01f624b24e5ea6c876715145cd6f5ec0aa /src/gpu/GrOpList.cpp
parentb894c2b339471d417ef926709613f1e96660c331 (diff)
Drop the ref on the GrOpList's target in makeClosed (take 2)
Bug: 729233 TBR=bsalomon@google.com Change-Id: I5c9a0cb793c7c6564ad355a4a63b29fdc12f6cd7 Reviewed-on: https://skia-review.googlesource.com/19860 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.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gpu/GrOpList.cpp b/src/gpu/GrOpList.cpp
index 5160be16c2..5a9a1bdad8 100644
--- a/src/gpu/GrOpList.cpp
+++ b/src/gpu/GrOpList.cpp
@@ -41,13 +41,7 @@ GrOpList::GrOpList(GrResourceProvider* resourceProvider,
}
GrOpList::~GrOpList() {
- if (fTarget.get()) {
- if (this == fTarget.get()->getLastOpList()) {
- fTarget.get()->setLastOpList(nullptr);
- }
-
- fTarget.pendingIOComplete();
- }
+ this->reset();
}
bool GrOpList::instantiate(GrResourceProvider* resourceProvider) {
@@ -59,7 +53,6 @@ void GrOpList::reset() {
fTarget.get()->setLastOpList(nullptr);
}
- fTarget.pendingIOComplete();
fTarget.reset();
fAuditTrail = nullptr;
}