hmi-controller: remove duplicate commit_changes in random mode
Previous code cleaned up surfaces in layer once and then added surfaces to a layer in random. In this flow, two commitchanges are required. Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> [WATARU_NATSUME@xddp.denso.co.jp: Removes unnecessary check] Signed-off-by: Wataru Natsume <WATARU_NATSUME@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
committed by
Pekka Paalanen
parent
7e7f793174
commit
161255ea49
@@ -424,18 +424,9 @@ mode_random_replace(struct hmi_controller *hmi_ctrl,
|
|||||||
|
|
||||||
wl_list_for_each(application_layer, layer_list, link) {
|
wl_list_for_each(application_layer, layer_list, link) {
|
||||||
layers[layer_idx] = application_layer;
|
layers[layer_idx] = application_layer;
|
||||||
ivi_layout_interface->layer_set_render_order(layers[layer_idx]->ivilayer,
|
|
||||||
NULL, 0);
|
|
||||||
layer_idx++;
|
layer_idx++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* This commit change is needed because ivisurface can not belongs to several layers
|
|
||||||
* at the same time. So ivisurfaces shall be removed from layers once and then set them
|
|
||||||
* to layers randomly.
|
|
||||||
*/
|
|
||||||
ivi_layout_interface->commit_changes();
|
|
||||||
|
|
||||||
for (i = 0; i < surface_length; i++) {
|
for (i = 0; i < surface_length; i++) {
|
||||||
ivisurf = pp_surface[i];
|
ivisurf = pp_surface[i];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user