if (output->zoom_set)
{
/* commit only primary */
- if (!fb_commit)
- {
- ERR("fb_commit is failed.");
- return EINA_FALSE;
- }
-
- /* do not execute the tdm functions */
- e_plane_activation_set(plane, EINA_FALSE);
-
- if (!e_plane_fetch(plane))
- {
- ERR("fail to fetch the plane.");
- return EINA_FALSE;
- }
+ if (!fb_commit) return EINA_TRUE;
- if (!e_plane_zoom_commit(plane))
+ /* zoom commit */
+ if (!e_plane_zoom_commit(fb_target))
ERR("fail to e_plane_zoom_commit");
}
else
/* skip the fb_target fetch because we do this previously */
if (e_plane_is_fb_target(plane)) continue;
- /* execute the tdm functions */
- e_plane_activation_set(plane, EINA_TRUE);
-
/* if the plane is the candidate to unset,
set the plane to be unset_try */
if (e_plane_is_unset_candidate(plane))
e_plane_renderer_show_state(plane->renderer);
}
-EINTERN void
-e_plane_activation_set(E_Plane *plane, Eina_Bool set)
-{
- EINA_SAFETY_ON_NULL_RETURN(plane);
-
- if (plane->activation == set) return;
-
- plane->activation = set;
-
- ELOGF("E_PLANE", "Plane(%p) activation set to be %s",
- NULL, NULL, plane, set?"True":"False");
-}
-
static Eina_Bool
_e_plane_zoom_set_pp_info(E_Plane *plane)
{
(plane->zoom_rect_temp.w == rect->w) && (plane->zoom_rect_temp.h == rect->h))
return EINA_TRUE;
- if (plane->zoom_unset) plane->zoom_unset = EINA_FALSE;
-
e_comp_screen = e_comp->e_comp_screen;
e_output_size_get(plane->output, &w, &h);
plane->zoom_rect_temp.w = rect->w;
plane->zoom_rect_temp.h = rect->h;
+ plane->zoom_unset = EINA_FALSE;
+ plane->activation = EINA_FALSE;
+
return EINA_TRUE;
fail:
plane->zoom_rect.h = plane->zoom_rect_temp.h = 0;
plane->zoom_unset = EINA_TRUE;
+ plane->activation = EINA_TRUE;
}
EINTERN Eina_Bool e_plane_is_unset_try(E_Plane *plane);
EINTERN void e_plane_unset_try_set(E_Plane *plane, Eina_Bool set);
EINTERN Eina_Bool e_plane_unset_commit_check(E_Plane *plane);
-EINTERN void e_plane_activation_set(E_Plane *plane, Eina_Bool set);
EINTERN Eina_Bool e_plane_zoom_commit(E_Plane *plane);
EINTERN Eina_Bool e_plane_zoom_set(E_Plane *plane, Eina_Rectangle *rect);
EINTERN void e_plane_zoom_unset(E_Plane *plane);