Merge "Report sync complete when VRI won't draw" into tm-dev am: 72a26f7912
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18775294 Change-Id: I8acd61169bd7ed14551f402580aae3ca24766393 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3500,7 +3500,9 @@ public final class ViewRootImpl implements ViewParent,
|
||||
}
|
||||
mPendingTransitions.clear();
|
||||
}
|
||||
performDraw();
|
||||
if (!performDraw() && mSyncBufferCallback != null) {
|
||||
mSyncBufferCallback.onBufferReady(null);
|
||||
}
|
||||
}
|
||||
|
||||
if (mAttachInfo.mContentCaptureEvents != null) {
|
||||
@@ -4243,11 +4245,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;
|
||||
@@ -4331,6 +4333,7 @@ public final class ViewRootImpl implements ViewParent,
|
||||
if (mPerformContentCapture) {
|
||||
performContentCaptureInitialReport();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user