Skip to content

Commit 296566e

Browse files
author
linkai
committed
Modify dimming threshold from 0.2 to 0.9.
We found that the original dimming threshold was relatively small. When the dimming threshold exceeded 0.2, there were jitter issues when exiting HDR videos or Ultra HDR photos to the recent task. For better optimization, we raised the dimming threshold from 0.2 to 0.9. Bug: 321864707 Test: Manual Change-Id: I3dfb987b149b05d4a3c15e14779c9caab4783d75 Signed-off-by: linkai <linkai@xiaomi.com>
1 parent ffdc5e4 commit 296566e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/renderengine/skia/SkiaRenderEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ void SkiaRenderEngine::drawLayersInternal(
10221022
.fakeOutputDataspace = fakeDataspace}));
10231023

10241024
// Turn on dithering when dimming beyond this (arbitrary) threshold...
1025-
static constexpr float kDimmingThreshold = 0.2f;
1025+
static constexpr float kDimmingThreshold = 0.9f;
10261026
// ...or we're rendering an HDR layer down to an 8-bit target
10271027
// Most HDR standards require at least 10-bits of color depth for source content, so we
10281028
// can just extract the transfer function rather than dig into precise gralloc layout.

0 commit comments

Comments
 (0)