Make GrSurfaceProxy derive from GrNonAtomicRef and remove GrIORefProxy.
Also, expose GrNonAtomicRef's ref count. Since it's non-atomic and not
thread-safe it seems fine.
Change-Id: I5cf48e60d32094354955b2614cfeebbb4c1ecf2a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/238059
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrProxyProvider.cpp b/src/gpu/GrProxyProvider.cpp
index 734b227..9dd6393 100644
--- a/src/gpu/GrProxyProvider.cpp
+++ b/src/gpu/GrProxyProvider.cpp
@@ -104,7 +104,7 @@
GrTextureProxy* proxy = fUniquelyKeyedProxies.find(key);
if (proxy) {
- SkASSERT(proxy->getProxyRefCnt() >= 1);
+ SkASSERT(proxy->refCnt() >= 1);
SkASSERT(proxy->origin() == origin);
return sk_ref_sp(proxy);
}