diff options
author | Robert Phillips <robertphillips@google.com> | 2018-07-27 07:35:55 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-27 13:32:27 +0000 |
commit | 2739ab0986a6c5e7ae460dfd58539f9aef262d53 (patch) | |
tree | 40cfadf68177d901715f795e9aac782d58dbcc8e | |
parent | 9acfc6cac2c68ab48121b321ad4e2d14f03224c7 (diff) |
Fix explicit resource allocator bug
This was folded into https://skia-review.googlesource.com/c/skia/+/142102 (Reduce arbitrary opList splitting when sorting (take 2)) but need not wait for that CL to land.
Change-Id: I883497129404fbf879e3c21f465f6debc5b5c2ed
Reviewed-on: https://skia-review.googlesource.com/143706
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
-rw-r--r-- | src/gpu/GrRenderTargetOpList.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrRenderTargetOpList.h b/src/gpu/GrRenderTargetOpList.h index 8629a7cb1f..81bd6f16e4 100644 --- a/src/gpu/GrRenderTargetOpList.h +++ b/src/gpu/GrRenderTargetOpList.h @@ -87,6 +87,9 @@ public: op->visitProxies(addDependency); clip.visitProxies(addDependency); + if (dstProxy.proxy()) { + addDependency(dstProxy.proxy()); + } return this->recordOp(std::move(op), caps, clip.doesClip() ? &clip : nullptr, &dstProxy); } |