Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c216772 authored by Nathaniel Nifong's avatar Nathaniel Nifong
Browse files

Use onEndPage callback in hwui skp recording

Test: so far none, need to find an app that uses AHardwareBuffer via hwui

Change-Id: Ia8c2fa32bff9762a8ed0e66f9961650dbd2e19d5
parent 8b444c2c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -276,7 +276,10 @@ bool SkiaPipeline::setupMultiFrameCapture() {
        // we need to keep it until after mMultiPic.close()
        // procs is passed as a pointer, but just as a method of having an optional default.
        // procs doesn't need to outlive this Make call.
        mMultiPic = SkMakeMultiPictureDocument(mOpenMultiPicStream.get(), &procs);
        mMultiPic = SkMakeMultiPictureDocument(mOpenMultiPicStream.get(), &procs,
            [sharingCtx = mSerialContext.get()](const SkPicture* pic) {
                    SkSharingSerialContext::collectNonTextureImagesFromPicture(pic, sharingCtx);
            });
        return true;
    } else {
        ALOGE("Could not open \"%s\" for writing.", mCapturedFile.c_str());