1
0
Fork 0
android_external_drm_hwcomp.../compositor
Drew Davenport 2432cb0dfa drm_hwcomposer: Update FlatteningController behavior
Under the previous behavior, NewFrame both updated the internal state
tracking to indicate that the scene is not idle, as well as returning a
bool to indicate whether the scene should be flattened or not.
ShouldFlatten was not being used, and would return `true` during the
interval between the refresh callback being triggered and the next
NewFrame, which would be in response to the refresh callback. Subsequent
calls to ShouldFlatten would return `false` even though the scene
remains idle.

This commit updates NewFrame to only update the internal state. Callers
should call ShouldFlatten to check whether the controller has detected
that the scene should be flattened.

After the callback is triggered, ShouldFlatten returns true. It will
continue to return true after the first NewFrame, which would be in
response to the refresh callback. Subsequent NewFrame calls will reset
the idle detection.

Change-Id: I8b11a55bb6b101bb2ce473a844f5b9795a027956
2025-09-19 16:56:55 -06:00
..
DisplayInfo.h drm_hwcomposer: Migrate to android::drm_hwcomposer namespace 2025-09-08 18:53:00 +00:00
DrmKmsPlan.cpp drm_hwcomposer: Migrate to android::drm_hwcomposer namespace 2025-09-08 18:53:00 +00:00
DrmKmsPlan.h drm_hwcomposer: Migrate to android::drm_hwcomposer namespace 2025-09-08 18:53:00 +00:00
FlatteningController.cpp drm_hwcomposer: Update FlatteningController behavior 2025-09-19 16:56:55 -06:00
FlatteningController.h drm_hwcomposer: Update FlatteningController behavior 2025-09-19 16:56:55 -06:00
LayerData.h drm_hwcomposer: Add Rect utility type 2025-09-10 13:41:51 +00:00