Lines Matching refs:ivilayer
135 struct ivi_layout_layer *ivilayer; in get_layer() local
137 wl_list_for_each(ivilayer, layer_list, link) { in get_layer()
138 if (ivilayer->id_layer == id_layer) { in get_layer()
139 return ivilayer; in get_layer()
169 ivi_view_create(struct ivi_layout_layer *ivilayer, in ivi_view_create() argument
197 ivi_view->on_layer = ivilayer; in ivi_view_create()
198 wl_list_insert(&ivilayer->layout->view_list, in ivi_view_create()
210 get_ivi_view(struct ivi_layout_layer *ivilayer, in get_ivi_view() argument
218 if (ivi_view->on_layer == ivilayer) in get_ivi_view()
341 update_opacity(struct ivi_layout_layer *ivilayer, in update_opacity() argument
345 double layer_alpha = wl_fixed_to_double(ivilayer->prop.opacity); in update_opacity()
500 struct ivi_layout_layer *ivilayer, in calc_surface_to_global_matrix_and_mask_to_weston_surface() argument
506 const struct ivi_layout_layer_properties *lp = &ivilayer->prop; in calc_surface_to_global_matrix_and_mask_to_weston_surface()
579 struct ivi_layout_layer *ivilayer = ivi_view->on_layer; in update_prop() local
580 struct ivi_layout_screen *iviscrn = ivilayer->on_screen; in update_prop()
585 if (!ivilayer->prop.event_mask && !ivisurf->prop.event_mask) { in update_prop()
592 update_opacity(ivilayer, ivisurf, ivi_view->view); in update_prop()
609 iviscrn, ivilayer, ivisurf, &ivi_view->transform.matrix, &r); in update_prop()
761 struct ivi_layout_layer *ivilayer = NULL; in commit_layer_list() local
764 wl_list_for_each(ivilayer, &layout->layer_list, link) { in commit_layer_list()
765 if (ivilayer->pending.prop.transition_type == IVI_LAYOUT_TRANSITION_LAYER_MOVE) { in commit_layer_list()
766 …ivi_layout_transition_move_layer(ivilayer, ivilayer->pending.prop.dest_x, ivilayer->pending.prop.d… in commit_layer_list()
767 } else if (ivilayer->pending.prop.transition_type == IVI_LAYOUT_TRANSITION_LAYER_FADE) { in commit_layer_list()
768 ivi_layout_transition_fade_layer(ivilayer,ivilayer->pending.prop.is_fade_in, in commit_layer_list()
769 ivilayer->pending.prop.start_alpha,ivilayer->pending.prop.end_alpha, in commit_layer_list()
771 ivilayer->pending.prop.transition_duration); in commit_layer_list()
773 ivilayer->pending.prop.transition_type = IVI_LAYOUT_TRANSITION_NONE; in commit_layer_list()
775 ivilayer->prop = ivilayer->pending.prop; in commit_layer_list()
777 if (!ivilayer->order.dirty) { in commit_layer_list()
781 wl_list_for_each_safe(ivi_view, next, &ivilayer->order.view_list, in commit_layer_list()
788 assert(wl_list_empty(&ivilayer->order.view_list)); in commit_layer_list()
790 wl_list_for_each(ivi_view, &ivilayer->pending.view_list, in commit_layer_list()
793 wl_list_insert(&ivilayer->order.view_list, &ivi_view->order_link); in commit_layer_list()
797 ivilayer->order.dirty = 0; in commit_layer_list()
805 struct ivi_layout_layer *ivilayer = NULL; in commit_screen_list() local
810 wl_list_for_each_safe(ivilayer, next, in commit_screen_list()
812 ivilayer->on_screen = NULL; in commit_screen_list()
813 wl_list_remove(&ivilayer->order.link); in commit_screen_list()
814 wl_list_init(&ivilayer->order.link); in commit_screen_list()
815 ivilayer->prop.event_mask |= IVI_NOTIFICATION_REMOVE; in commit_screen_list()
820 wl_list_for_each(ivilayer, &iviscrn->pending.layer_list, in commit_screen_list()
823 wl_list_remove(&ivilayer->order.link); in commit_screen_list()
826 &ivilayer->order.link); in commit_screen_list()
827 ivilayer->on_screen = iviscrn; in commit_screen_list()
828 ivilayer->prop.event_mask |= IVI_NOTIFICATION_ADD; in commit_screen_list()
840 struct ivi_layout_layer *ivilayer; in build_view_list() local
855 wl_list_for_each(ivilayer, &iviscrn->order.layer_list, order.link) { in build_view_list()
856 if (ivilayer->prop.visibility == false) in build_view_list()
859 wl_list_for_each(ivi_view, &ivilayer->order.view_list, order_link) { in build_view_list()
896 send_layer_prop(struct ivi_layout_layer *ivilayer) in send_layer_prop() argument
898 wl_signal_emit(&ivilayer->property_changed, ivilayer); in send_layer_prop()
899 ivilayer->pending.prop.event_mask = 0; in send_layer_prop()
905 struct ivi_layout_layer *ivilayer = NULL; in send_prop() local
908 wl_list_for_each_reverse(ivilayer, &layout->layer_list, link) { in send_prop()
909 if (ivilayer->prop.event_mask) in send_prop()
910 send_layer_prop(ivilayer); in send_prop()
920 clear_view_pending_list(struct ivi_layout_layer *ivilayer) in clear_view_pending_list() argument
926 &ivilayer->pending.view_list, pending_link) { in clear_view_pending_list()
1033 ivi_layout_get_id_of_layer(struct ivi_layout_layer *ivilayer) in ivi_layout_get_id_of_layer() argument
1035 return ivilayer->id_layer; in ivi_layout_get_id_of_layer()
1042 struct ivi_layout_layer *ivilayer = NULL; in ivi_layout_get_layer_from_id() local
1044 wl_list_for_each(ivilayer, &layout->layer_list, link) { in ivi_layout_get_layer_from_id()
1045 if (ivilayer->id_layer == id_layer) { in ivi_layout_get_layer_from_id()
1046 return ivilayer; in ivi_layout_get_layer_from_id()
1083 ivi_layout_get_properties_of_layer(struct ivi_layout_layer *ivilayer) in ivi_layout_get_properties_of_layer() argument
1085 if (ivilayer == NULL) { in ivi_layout_get_properties_of_layer()
1090 return &ivilayer->prop; in ivi_layout_get_properties_of_layer()
1094 ivi_layout_get_screens_under_layer(struct ivi_layout_layer *ivilayer, in ivi_layout_get_screens_under_layer() argument
1101 if (ivilayer == NULL || pLength == NULL || ppArray == NULL) { in ivi_layout_get_screens_under_layer()
1106 if (ivilayer->on_screen != NULL) in ivi_layout_get_screens_under_layer()
1117 (*ppArray)[n++] = ivilayer->on_screen->output; in ivi_layout_get_screens_under_layer()
1129 struct ivi_layout_layer *ivilayer = NULL; in ivi_layout_get_layers() local
1148 wl_list_for_each(ivilayer, &layout->layer_list, link) { in ivi_layout_get_layers()
1149 (*ppArray)[n++] = ivilayer; in ivi_layout_get_layers()
1164 struct ivi_layout_layer *ivilayer = NULL; in ivi_layout_get_layers_on_screen() local
1184 wl_list_for_each(ivilayer, &iviscrn->order.layer_list, order.link) { in ivi_layout_get_layers_on_screen()
1185 (*ppArray)[n++] = ivilayer; in ivi_layout_get_layers_on_screen()
1270 ivi_layout_get_surfaces_on_layer(struct ivi_layout_layer *ivilayer, in ivi_layout_get_surfaces_on_layer() argument
1278 if (ivilayer == NULL || pLength == NULL || ppArray == NULL) { in ivi_layout_get_surfaces_on_layer()
1283 length = wl_list_length(&ivilayer->order.view_list); in ivi_layout_get_surfaces_on_layer()
1293 wl_list_for_each(ivi_view, &ivilayer->order.view_list, order_link) { in ivi_layout_get_surfaces_on_layer()
1308 struct ivi_layout_layer *ivilayer = NULL; in ivi_layout_layer_create_with_dimension() local
1310 ivilayer = get_layer(&layout->layer_list, id_layer); in ivi_layout_layer_create_with_dimension()
1311 if (ivilayer != NULL) { in ivi_layout_layer_create_with_dimension()
1313 ++ivilayer->ref_count; in ivi_layout_layer_create_with_dimension()
1314 return ivilayer; in ivi_layout_layer_create_with_dimension()
1317 ivilayer = calloc(1, sizeof *ivilayer); in ivi_layout_layer_create_with_dimension()
1318 if (ivilayer == NULL) { in ivi_layout_layer_create_with_dimension()
1323 ivilayer->ref_count = 1; in ivi_layout_layer_create_with_dimension()
1324 wl_signal_init(&ivilayer->property_changed); in ivi_layout_layer_create_with_dimension()
1325 ivilayer->layout = layout; in ivi_layout_layer_create_with_dimension()
1326 ivilayer->id_layer = id_layer; in ivi_layout_layer_create_with_dimension()
1328 init_layer_properties(&ivilayer->prop, width, height); in ivi_layout_layer_create_with_dimension()
1330 wl_list_init(&ivilayer->pending.view_list); in ivi_layout_layer_create_with_dimension()
1331 wl_list_init(&ivilayer->pending.link); in ivi_layout_layer_create_with_dimension()
1332 ivilayer->pending.prop = ivilayer->prop; in ivi_layout_layer_create_with_dimension()
1334 wl_list_init(&ivilayer->order.view_list); in ivi_layout_layer_create_with_dimension()
1335 wl_list_init(&ivilayer->order.link); in ivi_layout_layer_create_with_dimension()
1337 wl_list_insert(&layout->layer_list, &ivilayer->link); in ivi_layout_layer_create_with_dimension()
1339 wl_signal_emit(&layout->layer_notification.created, ivilayer); in ivi_layout_layer_create_with_dimension()
1341 return ivilayer; in ivi_layout_layer_create_with_dimension()
1345 ivi_layout_layer_destroy(struct ivi_layout_layer *ivilayer) in ivi_layout_layer_destroy() argument
1350 if (ivilayer == NULL) { in ivi_layout_layer_destroy()
1355 if (--ivilayer->ref_count > 0) in ivi_layout_layer_destroy()
1360 if (ivi_view->on_layer == ivilayer) in ivi_layout_layer_destroy()
1364 wl_signal_emit(&layout->layer_notification.removed, ivilayer); in ivi_layout_layer_destroy()
1366 wl_list_remove(&ivilayer->pending.link); in ivi_layout_layer_destroy()
1367 wl_list_remove(&ivilayer->order.link); in ivi_layout_layer_destroy()
1368 wl_list_remove(&ivilayer->link); in ivi_layout_layer_destroy()
1370 free(ivilayer); in ivi_layout_layer_destroy()
1374 ivi_layout_layer_set_visibility(struct ivi_layout_layer *ivilayer, in ivi_layout_layer_set_visibility() argument
1379 if (ivilayer == NULL) { in ivi_layout_layer_set_visibility()
1384 prop = &ivilayer->pending.prop; in ivi_layout_layer_set_visibility()
1387 if (ivilayer->prop.visibility != newVisibility) in ivi_layout_layer_set_visibility()
1396 ivi_layout_layer_set_opacity(struct ivi_layout_layer *ivilayer, in ivi_layout_layer_set_opacity() argument
1401 if (ivilayer == NULL || in ivi_layout_layer_set_opacity()
1408 prop = &ivilayer->pending.prop; in ivi_layout_layer_set_opacity()
1411 if (ivilayer->prop.opacity != opacity) in ivi_layout_layer_set_opacity()
1420 ivi_layout_layer_set_source_rectangle(struct ivi_layout_layer *ivilayer, in ivi_layout_layer_set_source_rectangle() argument
1426 if (ivilayer == NULL) { in ivi_layout_layer_set_source_rectangle()
1431 prop = &ivilayer->pending.prop; in ivi_layout_layer_set_source_rectangle()
1437 if (ivilayer->prop.source_x != x || ivilayer->prop.source_y != y || in ivi_layout_layer_set_source_rectangle()
1438 ivilayer->prop.source_width != width || in ivi_layout_layer_set_source_rectangle()
1439 ivilayer->prop.source_height != height) in ivi_layout_layer_set_source_rectangle()
1448 ivi_layout_layer_set_destination_rectangle(struct ivi_layout_layer *ivilayer, in ivi_layout_layer_set_destination_rectangle() argument
1454 if (ivilayer == NULL) { in ivi_layout_layer_set_destination_rectangle()
1459 prop = &ivilayer->pending.prop; in ivi_layout_layer_set_destination_rectangle()
1465 if (ivilayer->prop.dest_x != x || ivilayer->prop.dest_y != y || in ivi_layout_layer_set_destination_rectangle()
1466 ivilayer->prop.dest_width != width || in ivi_layout_layer_set_destination_rectangle()
1467 ivilayer->prop.dest_height != height) in ivi_layout_layer_set_destination_rectangle()
1476 ivi_layout_layer_set_render_order(struct ivi_layout_layer *ivilayer, in ivi_layout_layer_set_render_order() argument
1483 if (ivilayer == NULL) { in ivi_layout_layer_set_render_order()
1488 clear_view_pending_list(ivilayer); in ivi_layout_layer_set_render_order()
1491 ivi_view = get_ivi_view(ivilayer, pSurface[i]); in ivi_layout_layer_set_render_order()
1493 ivi_view = ivi_view_create(ivilayer, pSurface[i]); in ivi_layout_layer_set_render_order()
1498 wl_list_insert(&ivilayer->pending.view_list, &ivi_view->pending_link); in ivi_layout_layer_set_render_order()
1501 ivilayer->order.dirty = 1; in ivi_layout_layer_set_render_order()
1669 struct ivi_layout_layer *ivilayer = NULL; in ivi_layout_screen_set_render_order() local
1680 wl_list_for_each_safe(ivilayer, next, in ivi_layout_screen_set_render_order()
1682 wl_list_remove(&ivilayer->pending.link); in ivi_layout_screen_set_render_order()
1683 wl_list_init(&ivilayer->pending.link); in ivi_layout_screen_set_render_order()
1739 ivi_layout_layer_add_listener(struct ivi_layout_layer *ivilayer, in ivi_layout_layer_add_listener() argument
1742 if (ivilayer == NULL || listener == NULL) { in ivi_layout_layer_add_listener()
1747 wl_signal_add(&ivilayer->property_changed, listener); in ivi_layout_layer_add_listener()
1764 ivi_layout_layer_add_surface(struct ivi_layout_layer *ivilayer, in ivi_layout_layer_add_surface() argument
1769 if (ivilayer == NULL || addsurf == NULL) { in ivi_layout_layer_add_surface()
1774 ivi_view = get_ivi_view(ivilayer, addsurf); in ivi_layout_layer_add_surface()
1776 ivi_view = ivi_view_create(ivilayer, addsurf); in ivi_layout_layer_add_surface()
1779 wl_list_insert(&ivilayer->pending.view_list, &ivi_view->pending_link); in ivi_layout_layer_add_surface()
1781 ivilayer->order.dirty = 1; in ivi_layout_layer_add_surface()
1787 ivi_layout_layer_remove_surface(struct ivi_layout_layer *ivilayer, in ivi_layout_layer_remove_surface() argument
1792 if (ivilayer == NULL || remsurf == NULL) { in ivi_layout_layer_remove_surface()
1797 ivi_view = get_ivi_view(ivilayer, remsurf); in ivi_layout_layer_remove_surface()
1802 ivilayer->order.dirty = 1; in ivi_layout_layer_remove_surface()
1874 ivi_layout_layer_set_transition(struct ivi_layout_layer *ivilayer, in ivi_layout_layer_set_transition() argument
1878 if (ivilayer == NULL) { in ivi_layout_layer_set_transition()
1883 ivilayer->pending.prop.transition_type = type; in ivi_layout_layer_set_transition()
1884 ivilayer->pending.prop.transition_duration = duration; in ivi_layout_layer_set_transition()
1890 ivi_layout_layer_set_fade_info(struct ivi_layout_layer* ivilayer, in ivi_layout_layer_set_fade_info() argument
1894 if (ivilayer == NULL) { in ivi_layout_layer_set_fade_info()
1899 ivilayer->pending.prop.is_fade_in = is_fade_in; in ivi_layout_layer_set_fade_info()
1900 ivilayer->pending.prop.start_alpha = start_alpha; in ivi_layout_layer_set_fade_info()
1901 ivilayer->pending.prop.end_alpha = end_alpha; in ivi_layout_layer_set_fade_info()
2125 struct ivi_layout_layer *ivilayer = NULL; in output_destroyed_event() local
2136 wl_list_for_each_safe(ivilayer, next, in output_destroyed_event()
2138 ivi_layout_layer_destroy(ivilayer); in output_destroyed_event()
2257 struct ivi_layout_layer *ivilayer = NULL; in destroy_virtual_screen() local
2264 wl_list_for_each_safe(ivilayer, next, in destroy_virtual_screen()
2266 ivi_layout_layer_destroy(ivilayer); in destroy_virtual_screen()
2283 struct ivi_layout_layer *ivilayer = NULL; in screen_clone() local
2293 wl_list_for_each(ivilayer, in screen_clone()
2295 ivilayer_new = ivi_layout_get_layer_from_id(ivilayer->id_layer + screen_id_to); in screen_clone()
2298 ivilayer->id_layer + screen_id_to, in screen_clone()
2310 wl_list_for_each(iviview, &ivilayer->order.view_list, order_link) { in screen_clone()
2323 struct ivi_layout_layer *ivilayer = NULL; in screen_clear() local
2331 wl_list_for_each(ivilayer, in screen_clear()
2334 &ivilayer->order.view_list, order_link) { in screen_clear()
2335 ivi_layout_layer_remove_surface(ivilayer, iviview->ivisurf); in screen_clear()