summaryrefslogtreecommitdiff
path: root/hwc3/ComposerCommandEngine.cpp
AgeCommit message (Collapse)Author
2023-03-06libhwc2.1: don't check SKIP_VALIDATE in HWC3Midas Chien
SKIP_VALIDATE is deprecated in HWC3, so we don't need to check it when executing PresentOrValidateDisplay. Bug: 271531314 Test: scroll Change-Id: Iebc97333d773943a3c89b1756743d0459c66129d
2022-12-01hwc3: Make the ComposerCommandEngine as local variablejoenchen
A race condition exists because HWC uses only one ComposerCommandEngine::Writer for all displays. The writer takes responsibility to package AIDL functions’ return values and deliver the package to SF. When a thread is packaging the return value of the inner display by Writer, another thread may call Writer::reset() for the outer display. Bug: 247074458 Test: switch applications Change-Id: I7393bd6d01008b09ac4f4a733fc7d024aaf05352
2022-08-23hwc3: move mustValidateDisplay() to executePresentOrValidateDisplay()Wiwit Rifa'i
mustValidateDisplay() should only be checked in executePresentOrValidateDisplay(), not in executePresentDisplay(). This is according to the behaviour in HWC 2.x. Otherwise, validateDisplay() could be called without calling presentDisplay() afterward. Bug: 241060812 Test: open/close apps Change-Id: I4a210b95bee76384a1fce8b8fec2d02c8c1311d2
2022-03-01Merge "hwc3: support SDR dimming in linear or gamma space" into tm-devLong Ling
2022-02-25hwc3: support SDR dimming in linear or gamma spaceLong Ling
Move SDR dimming to displaycolor. Report dimming stage to SF. Bug: 218954037 Change-Id: Ieacbd427e0d5894c6b0754574af08631d5859f92
2022-02-25hwc3: add support of blocking region for RCD layersYichi Chen
Blocking region for RCD is supported to save the memory bandwidth. The patch creates basic support to store the value in exynos_win_config_data. Bug: 214560831 Test: VtsHalGraphicsComposer3_TargetTest Change-Id: I5b350ec4736f60b49fed5db3756169a156bb42dd
2022-02-23Composer reports dimming ratio for client composition instead of nitsAlec Mouri
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
2022-02-10Change meaning of white point nits to mean a dimming ratioAlec Mouri
SF now computes the desired dimming ratio itself, and sends it to HWC. Bug: 217961164 Test: builds Change-Id: Ifeb6f0e0a28404ad61b81d9e86375530997c5e54
2022-01-12Merge "hwc3: support SDR and HDR blending"Long Ling
2022-01-11hwc3: support SDR and HDR blendingLong Ling
Add support for setLayerWhitePointNits, setClientTargetWhitePointNits and setDisplayBrightness commands. Bug: 196171661 Change-Id: I5b2c5510ae758805396e678f1e2d5c4ea1e716b5
2022-01-10hwc3: remove floatColor from LayerCommandAdy Abraham
Currently not used. Bug: 207139550 Test: VTS Change-Id: I480081e246335a7909aa34a1350d2a6c8e7ee58a
2022-01-10HWC3 adjustments for display brightnessAlec Mouri
Specifically, WhitePointNits is has been renamed to Luminance and there is now a DisplayBrightness payload, so the AIDL includes need to be changed and the old setDisplayBrightness method should be removed. Bug: 210151839 Test: builds Change-Id: Ibf12337b0b9115ea765279676f8f98c8171fb65a
2022-01-04hwc3: create the interface for expectedPresentTimeYichi Chen
The expectedPresentTime is an optional value specified in validateDisplay and presentOrValidateDisplay. The patch creates the proper command dispatchers to read the information only in the two functions. A warning message will show if the expectedPresentTime is provided multiple times within one frame update. Bug: 198186194 Test: VtsHalGraphicsComposer3_TargetTest Change-Id: Ifff31202bef3297c1ddc28189ed301a7f6175695
2021-12-23Merge "Remove GenericMetadata from composer3"Ady Abraham
2021-12-21Remove GenericMetadata from composer3Ady Abraham
There are no current users for GenericMetadata, so removing from composer 3. Bug: 209691612 Test: VTS Change-Id: Ie2d1787e0bb6c9bf08e55254f5697a7ec6112d2c
2021-12-21hwc3: DisplayCommand.colorTransform is just a matrixAdy Abraham
Remove the hint from DisplayCommand.colorTransform as currently we only use ColorTransform::IDENTITY and ColorTransform::ARBITRARY_MATRIX, which both can be expressed using a matrix. Bug: 208879711 Test: VTS Change-Id: If35d0f1dcc17983d75adb95d63b423799cce064a
2021-12-15cleanup CommandWriterBaseAdy Abraham
Move the service specific code to the service repository Bug: 208856704 Test: VTS Change-Id: I30532cf715d8efe855f34a6b424c4e1a60e4ce93
2021-12-07hwc3: LayerCommand moved to DisplayCommandAdy Abraham
Bug: 206117357 Test: VTS Change-Id: Iaecc57aa03c3f5c37ff02b3ba1aedb9ccf169c9a
2021-12-02hwc3: remove message queueLong Ling
Bug: 206117357 Change-Id: Iec7aa67aa09e1866f30a89191d0359a0da7eaa52
2021-11-10hwc: migrate to composer3Long Ling
Bug: 201321174 Change-Id: I31834ad240c89f25427958f887a3c5015e9cb535