commit | f1748f5a9238a0d3e189d50fc5e57ae8b8ec087c | [log] [tgz] |
---|---|---|
author | Robert Phillips <robertphillips@google.com> | Thu Sep 14 14:11:24 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Sep 14 20:39:42 2017 +0000 |
tree | caff30803c0b92b567f9c8dc9cdb7610389684af | |
parent | 7d76ed2b1be9f5dcc1acca311d47829cd03d52f8 [diff] [blame] |
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>
diff --git a/src/gpu/ops/GrTextureOp.cpp b/src/gpu/ops/GrTextureOp.cpp index 92278d1..1149ed2 100644 --- a/src/gpu/ops/GrTextureOp.cpp +++ b/src/gpu/ops/GrTextureOp.cpp
@@ -245,7 +245,7 @@ const char* name() const override { return "TextureOp"; } - void visitProxies(VisitProxyFunc func) const override { + void visitProxies(const VisitProxyFunc& func) const override { auto proxies = this->proxies(); for (int i = 0; i < fProxyCnt; ++i) { func(proxies[i]);