composer: few changes for refresh rate switching
- getDisplayConfigs is required to remain backward compatible with composer@2.3 and older versions. To keep it that way a new config attribute was added to group similar configs. - getSupportedDisplayVsyncPeriods was removed as the vsync period can be obtained by getDisplayAttribute for each individual config. - renamed setActiveConfigAndVsyncPeriod -> setActiveConfigWithConstraints to better describe what this function does. - added VsyncPeriodChangeTimeline and onVsyncPeriodTimingChanged With these changes composer is expected to return all possible configurations when getDisplayConfigs (similar to older composer versions). The client knows whether a seamless vsync period is possible or not by the config groups. Test: rev up composer to 2.4 and test refresh rate switching Bug: 141329414 Change-Id: I1b4525f7e00b62cdaf260274abe4a6a5962ed1ab
Loading
Please register or sign in to comment