Add hooks for external run-time reference adoption checks to SkRefCnt.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 16 Oct 2013 15:15:58 +0000 (15:15 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 16 Oct 2013 15:15:58 +0000 (15:15 +0000)
commit6d2533ebd2ad5168d08f5a83e681881c0d533949
treed828ce3f515d1e259516c7891c52f982e1bf293f
parentf32322b9cefd950013ead6f914678580eff20b5b
Add hooks for external run-time reference adoption checks to SkRefCnt.

The reference adoption checks are to help detect memory
leaks and bad usage when using SkRefCnt subclasses with
Blink's RefPtr.

BUG=crbug.com/304265
R=reed@google.com, bungeman@google.com

Author: junov@chromium.org

Review URL: https://codereview.chromium.org/25432003

git-svn-id: http://skia.googlecode.com/svn/trunk@11811 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkRefCnt.h