Merge "invalidate if the colormode changes" into udc-qpr-dev

This commit is contained in:
John Reck
2023-08-09 21:59:55 +00:00
committed by Android (Google) Code Review

View File

@@ -1808,6 +1808,9 @@ public final class ViewRootImpl implements ViewParent,
// Request to update light center.
mAttachInfo.mNeedsUpdateLightCenter = true;
}
if ((changes & WindowManager.LayoutParams.COLOR_MODE_CHANGED) != 0) {
invalidate();
}
if (mWindowAttributes.packageName == null) {
mWindowAttributes.packageName = mBasePackageName;
}
@@ -5513,6 +5516,7 @@ public final class ViewRootImpl implements ViewParent,
if (desiredRatio != mDesiredHdrSdrRatio) {
mDesiredHdrSdrRatio = desiredRatio;
updateRenderHdrSdrRatio();
invalidate();
if (mDesiredHdrSdrRatio < 1.01f) {
mDisplay.unregisterHdrSdrRatioChangedListener(mHdrSdrRatioChangedListener);