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

Commit 6b502556 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update dirty regions when requested to repaint everything" into pi-dev

parents bcb9443c a9dcf118
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4532,6 +4532,11 @@ status_t SurfaceFlinger::onTransact(

void SurfaceFlinger::repaintEverythingLocked() {
    android_atomic_or(1, &mRepaintEverything);
    for (size_t dpy = 0; dpy < mDisplays.size(); dpy++) {
        const sp<DisplayDevice>& displayDevice(mDisplays[dpy]);
        const Rect bounds(displayDevice->getBounds());
        displayDevice->dirtyRegion.orSelf(Region(bounds));
    }
    signalTransaction();
}