diff options
author | Long Ling <longling@google.com> | 2021-11-23 19:50:02 -0800 |
---|---|---|
committer | Long Ling <longling@google.com> | 2022-01-11 12:15:34 -0800 |
commit | e738bcf694db42aaee4fc9e8f416b4c1cf0cdb5b (patch) | |
tree | c61637ea063ec251d50d87ee87aebafe4dda2eeb /hwc3/ComposerClient.cpp | |
parent | b1d95bc1041c4fabd9e8ba11a46590b174ba002d (diff) |
hwc3: support SDR and HDR blending
Add support for setLayerWhitePointNits, setClientTargetWhitePointNits
and setDisplayBrightness commands.
Bug: 196171661
Change-Id: I5b2c5510ae758805396e678f1e2d5c4ea1e716b5
Diffstat (limited to 'hwc3/ComposerClient.cpp')
-rw-r--r-- | hwc3/ComposerClient.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hwc3/ComposerClient.cpp b/hwc3/ComposerClient.cpp index 45f9746..4173a8f 100644 --- a/hwc3/ComposerClient.cpp +++ b/hwc3/ComposerClient.cpp @@ -112,7 +112,6 @@ ndk::ScopedAStatus ComposerClient::executeCommands(const std::vector<DisplayComm std::vector<CommandResultPayload>* results) { DEBUG_FUNC(); auto err = mCommandEngine->execute(commands, results); - mCommandEngine->reset(); return TO_BINDER_STATUS(err); } @@ -494,8 +493,10 @@ void ComposerClient::destroyResources() { std::vector<int64_t> requestedLayers; std::vector<int32_t> requestMasks; ClientTargetProperty clientTargetProperty; + float clientWhitePointNits; mHal->validateDisplay(display, &changedLayers, &compositionTypes, &displayRequestMask, - &requestedLayers, &requestMasks, &clientTargetProperty); + &requestedLayers, &requestMasks, &clientTargetProperty, + &clientWhitePointNits); mHal->acceptDisplayChanges(display); ndk::ScopedFileDescriptor presentFence; |