forked from enlightenment/efl
wayland_shm: Remove flags
We only used this for resize, and didn't actually even need it then.
This commit is contained in:
parent
745435deab
commit
7e2f5e759e
|
@ -70,7 +70,6 @@ extern int _evas_engine_way_shm_log_dom;
|
||||||
# include "Evas_Engine_Wayland_Shm.h"
|
# include "Evas_Engine_Wayland_Shm.h"
|
||||||
|
|
||||||
# define MAX_BUFFERS 4
|
# define MAX_BUFFERS 4
|
||||||
# define SURFACE_HINT_RESIZING 0x10
|
|
||||||
|
|
||||||
typedef struct _Shm_Pool Shm_Pool;
|
typedef struct _Shm_Pool Shm_Pool;
|
||||||
struct _Shm_Pool
|
struct _Shm_Pool
|
||||||
|
@ -105,7 +104,6 @@ struct _Shm_Surface
|
||||||
struct wl_display *disp;
|
struct wl_display *disp;
|
||||||
struct wl_shm *shm;
|
struct wl_shm *shm;
|
||||||
struct wl_surface *surface;
|
struct wl_surface *surface;
|
||||||
uint32_t flags;
|
|
||||||
int w, h;
|
int w, h;
|
||||||
int dx, dy;
|
int dx, dy;
|
||||||
int num_buff;
|
int num_buff;
|
||||||
|
|
|
@ -306,20 +306,15 @@ _evas_outbuf_reconfigure(Outbuf *ob, int x, int y, int w, int h, int rot, Outbuf
|
||||||
ob->depth = depth;
|
ob->depth = depth;
|
||||||
ob->priv.destination_alpha = alpha;
|
ob->priv.destination_alpha = alpha;
|
||||||
|
|
||||||
if (resize)
|
|
||||||
ob->surface->flags = SURFACE_HINT_RESIZING;
|
|
||||||
else
|
|
||||||
ob->surface->flags = 0;
|
|
||||||
|
|
||||||
if ((ob->rotation == 0) || (ob->rotation == 180))
|
if ((ob->rotation == 0) || (ob->rotation == 180))
|
||||||
{
|
{
|
||||||
_evas_shm_surface_reconfigure(ob->surface, x, y, w, h,
|
_evas_shm_surface_reconfigure(ob->surface, x, y, w, h,
|
||||||
ob->num_buff, ob->surface->flags);
|
ob->num_buff, resize);
|
||||||
}
|
}
|
||||||
else if ((ob->rotation == 90) || (ob->rotation == 270))
|
else if ((ob->rotation == 90) || (ob->rotation == 270))
|
||||||
{
|
{
|
||||||
_evas_shm_surface_reconfigure(ob->surface, x, y, h, w,
|
_evas_shm_surface_reconfigure(ob->surface, x, y, h, w,
|
||||||
ob->num_buff, ob->surface->flags);
|
ob->num_buff, resize);
|
||||||
}
|
}
|
||||||
|
|
||||||
_evas_outbuf_idle_flush(ob);
|
_evas_outbuf_idle_flush(ob);
|
||||||
|
|
|
@ -370,7 +370,6 @@ _evas_shm_surface_create(struct wl_display *disp, struct wl_shm *shm, struct wl_
|
||||||
surf->surface = surface;
|
surf->surface = surface;
|
||||||
surf->num_buff = num_buff;
|
surf->num_buff = num_buff;
|
||||||
surf->alpha = alpha;
|
surf->alpha = alpha;
|
||||||
surf->flags = 0;
|
|
||||||
surf->compositor_version = compositor_version;
|
surf->compositor_version = compositor_version;
|
||||||
|
|
||||||
/* create surface buffers */
|
/* create surface buffers */
|
||||||
|
@ -410,7 +409,7 @@ _evas_shm_surface_reconfigure(Shm_Surface *surface, int dx, int dy, int w, int h
|
||||||
|
|
||||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
|
||||||
resize = !!(flags & SURFACE_HINT_RESIZING);
|
resize = !!flags;
|
||||||
|
|
||||||
for (; i < surface->num_buff; i++)
|
for (; i < surface->num_buff; i++)
|
||||||
{
|
{
|
||||||
|
@ -429,7 +428,6 @@ _evas_shm_surface_reconfigure(Shm_Surface *surface, int dx, int dy, int w, int h
|
||||||
surface->h = h;
|
surface->h = h;
|
||||||
surface->dx = dx;
|
surface->dx = dx;
|
||||||
surface->dy = dy;
|
surface->dy = dy;
|
||||||
surface->flags = flags;
|
|
||||||
surface->num_buff = num_buff;
|
surface->num_buff = num_buff;
|
||||||
|
|
||||||
for (i = 0; i < surface->num_buff; i++)
|
for (i = 0; i < surface->num_buff; i++)
|
||||||
|
|
Loading…
Reference in New Issue