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

Commit 638708ad authored by Dan Stoza's avatar Dan Stoza Committed by android-build-merger
Browse files

HWC2: Check all displays for client composition

am: bfbffeb4

Change-Id: I96d86695d1553cfd57dfca6e007d3137a4b73843
parents 38f86bca bfbffeb4
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1076,7 +1076,13 @@ void SurfaceFlinger::handleMessageRefresh() {
    postComposition(refreshStartTime);

    mPreviousPresentFence = mHwc->getRetireFence(HWC_DISPLAY_PRIMARY);
    mHadClientComposition = mHwc->hasClientComposition(HWC_DISPLAY_PRIMARY);

    mHadClientComposition = false;
    for (size_t displayId = 0; displayId < mDisplays.size(); ++displayId) {
        const sp<DisplayDevice>& displayDevice = mDisplays[displayId];
        mHadClientComposition = mHadClientComposition ||
                mHwc->hasClientComposition(displayDevice->getHwcDisplayId());
    }

    // Release any buffers which were replaced this frame
    for (auto& layer : mLayersWithQueuedFrames) {