summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_callbacks.cpp
AgeCommit message (Collapse)Author
2020-07-03composer: Add lock for callback functionsAshish Kumar
Add mutex lock in register API and callback event so that it could wait for the callback event to finish. Change-Id: Id28e8b0a5b2200e76e0c6c5bb6a4245b4d3871e5 CRs-Fixed: 2714760
2020-05-19hwc2: Register Composer 2.4 callbacksPadmanabhan Komanduru
Register SEAMLESS_POSSIBLE callback for Composer 2.4. Change-Id: Iafbd37833df7d89e1d4d8fbc6efb3d2ba033dcee
2020-05-19hwc2: Add VRR related Composer 2.4 APIsPadmanabhan Komanduru
Define SetActiveConfigWithConstraints and GetDisplayVsyncPeriod APIs for VRR on Composer 2.4 . Change-Id: Id64e71a9756e183b1d47a285fb6be0cae9ca046e
2019-05-02hwc2: enable the vsync on the display requested by SFPadmanabhan Komanduru
-- Avoid calculating the next vsync source based on the active display list in hwc2. -- Enable/disable the vsync on the HWC display as requested by SurfaceFlinger. Change-Id: I901be3d06ad1102d30232e6fb8dbb0d1709b5a68 CRs-fixed: 2429625
2019-04-18hwc2: Avoid drawcycles with non-empty dirty regionPadmanabhan Komanduru
--Reject drawcycle if following conditions are met. 1. No change in layerstack attributes. 2. No new buffer latched. 3. No refresh request triggered by HWC. 4. This display is not source of vsync. --Do not return Present failed error if display is inactive. SF wouldn't query for release fence upon errors. CRs-Fixed: 2354696 Change-Id: I28174a09f4b5046d25c953f568f981fdb80b42a8
2018-07-18hwc2: Switch vsync source to next active displaySrinivas Pullakavi
- Source vsyncs from next active display among builtin displays when primary display is powered off. - Report back vsync timestamps as primary to the client. - Source vsyncs back from primary display when the display is powered on again. CRs-Fixed: 2200594 Change-Id: I453d7e19d982dadbfe5ff7b024a9ddc703578be3
2017-08-09hwc2: Add more tracingNaseer Ahmed
Bug: 63626797 Change-Id: I702e886904ed8823f1b73eeed494fba76f7f469b
2017-08-04hwc2: Wait for RegisterCallback() from SF before sending events.Ramkumar Radhakrishnan
Surfaceflinger registers callback functions to be called from hwcomposer on specific events like hotplug, vsync and screen refresh. since surfaceflinger and hwcomposer are two different processes that can run asynchronously. This causes hwcomposer to send an event to surfaceflinger before surfaceflinger registers callback and results in undefined behavior. So wait for callbacks to get registered by surfaceflinger and send an event to surfacelinger. Change-Id: I288e4d7dde8179cb4a119cdedad2877344c06dae CRs-Fixed: 2085392
2016-04-28hwc: HWC 2.0 implementationNaseer Ahmed
Add HWCLayer, HWCCallbacks and implement HWC2 layer functionality. Change-Id: Ic7764e72f4cae534e68764df4cf80eb3db982071