Skip to content

Commit 47d2988

Browse files
author
zhengchuanlong
committed
Fix the issue of screen flashing when adjusting ambient light when playing HDR video.
Bug:360380695 Test:Manual The comparison operation comment of the LayerSettings.h file describes "Keep in sync with custom comparison function in compositionengine/impl/ClientCompositionRequestCache.cpp". However, for the comparison of LayerSetting, white point value comparison is added in LayerSettings.h, but not in ClientCompositionRequestCache.cpp, which makes the HDR video dimming cache ineffective and causes screen flickering. Change-Id: I54d230ddf176660c5e83f771a59154debce7f541 Signed-off-by: zhengchuanlong <zhengchuanlong@xiaomi.com>
1 parent 6ff1302 commit 47d2988

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

services/surfaceflinger/CompositionEngine/src/ClientCompositionRequestCache.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ inline bool equalIgnoringSource(const renderengine::LayerSettings& lhs,
3838
lhs.disableBlending == rhs.disableBlending && lhs.shadow == rhs.shadow &&
3939
lhs.backgroundBlurRadius == rhs.backgroundBlurRadius &&
4040
lhs.stretchEffect == rhs.stretchEffect &&
41-
lhs.edgeExtensionEffect == rhs.edgeExtensionEffect;
41+
lhs.edgeExtensionEffect == rhs.edgeExtensionEffect &&
42+
lhs.whitePointNits == rhs.whitePointNits;
4243
}
4344

4445
inline bool equalIgnoringBuffer(const renderengine::Buffer& lhs, const renderengine::Buffer& rhs) {

0 commit comments

Comments
 (0)