diff options
author | reed <reed@google.com> | 2014-11-24 12:02:31 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-24 12:02:31 -0800 |
commit | 90d0ff013bbd8e5295d1517d41cb408e9d9f4d93 (patch) | |
tree | 48f4d640384d870a41372957098a75d4ae98cf7e /tests/PictureBBHTest.cpp | |
parent | 989131755712dbf9ab05f15537c76c82094de067 (diff) |
add some debugging to SkNVRefCnt
BUG=skia:
Review URL: https://codereview.chromium.org/745383003
Diffstat (limited to 'tests/PictureBBHTest.cpp')
-rw-r--r-- | tests/PictureBBHTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PictureBBHTest.cpp b/tests/PictureBBHTest.cpp index fa02437432..bc712f575e 100644 --- a/tests/PictureBBHTest.cpp +++ b/tests/PictureBBHTest.cpp @@ -109,13 +109,13 @@ static void test_clear(skiatest::Reporter* r, SkBBHFactory* factory) { // A picture that's just clear(). src.beginRecording(1,1, factory) ->clear(SK_ColorGREEN); - SkAutoTDelete<SkPicture> srcPic(src.endRecording()); + SkAutoTUnref<SkPicture> srcPic(src.endRecording()); // A target canvas with an empty clip. SkCanvas* c = dst.beginRecording(1,1, NULL); c->clipRect(SkRect::MakeEmpty()); srcPic->playback(c); - SkAutoTDelete<SkPicture> dstPic(dst.endRecording()); + SkAutoTUnref<SkPicture> dstPic(dst.endRecording()); // Should be Clip - Save - Clear - Restore. // Buggy implementations might return 1 (just Clip) or 3 (Clip - Save - Restore). |