Remove GrProxyPendingIO
Change-Id: I9cf40f0518673206c6304e3f386dd75c9a44f269
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/235865
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp
index af2a5e6..1de2199 100644
--- a/src/gpu/GrPipeline.cpp
+++ b/src/gpu/GrPipeline.cpp
@@ -42,7 +42,7 @@
if (args.fDstProxy.proxy()) {
SkASSERT(args.fDstProxy.proxy()->isInstantiated());
- fDstTextureProxy.reset(args.fDstProxy.proxy());
+ fDstTextureProxy = args.fDstProxy.refProxy();
fDstTextureOffset = args.fDstProxy.offset();
}
@@ -75,7 +75,7 @@
}
GrXferBarrierType GrPipeline::xferBarrierType(GrTexture* texture, const GrCaps& caps) const {
- if (fDstTextureProxy.get() && fDstTextureProxy.get()->peekTexture() == texture) {
+ if (fDstTextureProxy && fDstTextureProxy->peekTexture() == texture) {
return kTexture_GrXferBarrierType;
}
return this->getXferProcessor().xferBarrierType(caps);