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

Commit cff969ff authored by Nathaniel Nifong's avatar Nathaniel Nifong
Browse files

[MSKP] Record android device clip restriction (dirty region) with each frame.

Test: Confirm recording and normal rendering unaffected on pixel 3
Change-Id: I368a24371317aba26e234649194ae1b05ab0396d
parent 1958e4c2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -457,7 +457,10 @@ void SkiaPipeline::renderFrameImpl(const SkRect& clip,
                                   const Rect& contentDrawBounds, SkCanvas* canvas,
                                   const SkMatrix& preTransform) {
    SkAutoCanvasRestore saver(canvas, true);
    canvas->androidFramework_setDeviceClipRestriction(preTransform.mapRect(clip).roundOut());
    auto clipRestriction = preTransform.mapRect(clip).roundOut();
    canvas->androidFramework_setDeviceClipRestriction(clipRestriction);
    canvas->drawAnnotation(SkRect::Make(clipRestriction), "AndroidDeviceClipRestriction",
        nullptr);
    canvas->concat(preTransform);

    // STOPSHIP: Revert, temporary workaround to clear always F16 frame buffer for b/74976293