aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrAppliedClip.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-09-13 13:10:52 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-13 17:38:56 +0000
commitb493eebca14aefbd5f22fb5d45ba978b19db4b18 (patch)
tree8a9ae4209e52b1e1da283e45f56df921598c7920 /src/gpu/GrAppliedClip.h
parent08cda14d61f02d2e376a9cd88131daebad6b21e0 (diff)
Add method to iterate over a GrOp's GrSurfaceProxies
The extra generality of having a std::function is for MDB reordering. In the current MDB reordering world there is one pass through the surfaceProxies at creation time and a second pass after flush to create the usage intervals. Change-Id: I3f548417eddc1dad7503d919241301e404255ffe Reviewed-on: https://skia-review.googlesource.com/46200 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrAppliedClip.h')
-rw-r--r--src/gpu/GrAppliedClip.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrAppliedClip.h b/src/gpu/GrAppliedClip.h
index bcf6eb9ce8..e942baa6a2 100644
--- a/src/gpu/GrAppliedClip.h
+++ b/src/gpu/GrAppliedClip.h
@@ -82,6 +82,12 @@ public:
}
bool operator!=(const GrAppliedClip& that) const { return !(*this == that); }
+ void visitProxies(std::function<void(GrSurfaceProxy*)> func) const {
+ if (fClipCoverageFP) {
+ fClipCoverageFP->visitProxies(func);
+ }
+ }
+
private:
GrScissorState fScissorState;
GrWindowRectsState fWindowRectsState;