diff options
| author | 2023-03-16 21:28:48 +0000 | |
|---|---|---|
| committer | 2023-03-16 21:28:48 +0000 | |
| commit | 1263d5133b7f088d2f76b43b789130ff5d5a9c1e (patch) | |
| tree | 7195006ad307ec76a4e8852f5d2a587df105feac | |
| parent | 3504727901024e1e84dc98cafa1ca0238e643cd5 (diff) | |
| parent | 732442f47186060fd862c731bbdfeb791fb96204 (diff) | |
Merge "setExtendedBrightness ALOGE -> FATAL" into udc-dev
| -rw-r--r-- | native/android/surface_control.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/native/android/surface_control.cpp b/native/android/surface_control.cpp index 904fa7484027..4b63fbf14d4c 100644 --- a/native/android/surface_control.cpp +++ b/native/android/surface_control.cpp @@ -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; } |