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

Commit b6a58506 authored by Nathaniel Nifong's avatar Nathaniel Nifong Committed by Android (Google) Code Review
Browse files

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

parents f2be9da2 cff969ff
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