summaryrefslogtreecommitdiff
path: root/hwc3/ComposerClient.cpp
AgeCommit message (Collapse)Author
2023-03-23Remove references to MULTI_THREADED_PRESENTLeon Scroggins III
This feature isn't yet used, so remove it until we actually use it in the next release. Bug: 274954820 Test: make Change-Id: I960b3cce292e07b3b7e601e2bdd5019acf34dafc
2023-03-02hwc3: add support for refresh rate indicator callbackWiwit Rifa'i
This will add support in HWC to expose the refresh rate in panel to SF using HWC3 callback API so that SF can update the refresh rate overlay indicator to the actual refresh rate in the panel. HWC will monitor the panel refresh rate based on some sysfs nodes. Bug: 267825022 Test: enable refresh rate indicator, wait for idle, AOD Change-Id: Ibc80d66eae6b21c3cf84d35fa819e97ccc509ede
2023-02-15Merge "Update setHdrConversionStrategy to return the preferredHdrOutput type"Kriti Dang
2023-02-13[HWC3] native implementation forramindani
setRefreshRateChangedCallbackDebugEnabled Add onRefreshRateChangedDebug Test: Device boots BUG: 202734676 Change-Id: I079e13fcf2bd0872c8f29468fc2ef311b9774d10
2023-02-09Update setHdrConversionStrategy to return the preferredHdrOutput typeKriti Dang
Bug: 268336382 Test: m Change-Id: I790733b9fcdb5e4c4724a512528023a3daa95a53
2023-01-17Merge "Add HDR output control APIs implementation in hwc3"Kriti Dang
2023-01-17Merge "hwc3: Primary displays supports MULTI_THREADED_PRESENT"Joen Chen
2023-01-12Add HDR output control APIs implementation in hwc3Kriti Dang
Bug: 251168514 Test: m Change-Id: I95710e1a0a1caed2974520ae2b61eafafa2d3cf2
2022-12-12hwc3: add display param to function traces and debug logsWiwit Rifa'i
To support debugging and tracing for multi-displays, it would be easier if we include the display parameter in function traces and debug logs. Bug: 245533789 Test: Perfetto trace and logcat Change-Id: I783937175ff1de84d7139acba04676fa31408cc8
2022-12-01hwc3: Primary displays supports MULTI_THREADED_PRESENTjoenchen
After primary displays supports this capability, SurfaceFlinger can run executeCommands(presentDisplay) for this display concurrently with other displays with the same capability. Bug: 247074458 Test: switch applications Change-Id: I55c4fe2d38f412f0e98b46502a99c90943cefbcc
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-10-03hwc3: Add getOverlaySupport()Sally Qi
Bug: 242588489 Test: atest VtsHalGraphicsComposer3_TargetTest Change-Id: I505a76213549c3ff613c93c707cd01777801455d
2022-03-02hwc3: fix null dereference of outDimmingStage in validateDisplay()Wiwit Rifa'i
We should not pass nullptr to outDimmingStage parameter to validateDisplay() since it will eventually be dereferenced inside validateDisplay(). Bug: 222153332 Test: build Change-Id: I510eb3ef5525cb148cbc9bad116acbadc2fa0f5f
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-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-17Revert "Revert "libhwc2.1: support setIdleTimerEnabled""Midas Chien
This reverts commit 13c602ef2fa6ec36e9ec02633ec7727fd4427d3c. Reason for revert: avc denied is addressed in another patch Bug: 219857957 Bug: 198808492 Test: composer access panel_idle withou avc denied Change-Id: If1753cde988d8e2c755168bbc174da9faf138b91
2022-02-16Revert "libhwc2.1: support setIdleTimerEnabled"Shubham Dubey
This reverts commit 91700d7c6e6cea728e3d8525745ddbf8a0517c98. Reason for revert: Introduced untracked linux denials BUG: 219857957 Change-Id: I924352333ff3c36e971c11a8f48831ab5cac75b3
2022-02-15libhwc2.1: support setIdleTimerEnabledMidas Chien
Implement setIdleTimerEnabled to control kernel idle timer via HWC API. Bug: 198808492 Test: VTS (--gtest_filter=*SetIdleTimerEnabled_*) Test: check idle_delay_ms from sysnode match what HWC set Change-Id: Ia222101a4f0e440db3daf03cd798bf2e748259a5
2022-02-08hwc: Implement getDisplayDecorationSupportLeon Scroggins III
I27f119f927b23052c5fd8f068cbca75338fe7b91 adds a new method for determining how the display supports DISPLAY_DECORATION layers. It also removes DisplayCapability.DISPLAY_DECORATION. Update to the new APIs. Bug: 216644902 Test: make Change-Id: I0c2fbc78cf5e4e97cede4762699a1ecc98620919
2022-02-08hwc: correct the functionality of getDisplayCapabilitiesYichi Chen
Since BRIGHTNESS and DOZE have been included in getDisplayCapabilities, we don't need to call the original support function individually. Bug: 216118058 Test: atest VtsHalGraphicsComposer3_TargetTest Change-Id: I85932e9d050813c9d2b89bef5783900fbd4c88f9
2022-02-08hwc: declare the support of DISPLAY_DECORATION in DisplayCapabilityYichi Chen
The display reports the support DISPLAY_DECORATION when rcdConfigs are created during initDisplayInterface. Bug: 193171134 Test: enable RCD layer from DisplayCapability Change-Id: I53dbbc21e6c3fc02e68f6d7cf37cccf97ddf7617
2022-01-20hwc3: add setIdleTimerEnabled and vsyncIdle callbackMidas Chien
Bug: 194068871 Bug: 198808492 Test: build, vts Change-Id: Ia55c4069246d3aac08b8f0ec5653bbdc684db42c
2022-01-19Merge "hwc3: add getDisplayPhysicalOrientation"Ady Abraham
2022-01-19hwc3: add getDisplayPhysicalOrientationAdy Abraham
Test: VTS Bug: 213237830 Change-Id: I5d5e874841faee662d0c50537b6b765e5b600e01
2022-01-13Add boot time display mode APIs implementation in hwc3Kriti Dang
Bug: 203520442 Test: m Change-Id: I8ddf502f4b506040f9657eb362fe53cbbbedac66
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 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
2021-12-28hwc3: set setInheritRt on Composer and ComposerClientYichi Chen
In Composer3, the binder interface was changed from hwbinder to libinder due to the interface change from HIDL to AIDL. Unlike hwbinder, inherit real-time priority is not a default behavior in libbinder. The patch overrides the createBinder() for IComposer and IComposerClient to set InheritRt properly when their binders are created. Bug: 211720161 Test: Check the real-time priority on composer service. Change-Id: Ie2ead837b1157284d7764d83878e895a37d6c330
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-09hwc3: remove getDisplayBrightnessSupport and getDozeSupportAdy Abraham
Bug: 209889459 Test: VTS Change-Id: I7d4628b156f9adab0194e0dab5d14bd7ed854477
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-17hwc3: update return codeLong Ling
Bug: 206690544 Change-Id: I265718cc26f8416f6fd15c9225d02a372488b0fb
2021-11-10hwc: migrate to composer3Long Ling
Bug: 201321174 Change-Id: I31834ad240c89f25427958f887a3c5015e9cb535