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

Commit 78b2a87d authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Automerger Merge Worker
Browse files

Merge "Report sync complete when VRI won't draw" into tm-dev am: 72a26f79 am: 8ebe22e3

parents 09816e7c 8ebe22e3
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -3503,7 +3503,9 @@ public final class ViewRootImpl implements ViewParent,
                }
                mPendingTransitions.clear();
            }
            performDraw();
            if (!performDraw() && mSyncBufferCallback != null) {
                mSyncBufferCallback.onBufferReady(null);
            }
        }

        if (mAttachInfo.mContentCaptureEvents != null) {
@@ -4246,11 +4248,11 @@ public final class ViewRootImpl implements ViewParent,
        });
    }

    private void performDraw() {
    private boolean performDraw() {
        if (mAttachInfo.mDisplayState == Display.STATE_OFF && !mReportNextDraw) {
            return;
            return false;
        } else if (mView == null) {
            return;
            return false;
        }

        final boolean fullRedrawNeeded = mFullRedrawNeeded || mSyncBufferCallback != null;
@@ -4334,6 +4336,7 @@ public final class ViewRootImpl implements ViewParent,
        if (mPerformContentCapture) {
            performContentCaptureInitialReport();
        }
        return true;
    }

    /**