commit | 1b3387b5cfef150c3237c6a8700b2d6f3730e4ce | [log] [tgz] |
---|---|---|
author | Hal Canary <halcanary@google.com> | Mon Dec 12 13:48:12 2016 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Dec 12 20:18:50 2016 +0000 |
tree | 3b0e9690f1346e37631aa687650390d49f5f3c46 | |
parent | 8615fe59fcc0246a8b0c11b37b3e75f82c9933dd [diff] [blame] |
SkBitmap::setPixelRef(): less reference churn BUG=skia: Change-Id: I9657e4af5fcc808f9175ff336155374ccc77999d Reviewed-on: https://skia-review.googlesource.com/5461 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
diff --git a/tests/PDFInvalidBitmapTest.cpp b/tests/PDFInvalidBitmapTest.cpp index 10292bd..54acf02 100644 --- a/tests/PDFInvalidBitmapTest.cpp +++ b/tests/PDFInvalidBitmapTest.cpp
@@ -32,7 +32,7 @@ SkBitmap make_invalid_bitmap(const SkImageInfo& imageInfo) { SkBitmap bitmap; bitmap.setInfo(imageInfo); - bitmap.setPixelRef(new InvalidPixelRef(imageInfo))->unref(); + bitmap.setPixelRef(sk_make_sp<InvalidPixelRef>(imageInfo), 0 ,0); return bitmap; }