aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetOpList.cpp
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.cpp
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.cpp')
-rw-r--r--src/gpu/GrRenderTargetOpList.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gpu/GrRenderTargetOpList.cpp b/src/gpu/GrRenderTargetOpList.cpp
index 4bdfe589bb..885723c0d6 100644
--- a/src/gpu/GrRenderTargetOpList.cpp
+++ b/src/gpu/GrRenderTargetOpList.cpp
@@ -271,14 +271,11 @@ void GrRenderTargetOpList::gatherProxyIntervals(GrResourceAllocator* alloc) cons
alloc->incOps();
}
- auto gather = [ alloc ] (GrSurfaceProxy* p) {
- alloc->addInterval(p);
+ auto gather = [ alloc SkDEBUGCODE(, this) ] (GrSurfaceProxy* p) {
+ alloc->addInterval(p SkDEBUGCODE(, fTarget.get() == p));
};
- for (int i = 0; i < fRecordedOps.count(); ++i) {
- const GrOp* op = fRecordedOps[i].fOp.get(); // only diff from the GrTextureOpList version
- if (op) {
- op->visitProxies(gather);
- }
+ for (const RecordedOp& recordedOp : fRecordedOps) {
+ recordedOp.visitProxies(gather); // only diff from the GrTextureOpList version
// Even though the op may have been moved we still need to increment the op count to
// keep all the math consistent.