diff options
author | Alec Mouri <alecmouri@google.com> | 2022-02-10 15:10:41 -0800 |
---|---|---|
committer | Alec Mouri <alecmouri@google.com> | 2022-02-23 23:04:48 +0000 |
commit | 86d9463ab7383b080994481887a1359ae27b4523 (patch) | |
tree | 12b9dac7177857c52ac3cfa19499786c25474163 /hwc3/ComposerCommandEngine.cpp | |
parent | ab41f421c73e1eb42f7185a1a2fdbed7ff0253fe (diff) |
Composer reports dimming ratio for client composition instead of nits
Hal interface is changing to remove nits from the composer interface,
and instead operate on a ratio of the current brightness.
Bug: 217961164
Test: builds, boots
Change-Id: Ia27a6038ba98d51bbdf5127ee7e8f9ef99e8c119
Merged-In: Ia27a6038ba98d51bbdf5127ee7e8f9ef99e8c119
Diffstat (limited to 'hwc3/ComposerCommandEngine.cpp')
-rw-r--r-- | hwc3/ComposerCommandEngine.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hwc3/ComposerCommandEngine.cpp b/hwc3/ComposerCommandEngine.cpp index 01fef69..a856f9e 100644 --- a/hwc3/ComposerCommandEngine.cpp +++ b/hwc3/ComposerCommandEngine.cpp @@ -130,17 +130,17 @@ int32_t ComposerCommandEngine::executeValidateDisplayInternal(int64_t display) { uint32_t displayRequestMask = 0x0; std::vector<int64_t> requestedLayers; std::vector<int32_t> requestMasks; - float clientTargetWhitePointNits; ClientTargetProperty clientTargetProperty{common::PixelFormat::RGBA_8888, common::Dataspace::UNKNOWN}; - auto err = mHal->validateDisplay(display, &changedLayers, &compositionTypes, - &displayRequestMask, &requestedLayers, &requestMasks, - &clientTargetProperty, &clientTargetWhitePointNits); + auto err = + mHal->validateDisplay(display, &changedLayers, &compositionTypes, &displayRequestMask, + &requestedLayers, &requestMasks, &clientTargetProperty); mResources->setDisplayMustValidateState(display, false); if (!err) { mWriter->setChangedCompositionTypes(display, changedLayers, compositionTypes); mWriter->setDisplayRequests(display, displayRequestMask, requestedLayers, requestMasks); - mWriter->setClientTargetProperty(display, clientTargetProperty, clientTargetWhitePointNits); + static constexpr float kBrightness = 1.f; + mWriter->setClientTargetProperty(display, clientTargetProperty, kBrightness); } else { LOG(ERROR) << __func__ << ": err " << err; mWriter->setError(mCommandIndex, err); |