diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h index 82a3c9e000..a502d4ef17 100644 --- a/include/core/SkRefCnt.h +++ b/include/core/SkRefCnt.h @@ -71,15 +71,7 @@ public: /** Increment the reference count. Must be balanced by a call to unref(). */ void ref() const { -#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK - // Android employs some special subclasses that enable the fRefCnt to - // go to zero, but not below, prior to reusing the object. This breaks - // the use of unique() on such objects and as such should be removed - // once the Android code is fixed. - SkASSERT(getRefCnt() >= 0); -#else SkASSERT(getRefCnt() > 0); -#endif // No barrier required. (void)fRefCnt.fetch_add(+1, std::memory_order_relaxed); }