From: Boram Park Date: Fri, 11 Nov 2016 10:39:33 +0000 (+0900) Subject: e_comp_wl: don't check video buffer format X-Git-Tag: submit/tizen/20161116.114430~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bd7a40a70e8d0db9b18c50ee285a216f99a3ddc;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl: don't check video buffer format In case of video client, we don't need to check format because video format can be AR24 and XR24 also. Change-Id: I491f11030fa37a84207946239a82deaba9bfad82 --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 3ced27bab9..bbfc5c3024 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -5120,18 +5120,8 @@ e_comp_wl_buffer_get(struct wl_resource *resource, E_Client *ec) { if ((ec) && (ec->comp_data->video_client)) { - E_Client *topmost = _e_comp_wl_topmost_parent_get(ec); - tbm_surf = wayland_tbm_server_get_surface(e_comp_wl->tbm.server, resource); buffer->type = E_COMP_WL_BUFFER_TYPE_VIDEO; - if (topmost->argb) - { - buffer->w = tbm_surface_get_width(tbm_surf); - buffer->h = tbm_surface_get_height(tbm_surf); - } - else - { - buffer->w = buffer->h = 1; - } + buffer->w = buffer->h = 1; } else if (e_comp->gl) { diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index 0412ae3266..33ff1ea7ec 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -791,21 +791,10 @@ e_pixmap_image_refresh(E_Pixmap *cp) } else if (buffer->type == E_COMP_WL_BUFFER_TYPE_VIDEO) { - E_Comp_Wl_Data *wl_comp_data = (E_Comp_Wl_Data *)e_comp->wl_comp_data; - tbm_surface_h tbm_surf = wayland_tbm_server_get_surface(wl_comp_data->tbm.server, buffer->resource); - buffer->shm_buffer = NULL; cp->w = buffer->w; cp->h = buffer->h; - switch (tbm_surface_get_format(tbm_surf)) - { - case TBM_FORMAT_ARGB8888: - cp->image_argb = EINA_TRUE; - break; - default: - cp->image_argb = EINA_FALSE; - break; - } + cp->image_argb = EINA_FALSE; cp->data = NULL; cp->shm_buffer = NULL; }