Change GrProgramInfo::visitProxies to "visitFPProxies"
We are removing dynamic state from the ProgramInfo, so the Ops will
need to invoke visits on their own primProc proxies.
Change-Id: I7ab227ab71208b7c7bcb7a9deb56b9abd556d6aa
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/277236
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/ops/GrLatticeOp.cpp b/src/gpu/ops/GrLatticeOp.cpp
index 48da96f..5390a91 100644
--- a/src/gpu/ops/GrLatticeOp.cpp
+++ b/src/gpu/ops/GrLatticeOp.cpp
@@ -169,11 +169,11 @@
const char* name() const override { return "NonAALatticeOp"; }
void visitProxies(const VisitProxyFunc& func) const override {
+ bool mipped = (GrSamplerState::Filter::kMipMap == fFilter);
+ func(fView.proxy(), GrMipMapped(mipped));
if (fProgramInfo) {
- fProgramInfo->visitProxies(func);
+ fProgramInfo->visitFPProxies(func);
} else {
- bool mipped = (GrSamplerState::Filter::kMipMap == fFilter);
- func(fView.proxy(), GrMipMapped(mipped));
fHelper.visitProxies(func);
}
}