aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetOpList.h
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-11-29 16:48:25 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-30 12:14:02 +0000
commit8816b93134db2fecdfd690fd26967468f6c814b9 (patch)
tree7bc34f2815e5006671d4af6d377f3171cc3ca7e2 /src/gpu/GrRenderTargetOpList.h
parent713571f9afcf4b673812cd3b52bb5b17c107038b (diff)
Make sure to visit clips and dst proxies during gather
Bug: skia:7190 Change-Id: I0cd4f7734047550c7904f44892ef266498842e0c Reviewed-on: https://skia-review.googlesource.com/77940 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetOpList.h')
-rw-r--r--src/gpu/GrRenderTargetOpList.h13
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;