diff options
author | mtklein <mtklein@chromium.org> | 2014-11-24 13:09:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-24 13:09:39 -0800 |
commit | bbb61d7268b26d240afde2c924cb7d1370aa4071 (patch) | |
tree | 013f00dc4cabedbdc33b0fd201bf4338d3d24eee /tests/RefCntTest.cpp | |
parent | 7ba39cb9a6c97f07eb392a1cf99ce65c1f23ded0 (diff) |
make SkRefCnt::getRefCnt() debug-only, remove it from SkNVRefCnt.
Only (unused) API removed.
TBR=reed@google.com
BUG=skia:3160
Review URL: https://codereview.chromium.org/752263002
Diffstat (limited to 'tests/RefCntTest.cpp')
-rw-r--r-- | tests/RefCntTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/RefCntTest.cpp b/tests/RefCntTest.cpp index cf6ca3e0f2..cf4acc6233 100644 --- a/tests/RefCntTest.cpp +++ b/tests/RefCntTest.cpp @@ -49,7 +49,7 @@ static void test_refCnt(skiatest::Reporter* reporter) { thing1.join(); thing2.join(); - REPORTER_ASSERT(reporter, ref->getRefCnt() == 1); + REPORTER_ASSERT(reporter, ref->unique()); ref->unref(); } @@ -93,7 +93,7 @@ static void test_weakRefCnt(skiatest::Reporter* reporter) { thing3.join(); thing4.join(); - REPORTER_ASSERT(reporter, ref->getRefCnt() == 1); + REPORTER_ASSERT(reporter, ref->unique()); REPORTER_ASSERT(reporter, ref->getWeakCnt() == 1); ref->unref(); } |