aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrAppliedClip.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-09-14 14:11:24 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-14 20:39:42 +0000
commitf1748f5a9238a0d3e189d50fc5e57ae8b8ec087c (patch)
treecaff30803c0b92b567f9c8dc9cdb7610389684af /src/gpu/GrAppliedClip.h
parent7d76ed2b1be9f5dcc1acca311d47829cd03d52f8 (diff)
Change visitProxies signature
There is a perf regression (mainly on the Nexus5) for the https://skia-review.googlesource.com/c/skia/+/46200 (Add method to iterate over a GrOp's GrSurfaceProxies) This is one candidate. Change-Id: I995d3a88bad2a914f24b49512abbf01aeaf579c8 Reviewed-on: https://skia-review.googlesource.com/46586 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrAppliedClip.h b/src/gpu/GrAppliedClip.h
index e942baa6a2..92cd45be10 100644
--- a/src/gpu/GrAppliedClip.h
+++ b/src/gpu/GrAppliedClip.h
@@ -82,7 +82,7 @@ public:
}
bool operator!=(const GrAppliedClip& that) const { return !(*this == that); }
- void visitProxies(std::function<void(GrSurfaceProxy*)> func) const {
+ void visitProxies(const std::function<void(GrSurfaceProxy*)>& func) const {
if (fClipCoverageFP) {
fClipCoverageFP->visitProxies(func);
}