You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Video layer, protected or non-protected, need to use
device composition, meanwhile hwc can use overlay planes,
so just layers number is not greater than available
planes number, hwc ensure use device composition for
video layer.
This commit target is to ensure use device composition
for video layer if layers number is greater than
available planes number.
The main logic code is in GetExtraClientRange2.
When device_size is less than or equal to avail_planes,
besides the planes used to compose video layer, the
remaining planes also need to be used to compose other
layers. GetExtraClientRange2 will return client_start,
client_size, then ValidateDisplay will set the client
composition according to client_start and client_size,
and the rest is device composition.
Because the number of available planes is limited,
GetExtraClientRange2 mainly do parameter checks under
this condition.
For example:
GetExtraClientRange2 before
z_order type format
0
1
2 client
3 client
4 device video
5
6
7
GetExtraClientRange2 after
z_order type format
0 client
1 client
2 client
3 client
4 device video
5 device
6 device
7 device
z_order 2 and 3 are confirmed to use client composition
by IsClientLayer. z_order 4 is the video layer, which
needs device compsition. There are only 4 available planes,
and the remaining 3 planes can be used for z_order 5, 6, 7.
GetExtraClientRange2 returns client_start(0), client_size(4),
and then MarkValidated will set 0~3 client composition and
4~7 device composition.
Tracked-On: OAM-123606
Signed-off-by: Li, HaihongX <[email protected]>
0 commit comments