video: Don't make a call e_pixmap_image_clear() in spite of no damage when it comes... 41/207741/2
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 14 May 2019 04:14:38 +0000 (13:14 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 12 Jun 2019 07:22:36 +0000 (07:22 +0000)
Since E20 don't mark damages on e_comp_object when it comes to
'E_COMP_WL_BUFFER_TYPE_VIDEO', so it shouldn't make a call e_pixmap_image_clear(TRUE).
It will be handled by video implementation.

Change-Id: I05eb5e065e59fa927816593025b29be309a05e6f

src/bin/e_comp_wl.c
src/bin/e_comp_wl_subsurface.c

index 6213784..3ccd1dc 100644 (file)
@@ -4137,7 +4137,8 @@ e_comp_wl_surface_commit(E_Client *ec)
    Eina_Bool ignored;
 
    _e_comp_wl_surface_state_commit(ec, &ec->comp_data->pending);
-   if (!e_comp_object_damage_exists(ec->frame))
+   if ((!e_comp_object_damage_exists(ec->frame)) &&
+       (!e_client_video_hw_composition_check(ec)))
      e_pixmap_image_clear(ec->pixmap, 1);
 
    ignored = ec->ignored;
index 6868c23..58e5806 100644 (file)
@@ -402,7 +402,8 @@ _e_comp_wl_subsurface_commit_from_cache(E_Client *ec)
 
    e_comp_wl_surface_state_commit(ec, &sdata->cached);
 
-   if (!e_comp_object_damage_exists(ec->frame))
+   if ((!e_comp_object_damage_exists(ec->frame)) &&
+       (!e_client_video_hw_composition_check(ec)))
      e_pixmap_image_clear(ec->pixmap, 1);
 
    e_comp_wl_buffer_reference(&sdata->cached_buffer_ref, NULL);