Remove IO refs from GrSurfaceProxy only
This CL leaves the Ganesh world in a very odd place. In particular it still:
has pendingIO refs on GrSurfaces
forwards the proxy refs on to the backing GrSurface
Removing everything at once only ends in a mess thus, this goofball CL.
Change-Id: If112ff311bcef2e8d65a36c3b53b0ded4041c24e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/210040
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrFragmentProcessor.cpp b/src/gpu/GrFragmentProcessor.cpp
index a0bf114..520bf43 100644
--- a/src/gpu/GrFragmentProcessor.cpp
+++ b/src/gpu/GrFragmentProcessor.cpp
@@ -91,17 +91,6 @@
return true;
}
-void GrFragmentProcessor::markPendingExecution() const {
- for (int i = 0; i < fTextureSamplerCnt; ++i) {
- auto* ref = this->textureSampler(i).proxyRef();
- ref->markPendingIO();
- ref->removeRef();
- }
- for (int i = 0; i < this->numChildProcessors(); ++i) {
- this->childProcessor(i).markPendingExecution();
- }
-}
-
int GrFragmentProcessor::registerChildProcessor(std::unique_ptr<GrFragmentProcessor> child) {
if (child->usesLocalCoords()) {
fFlags |= kUsesLocalCoords_Flag;
@@ -439,7 +428,7 @@
void GrFragmentProcessor::TextureSampler::reset(sk_sp<GrTextureProxy> proxy,
const GrSamplerState& samplerState) {
- fProxyRef.setProxy(std::move(proxy), kRead_GrIOType);
+ fProxyRef.setProxy(std::move(proxy));
fSamplerState = samplerState;
fSamplerState.setFilterMode(SkTMin(samplerState.filter(), this->proxy()->highestFilterMode()));
}
@@ -447,7 +436,7 @@
void GrFragmentProcessor::TextureSampler::reset(sk_sp<GrTextureProxy> proxy,
GrSamplerState::Filter filterMode,
GrSamplerState::WrapMode wrapXAndY) {
- fProxyRef.setProxy(std::move(proxy), kRead_GrIOType);
+ fProxyRef.setProxy(std::move(proxy));
filterMode = SkTMin(filterMode, this->proxy()->highestFilterMode());
fSamplerState = GrSamplerState(wrapXAndY, filterMode);
}