commit | 7b4bd6e610193e4ce0f58627b8040a9bf54eef83 | [log] [tgz] |
---|---|---|
author | Sally Qi <sallyqi@google.com> | Tue Dec 10 23:18:12 2024 -0800 |
committer | Sally Qi <sallyqi@google.com> | Tue Dec 10 23:18:12 2024 -0800 |
tree | 414e86626c1ec5d7e3ee6b559cbb2ce3e0b0f6b3 | |
parent | f2b36ecbc0bca005321a4399ddd7c6249fc05096 [diff] |
[Lut HAL] add setDisplayLuts - the HWC uses this to update CommandResultPayload::displayLuts. Bug: 329472100 Test: builds Change-Id: I8a39c27bc3945057a20dbd6784a3a6ddc44b2c8f
diff --git a/graphics/composer/aidl/include/android/hardware/graphics/composer3/ComposerServiceWriter.h b/graphics/composer/aidl/include/android/hardware/graphics/composer3/ComposerServiceWriter.h index b50b84b..9dce140 100644 --- a/graphics/composer/aidl/include/android/hardware/graphics/composer3/ComposerServiceWriter.h +++ b/graphics/composer/aidl/include/android/hardware/graphics/composer3/ComposerServiceWriter.h
@@ -116,6 +116,13 @@ mCommandsResults.emplace_back(std::move(clientTargetPropertyWithBrightness)); } + void setDisplayLuts(int64_t display, std::vector<DisplayLuts::LayerLut> layerLuts) { + DisplayLuts displayLuts; + displayLuts.display = display; + displayLuts.layerLuts = std::move(layerLuts); + mCommandsResults.emplace_back(std::move(displayLuts)); + } + std::vector<CommandResultPayload> getPendingCommandResults() { return std::move(mCommandsResults); }