Revert "Assert that lazy proxies are never borrowed or wrapped"
This reverts commit 64860e18070b212837ee81b5bfc1f06ef1f50e7b.
Reason for revert: Breaking Chrome roll
Original change's description:
> Assert that lazy proxies are never borrowed or wrapped
>
> Bug: skia:
> Change-Id: Ie59550e29d5212bb0af626cd7b5bee430137289a
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/225190
> Reviewed-by: Robert Phillips <robertphillips@google.com>
> Commit-Queue: Chris Dalton <csmartdalton@google.com>
TBR=robertphillips@google.com,csmartdalton@google.com
Change-Id: If1ea208cb2f338bc3b9e38bcecb860c81a6c4fc2
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/225542
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
diff --git a/src/gpu/GrSurfaceProxy.cpp b/src/gpu/GrSurfaceProxy.cpp
index 41e793b..903a74e 100644
--- a/src/gpu/GrSurfaceProxy.cpp
+++ b/src/gpu/GrSurfaceProxy.cpp
@@ -465,12 +465,6 @@
return false;
}
- // We currently assume we can always change the stencil attachment on lazy render targets (see
- // GrRenderTargetProxy::canUseMixedSamples). If the time ever comes that we need to to break
- // this assumption, we will have to add plumbing to relay this restriction back to the proxy.
- SkASSERT(!surface->asRenderTarget() ||
- surface->asRenderTarget()->canAttemptStencilAttachment());
-
if (fProxy->fWidth <= 0 || fProxy->fHeight <= 0) {
// This was a fully lazy proxy. We need to fill in the width & height. For partially
// lazy proxies we must preserve the original width & height since that indicates