summaryrefslogtreecommitdiff
path: root/hwc3/ComposerClient.cpp
diff options
context:
space:
mode:
authorLong Ling <longling@google.com>2021-11-23 19:50:02 -0800
committerLong Ling <longling@google.com>2022-01-11 12:15:34 -0800
commite738bcf694db42aaee4fc9e8f416b4c1cf0cdb5b (patch)
treec61637ea063ec251d50d87ee87aebafe4dda2eeb /hwc3/ComposerClient.cpp
parentb1d95bc1041c4fabd9e8ba11a46590b174ba002d (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.cpp5
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;