| Index: include/core/SkRefCnt.h
|
| diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h
|
| index 3227e6874066f7f60fdfd4536df8b6cba153e087..82a3c9e0003d8dae98f9da865b4dbf668862b229 100644
|
| --- a/include/core/SkRefCnt.h
|
| +++ b/include/core/SkRefCnt.h
|
| @@ -101,15 +101,12 @@ public:
|
| protected:
|
| /**
|
| * Allow subclasses to call this if they've overridden internal_dispose
|
| - * so they can reset fRefCnt before the destructor is called. Should only
|
| - * be called right before calling through to inherited internal_dispose()
|
| - * or before calling the destructor.
|
| + * so they can reset fRefCnt before the destructor is called or if they
|
| + * choose not to call the destructor (e.g. using a free list).
|
| */
|
| void internal_dispose_restore_refcnt_to_1() const {
|
| -#ifdef SK_DEBUG
|
| SkASSERT(0 == getRefCnt());
|
| fRefCnt.store(1, std::memory_order_relaxed);
|
| -#endif
|
| }
|
|
|
| private:
|
|
|