SkMallocPixelRef::MakeDirect: doesn't need a release proc

Change-Id: Ic84b52b128b7cd71f0870094c5787d588ed68a9d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/234326
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
Hal Canary 2019-08-13 15:36:55 -04:00 committed by Skia Commit-Bot
parent 5e2c489a33
commit 8db426d66e

View File

@ -50,7 +50,7 @@ sk_sp<SkPixelRef> SkMallocPixelRef::MakeDirect(const SkImageInfo& info,
if (!is_valid(info)) {
return nullptr;
}
return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, nullptr, nullptr));
return sk_make_sp<SkPixelRef>(info.width(), info.height(), addr, rowBytes);
}