[SurfaceFlinger] Add BT2100_PQ and BT2100_HLG color mode.
When hardware composer has native HDR10/HLG support, SurfaceFlinger will always pass the layer to hardware composer. When hardware composer doesn't have native HDR10/HLG support, but has BT2100_PQ or BT2100_HLG color mode with render intent, SurfaceFlinger will always set the color mode to BT2100_PQ and BT2100_HLG respectively, and set the render intent to TONE_MAP_ENHANCE if supported, or TONE_MAP_COLORIMETRIC. Otherwise, SurfaceFlinger will set the color mode to Display P3 and simulate PQ/HLG in RenderEngine. Since SurfaceFlinger now can simulate HLG support in Display P3 mode, when apps query HDR capability from platform, we also return HLG support. BUG: 73825729 Test: build, flash Change-Id: I53696360f2b3d986aa9191ff42866e275ba4fd0b Merged-In: I53696360f2b3d986aa9191ff42866e275ba4fd0b
Loading
Please register or sign in to comment