Delete API tpl_surface_set/get_damage. 62/59662/1
authorjoonbum.ko <joonbum.ko@samsung.com>
Tue, 16 Feb 2016 08:09:32 +0000 (17:09 +0900)
committerjoonbum.ko <joonbum.ko@samsung.com>
Wed, 17 Feb 2016 05:00:11 +0000 (14:00 +0900)
Change-Id: I911464516280f88d802c99f79aac8f7940f88ae6

src/tpl.h
src/tpl_surface.c

index c7ee2e1..3994178 100644 (file)
--- a/src/tpl.h
+++ b/src/tpl.h
@@ -490,37 +490,6 @@ tpl_bool_t tpl_surface_set_post_interval(tpl_surface_t *surface,
 int tpl_surface_get_post_interval(tpl_surface_t *surface);
 
 /**
- * Set damaged region of the given TPL surface.
- *
- * Damage information is used for reducing number of pixels composited in the
- * compositor. When a frame ends, the frames' damage area is copied from the
- * surface's current damage region. Setting num_rects to 0 or rects to NULL
- * means entire area is damaged.
- *
- * @param surface surface to set damage region.
- * @param num_rects number of rectangles of the damage region.
- * @param rects pointer to coordinates of rectangles. x0, y0, w0, h0, x1, y1, w1, h1...
- *
- * @see tpl_surface_get_damage()
- */
-tpl_bool_t tpl_surface_set_damage(tpl_surface_t *surface,
-                           int num_rects,
-                           const int *rects);
-
-/**
- * Get damaged region of the given TPL surface.
- *
- * @param surface surface to get damage region.
- * @param num_rects Pointer to receive the number of rectangles.
- * @param rects Pointer to receive the pointer to rectangle coordinate array.
- *
- * @see tpl_surface_set_damage()
- */
-tpl_bool_t tpl_surface_get_damage(tpl_surface_t *surface,
-                           int *num_rects,
-                           const int **rects);
-
-/**
  * Query information on the given native window.
  *
  * @param display display used for query.
index 983ad73..58431fb 100644 (file)
@@ -194,43 +194,6 @@ tpl_surface_get_post_interval(tpl_surface_t *surface)
        return interval;
 }
 
-tpl_bool_t
-tpl_surface_set_damage(tpl_surface_t *surface, int num_rects, const int *rects)
-{
-       tpl_bool_t ret;
-
-       if (NULL == surface || TPL_SURFACE_TYPE_WINDOW != surface->type)
-       {
-               TPL_ERR("Invalid surface!");
-               return TPL_FALSE;
-       }
-
-       TPL_OBJECT_LOCK(surface);
-       ret = __tpl_region_set_rects(&surface->damage, num_rects, rects);
-       TPL_OBJECT_UNLOCK(surface);
-
-       return ret;
-}
-
-tpl_bool_t
-tpl_surface_get_damage(tpl_surface_t *surface, int *num_rects, const int **rects)
-{
-       if (NULL == surface || TPL_SURFACE_TYPE_WINDOW != surface->type)
-       {
-               TPL_ERR("Invalid surface!");
-               *num_rects = 0;
-               *rects = NULL;
-               return TPL_FALSE;
-       }
-
-       TPL_OBJECT_LOCK(surface);
-       *num_rects = surface->damage.num_rects;
-       *rects = surface->damage.rects;
-       TPL_OBJECT_UNLOCK(surface);
-
-       return TPL_TRUE;
-}
-
 tbm_surface_h
 tpl_surface_dequeue_buffer(tpl_surface_t *surface)
 {