diff options
| author | 2022-11-04 17:26:48 +0100 | |
|---|---|---|
| committer | 2022-12-05 08:17:18 +0000 | |
| commit | bdf7e4b411b312687559e5610d35cd0ca2e1d86e (patch) | |
| tree | 9b43acd78ded033718958bb2194dcbbeb2a77427 /libs/gui/SurfaceComposerClient.cpp | |
| parent | 438967a4a6a1648a177bf7139766728322d44f2c (diff) | |
Each Display Mode now has a list of supported HDR types.
SurfaceFlinger removes Dolby Vision as a supported HDR type when a certain mode does not support it
Bug: 241349060
Test: atest ExcludeDolbyVisionTest
Change-Id: I481cc13417f65cbcb1f4658be410adb6e99c760b
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
| -rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 1e43700d06..aaa2102a0d 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -2330,6 +2330,9 @@ status_t SurfaceComposerClient::getDynamicDisplayInfo(const sp<IBinder>& display outMode.sfVsyncOffset = mode.sfVsyncOffset; outMode.presentationDeadline = mode.presentationDeadline; outMode.group = mode.group; + std::transform(mode.supportedHdrTypes.begin(), mode.supportedHdrTypes.end(), + std::back_inserter(outMode.supportedHdrTypes), + [](const int32_t& value) { return static_cast<ui::Hdr>(value); }); outInfo->supportedDisplayModes.push_back(outMode); } |