setExtendedBrightness ALOGE -> FATAL

Bug: 272103317
Test: make
Change-Id: I155d818a3e473525c7cccd372978ae44912ffe58
This commit is contained in:
John Reck
2023-03-16 14:28:50 -04:00
parent 83b5bfc0eb
commit 732442f471

View File

@@ -628,14 +628,15 @@ void ASurfaceTransaction_setExtendedRangeBrightness(ASurfaceTransaction* aSurfac
CHECK_NOT_NULL(aSurfaceControl);
if (!isfinite(currentBufferRatio) || currentBufferRatio < 1.0f) {
ALOGE("Ignore setExtendedRangeBrightness, currentBufferRatio %f isn't finite or >= 1.0f",
currentBufferRatio);
LOG_ALWAYS_FATAL("setExtendedRangeBrightness, currentBufferRatio %f isn't finite or >= "
"1.0f",
currentBufferRatio);
return;
}
if (!isfinite(desiredRatio) || desiredRatio < 1.0f) {
ALOGE("Ignore setExtendedRangeBrightness, desiredRatio %f isn't finite or >= 1.0f",
desiredRatio);
LOG_ALWAYS_FATAL("setExtendedRangeBrightness, desiredRatio %f isn't finite or >= 1.0f",
desiredRatio);
return;
}