cleanup e_pixmap code (remove debugging statements)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
7a201e24da
commit
2e24cc5760
|
@ -409,9 +409,6 @@ e_pixmap_refresh(E_Pixmap *cp)
|
|||
break;
|
||||
case E_PIXMAP_TYPE_WL:
|
||||
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
|
||||
DBG("PIXMAP REFRESH");
|
||||
if (cp->parent) DBG("\tHas Parent");
|
||||
else DBG("\tNo Parent");
|
||||
_e_pixmap_update_wl(cp);
|
||||
success = ((cp->w > 0) && (cp->h > 0));
|
||||
#endif
|
||||
|
@ -602,7 +599,6 @@ e_pixmap_image_clear(E_Pixmap *cp, Eina_Bool cache)
|
|||
#endif
|
||||
break;
|
||||
case E_PIXMAP_TYPE_WL:
|
||||
DBG("PIXMAP IMAGE CLEAR: %d", cache);
|
||||
/* NB: Nothing to do here. No-Op */
|
||||
/* NB: Old code would memcpy here */
|
||||
break;
|
||||
|
@ -638,7 +634,6 @@ e_pixmap_image_refresh(E_Pixmap *cp)
|
|||
break;
|
||||
case E_PIXMAP_TYPE_WL:
|
||||
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
|
||||
DBG("PIXMAP IMAGE REFRESH");
|
||||
_e_pixmap_update_wl(cp);
|
||||
return ((cp->w > 0) && (cp->h > 0));
|
||||
#endif
|
||||
|
@ -700,20 +695,15 @@ e_pixmap_image_data_get(E_Pixmap *cp)
|
|||
break;
|
||||
case E_PIXMAP_TYPE_WL:
|
||||
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
|
||||
DBG("PIXMAP IMAGE DATA GET");
|
||||
if (cp->resource)
|
||||
{
|
||||
struct wl_shm_buffer *buffer;
|
||||
void *data = NULL;
|
||||
/* size_t size; */
|
||||
|
||||
if (!(buffer = wl_shm_buffer_get(cp->resource)))
|
||||
return NULL;
|
||||
|
||||
/* size = (cp->w * cp->h * sizeof(int)); */
|
||||
/* data = malloc(size); */
|
||||
wl_shm_buffer_begin_access(buffer);
|
||||
/* memcpy(data, wl_shm_buffer_get_data(buffer), size); */
|
||||
data = wl_shm_buffer_get_data(buffer);
|
||||
wl_shm_buffer_end_access(buffer);
|
||||
|
||||
|
|
Loading…
Reference in New Issue