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

Commit 08da1d85 authored by Dan Stoza's avatar Dan Stoza Committed by android-build-merger
Browse files

HWC2: Check all displays for client composition am: bfbffeb4

am: 638708ad

Change-Id: I0ededbfa206b58a5eeaae3de36bdb91745f899c7
parents 665490af 638708ad
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1077,7 +1077,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) {