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

Commit c44a1ffe authored by Alec Mouri's avatar Alec Mouri
Browse files

Fix SurfaceFlinger_test on WCG devices

Some tests force sRGB screenshots for consistent test output. Make sure
that output colorspace is still respected.

Bug: 283305205
Test: SurfaceFlinger_test
Change-Id: I42ffe36022fa65568bcd75df28a33389340a7d7f
parent 3a4f049f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -7046,9 +7046,9 @@ status_t SurfaceFlinger::captureDisplay(const DisplayCaptureArgs& args,
    }

    RenderAreaFuture renderAreaFuture = ftl::defer([=] {
        return DisplayRenderArea::create(displayWeak, args.sourceCrop, reqSize,
                                         ui::Dataspace::UNKNOWN, args.useIdentityTransform,
                                         args.hintForSeamlessTransition, args.captureSecureLayers);
        return DisplayRenderArea::create(displayWeak, args.sourceCrop, reqSize, args.dataspace,
                                         args.useIdentityTransform, args.hintForSeamlessTransition,
                                         args.captureSecureLayers);
    });

    GetLayerSnapshotsFunction getLayerSnapshots;