pepper: More comprehensive name for output backend function flush_surface()
authorTaekyun Kim <tkq.kim@samsung.com>
Mon, 14 Sep 2015 09:47:53 +0000 (18:47 +0900)
committerTaekyun Kim <tkq.kim@samsung.com>
Mon, 14 Sep 2015 09:47:53 +0000 (18:47 +0900)
Renamed to flush_surface_damage().

Change-Id: Iaeab80b3b620edd4abf138a95c61054bdd6eadee

src/lib/drm/drm-output.c
src/lib/fbdev/fbdev-output.c
src/lib/pepper/pepper-output-backend.h
src/lib/pepper/surface.c
src/lib/wayland/wayland-output.c
src/lib/x11/x11-output.c

index f52341a..d4c26af 100644 (file)
@@ -261,7 +261,7 @@ drm_output_attach_surface(void *o, pepper_surface_t *surface, int *w, int *h)
 }
 
 static void
-drm_output_flush_surface(void *o, pepper_surface_t *surface)
+drm_output_flush_surface_damage(void *o, pepper_surface_t *surface)
 {
     pepper_renderer_flush_surface_damage(((drm_output_t *)o)->renderer, surface);
 }
@@ -281,7 +281,7 @@ struct pepper_output_backend drm_output_backend =
     drm_output_assign_planes,
     drm_output_repaint,
     drm_output_attach_surface,
-    drm_output_flush_surface,
+    drm_output_flush_surface_damage,
 };
 
 static int
index d9e74c5..3917090 100644 (file)
@@ -203,7 +203,7 @@ fbdev_output_attach_surface(void *o, pepper_surface_t *surface, int *w, int *h)
 }
 
 static void
-fbdev_output_flush_surface(void *o, pepper_surface_t *surface)
+fbdev_output_flush_surface_damage(void *o, pepper_surface_t *surface)
 {
     pepper_renderer_flush_surface_damage(((fbdev_output_t *)o)->renderer, surface);
 }
@@ -223,7 +223,7 @@ struct pepper_output_backend fbdev_output_backend =
     fbdev_output_assign_planes,
     fbdev_output_repaint,
     fbdev_output_attach_surface,
-    fbdev_output_flush_surface,
+    fbdev_output_flush_surface_damage,
 };
 
 static pepper_bool_t
index e306aea..d030e0c 100644 (file)
@@ -26,7 +26,7 @@ struct pepper_output_backend
     void            (*assign_planes)(void *output, const pepper_list_t *view_list);
     void            (*repaint)(void *output, const pepper_list_t *plane_list);
     void            (*attach_surface)(void *output, pepper_surface_t *surface, int *w, int *h);
-    void            (*flush_surface)(void *output, pepper_surface_t *surface);
+    void            (*flush_surface_damage)(void *output, pepper_surface_t *surface);
 };
 
 PEPPER_API pepper_output_t *
index aa6acd1..8113f54 100644 (file)
@@ -507,7 +507,7 @@ pepper_surface_flush_damage(pepper_surface_t *surface)
         pepper_view_surface_damage(view);
 
     pepper_list_for_each(output, &surface->compositor->output_list, link)
-        output->backend->flush_surface(output->data, surface);
+        output->backend->flush_surface_damage(output->data, surface);
 
     pixman_region32_clear(&surface->damage_region);
 }
index 5ffa857..1d07cde 100644 (file)
@@ -201,7 +201,7 @@ wayland_output_attach_surface(void *o, pepper_surface_t *surface, int *w, int *h
 }
 
 static void
-wayland_output_flush_surface(void *o, pepper_surface_t *surface)
+wayland_output_flush_surface_damage(void *o, pepper_surface_t *surface)
 {
     pepper_renderer_flush_surface_damage(((wayland_output_t *)o)->renderer, surface);
 }
@@ -221,7 +221,7 @@ static const pepper_output_backend_t wayland_output_backend =
     wayland_output_assign_planes,
     wayland_output_repaint,
     wayland_output_attach_surface,
-    wayland_output_flush_surface,
+    wayland_output_flush_surface_damage,
 };
 
 static void
index 0c2477b..7093fa4 100644 (file)
@@ -499,7 +499,7 @@ x11_output_attach_surface(void *o, pepper_surface_t *surface, int *w, int *h)
 }
 
 static void
-x11_output_flush_surface(void *o, pepper_surface_t *surface)
+x11_output_flush_surface_damage(void *o, pepper_surface_t *surface)
 {
     pepper_renderer_flush_surface_damage(((x11_output_t *)o)->renderer, surface);
 }
@@ -520,7 +520,7 @@ static const pepper_output_backend_t x11_output_backend =
     x11_output_assign_planes,
     x11_output_repaint,
     x11_output_attach_surface,
-    x11_output_flush_surface,
+    x11_output_flush_surface_damage,
 };
 
 PEPPER_API pepper_output_t *