Loading libs/renderengine/skia/debug/SkiaCapture.cpp +8 −2 Original line number Original line Diff line number Diff line Loading @@ -129,8 +129,14 @@ bool SkiaCapture::setupMultiFrameCapture() { // SkDocuments don't take ownership of the streams they write. // SkDocuments don't take ownership of the streams they write. // we need to keep it until after mMultiPic.close() // 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 is passed as a pointer, but just as a method of having an optional default. // procs doesn't need to outlive this Make call. // procs doesn't need to outlive this Make call mMultiPic = SkMakeMultiPictureDocument(mOpenMultiPicStream.get(), &procs); // The last argument is a callback for the endPage behavior. // See SkSharingProc.h for more explanation of this callback. mMultiPic = SkMakeMultiPictureDocument( mOpenMultiPicStream.get(), &procs, [sharingCtx = mSerialContext.get()](const SkPicture* pic) { SkSharingSerialContext::collectNonTextureImagesFromPicture(pic, sharingCtx); }); mCaptureRunning = true; mCaptureRunning = true; return true; return true; } else { } else { Loading Loading
libs/renderengine/skia/debug/SkiaCapture.cpp +8 −2 Original line number Original line Diff line number Diff line Loading @@ -129,8 +129,14 @@ bool SkiaCapture::setupMultiFrameCapture() { // SkDocuments don't take ownership of the streams they write. // SkDocuments don't take ownership of the streams they write. // we need to keep it until after mMultiPic.close() // 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 is passed as a pointer, but just as a method of having an optional default. // procs doesn't need to outlive this Make call. // procs doesn't need to outlive this Make call mMultiPic = SkMakeMultiPictureDocument(mOpenMultiPicStream.get(), &procs); // The last argument is a callback for the endPage behavior. // See SkSharingProc.h for more explanation of this callback. mMultiPic = SkMakeMultiPictureDocument( mOpenMultiPicStream.get(), &procs, [sharingCtx = mSerialContext.get()](const SkPicture* pic) { SkSharingSerialContext::collectNonTextureImagesFromPicture(pic, sharingCtx); }); mCaptureRunning = true; mCaptureRunning = true; return true; return true; } else { } else { Loading