Remove GrInternalSurfaceFlags::kNoPendingIO as it is no longer needed
Since explicit allocation is always enabled now, the resource allocator explicitly manages reuse of GrSurfaces and this flag isn't used/needed.
Change-Id: I5703bf4624e21f9aff9da76575f4ef757b1d2589
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/210140
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp
index a6efaab..c522e78 100644
--- a/src/gpu/GrSWMaskHelper.cpp
+++ b/src/gpu/GrSWMaskHelper.cpp
@@ -107,18 +107,10 @@
return nullptr;
}
- // TODO: http://skbug.com/8422: Although this fixes http://skbug.com/8351, it seems like these
- // should just participate in the normal allocation process and not need the pending IO flag.
- auto surfaceFlags = GrInternalSurfaceFlags::kNone;
- if (!context->priv().proxyProvider()->renderingDirectly()) {
- // In DDL mode, this texture proxy will be instantiated at flush time, therfore it cannot
- // have pending IO.
- surfaceFlags |= GrInternalSurfaceFlags::kNoPendingIO;
- }
auto clearFlag = kNone_GrSurfaceFlags;
if (context->priv().caps()->shouldInitializeTextures() && fit == SkBackingFit::kApprox) {
clearFlag = kPerformInitialClear_GrSurfaceFlag;
}
return context->priv().proxyProvider()->createTextureProxy(
- std::move(img), clearFlag, 1, SkBudgeted::kYes, fit, surfaceFlags);
+ std::move(img), clearFlag, 1, SkBudgeted::kYes, fit);
}