Fix freeing of resources on imported AHB in MultiPictureDocumentTest.

Bug: skia:13445
Change-Id: Idab8d0fb581df75dc87785991e1bb2b5af303c05
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/556023
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Greg Daniel 2022-07-07 09:41:01 -04:00 committed by SkCQ
parent 6db6110a10
commit 884a5240f6

View File

@ -303,8 +303,8 @@ static sk_sp<SkImage> makeAHardwareBufferTestImage(
sk_sp<SkImage> image = SkImage::MakeFromTexture(
context, texture, kTopLeft_GrSurfaceOrigin, colorType, kPremul_SkAlphaType,
SkColorSpace::MakeSRGB(),
nullptr, // no release proc
nullptr // context for release proc
deleteProc,
imageCtx
);
REPORTER_ASSERT(reporter, image);