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

Commit 8a946512 authored by Jorge Betancourt's avatar Jorge Betancourt
Browse files

pass context to proc for MSKP captures

Submitted with Skia side change:
https://skia-review.googlesource.com/c/skia/+/948178

Test: frameworks/base/libs/hwui/tests/scripts/skp-capture.sh PACKAGE_NAME FRAMES
Bug: 353765197

Flag: TEST_ONLY

Change-Id: I8747a7dd18d9ad929d0a1b3d554ceccba863ec88
parent 78fd834f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -175,6 +175,8 @@ bool SkiaPipeline::setupMultiFrameCapture() {
    if (stream->isValid()) {
        mOpenMultiPicStream = std::move(stream);
        mSerialContext.reset(new SkSharingSerialContext());
        // passing the GrDirectContext to the SerialContext allows us to raster/serialize GPU images
        mSerialContext->setDirectContext(mRenderThread.getGrContext());
        SkSerialProcs procs;
        procs.fImageProc = SkSharingSerialContext::serializeImage;
        procs.fImageCtx = mSerialContext.get();