summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-10 13:40:22 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-11-10 13:43:45 -0600
commit6ea82f9f7e8361fb9cfe162395a81f006e4f8da8 (patch)
tree14d169309d8a1280446699ccd88a1e42908a0397 /src
parentfe41727bc3d3b8db7edff47880a1e344eb7c1212 (diff)
wayland_shm: Remove surface damage function
This is now in ecore_wl2
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_engine.h1
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_outbuf.c18
2 files changed, 0 insertions, 19 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.h b/src/modules/evas/engines/wayland_shm/evas_engine.h
index 3744599ed3..9795b159ca 100644
--- a/src/modules/evas/engines/wayland_shm/evas_engine.h
+++ b/src/modules/evas/engines/wayland_shm/evas_engine.h
@@ -152,7 +152,6 @@ int _evas_outbuf_rotation_get(Outbuf *ob);
152void _evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, Eina_Bool resize); 152void _evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, Eina_Bool resize);
153void *_evas_outbuf_update_region_new(Outbuf *ob, int x, int y, int w, int h, int *cx, int *cy, int *cw, int *ch); 153void *_evas_outbuf_update_region_new(Outbuf *ob, int x, int y, int w, int h, int *cx, int *cy, int *cw, int *ch);
154void _evas_outbuf_update_region_push(Outbuf *ob, RGBA_Image *update, int x, int y, int w, int h); 154void _evas_outbuf_update_region_push(Outbuf *ob, RGBA_Image *update, int x, int y, int w, int h);
155void _evas_surface_damage(struct wl_surface *s, int compositor_version, int w, int h, Eina_Rectangle *rects, unsigned int count);
156void _evas_outbuf_redraws_clear(Outbuf *ob); 155void _evas_outbuf_redraws_clear(Outbuf *ob);
157 156
158#endif 157#endif
diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index 8cdd70da18..6287a9cbeb 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -168,24 +168,6 @@ _evas_outbuf_idle_flush(Outbuf *ob)
168 } 168 }
169} 169}
170 170
171void
172_evas_surface_damage(struct wl_surface *s, int compositor_version, int w, int h, Eina_Rectangle *rects, unsigned int count)
173{
174 void (*damage)(struct wl_surface *, int32_t, int32_t, int32_t, int32_t);
175 unsigned int k;
176
177 if (compositor_version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION)
178 damage = wl_surface_damage_buffer;
179 else
180 damage = wl_surface_damage;
181
182 if ((rects) && (count > 0))
183 for (k = 0; k < count; k++)
184 damage(s, rects[k].x, rects[k].y, rects[k].w, rects[k].h);
185 else
186 damage(s, 0, 0, w, h);
187}
188
189void 171void
190_evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *surface_damage EINA_UNUSED, Tilebuf_Rect *buffer_damage EINA_UNUSED, Evas_Render_Mode render_mode) 172_evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *surface_damage EINA_UNUSED, Tilebuf_Rect *buffer_damage EINA_UNUSED, Evas_Render_Mode render_mode)
191{ 173{