e_comp_wl_rsm: correct screen-flickering when unbinded 74/159374/2
authorBoram Park <boram1288.park@samsung.com>
Wed, 8 Nov 2017 10:51:28 +0000 (19:51 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 8 Nov 2017 10:53:00 +0000 (19:53 +0900)
When unbinded, the old buffer was still set to the native surface of
e_comp_object and alive. So.. if we disabled evas map, e_comp_object
could be composited wronly when rendered suddenly.

Change-Id: Ic121ebec737daacc6b4d0fb891a3f0e4014c148a

src/bin/e_comp_wl_rsm.c

index a086112..cda84d8 100644 (file)
@@ -776,12 +776,14 @@ _remote_surface_bind_client(E_Comp_Wl_Remote_Surface *remote_surface, E_Client *
         remote_surface->bind_ec->comp_data->pending.sy = 0;
         remote_surface->bind_ec->comp_data->pending.new_attach = EINA_TRUE;
 
+#if 0   /* FIXME: no proper position to add below codes */
         /* when unbinded, ignore_output_transform event is sended. And map should be disable. */
         remote_surface->bind_ec->comp_data->pending.buffer_viewport.buffer.transform = WL_OUTPUT_TRANSFORM_NORMAL;
         remote_surface->bind_ec->comp_data->pending.buffer_viewport.changed = 0;
         remote_surface->bind_ec->comp_data->scaler.buffer_viewport.buffer.transform = WL_OUTPUT_TRANSFORM_NORMAL;
         remote_surface->bind_ec->comp_data->scaler.buffer_viewport.changed = 0;
         e_comp_wl_map_apply(remote_surface->bind_ec);
+#endif
 
         e_comp_wl_surface_attach(remote_surface->bind_ec, NULL);