diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-11-29 11:32:18 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-29 19:02:45 +0000 |
commit | c666502bc6975a73ef352d673b151017a21e8562 (patch) | |
tree | fd2b693b80a8fedaff81bac3cd4e1f048abc0519 /src/gpu/GrRenderTargetOpList.h | |
parent | 0425febe6132a0e2824efbbd323efb2a71504776 (diff) |
Make sure to visit clips and dst proxies during gather
Bug: skia:7190
Change-Id: I6ba5bad6e155e9092dff9c2ad3241f603c333b4d
Reviewed-on: https://skia-review.googlesource.com/76460
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetOpList.h')
-rw-r--r-- | src/gpu/GrRenderTargetOpList.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gpu/GrRenderTargetOpList.h b/src/gpu/GrRenderTargetOpList.h index e9797db8f5..7e600d41d1 100644 --- a/src/gpu/GrRenderTargetOpList.h +++ b/src/gpu/GrRenderTargetOpList.h @@ -136,6 +136,19 @@ private: fDstProxy = *dstProxy; } } + + void visitProxies(const GrOp::VisitProxyFunc& func) const { + if (fOp) { + fOp->visitProxies(func); + } + if (fDstProxy.proxy()) { + func(fDstProxy.proxy()); + } + if (fAppliedClip) { + fAppliedClip->visitProxies(func); + } + } + std::unique_ptr<GrOp> fOp; DstProxy fDstProxy; GrAppliedClip* fAppliedClip; |