e_plane: added e_plane_fb_target_set
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 4 Jul 2017 05:00:06 +0000 (14:00 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 5 Jul 2017 03:02:45 +0000 (12:02 +0900)
Change-Id: I2ea8ea977635642f4e02c7a4423f40d2d6f3fdda

src/bin/e_plane.c
src/bin/e_plane.h

index d550113ebd91c60e117705241cdf3beaee2f87b7..bb81b09f1c781acdbea70878b7ee5c6eb9292eab 100644 (file)
@@ -1542,6 +1542,16 @@ e_plane_color_val_get(E_Plane *plane)
    return plane->color;
 }
 
+EINTERN Eina_Bool
+e_plane_fb_target_set(E_Plane *plane, Eina_Bool set)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(plane, EINA_FALSE);
+
+   plane->is_fb = set;
+
+   return EINA_TRUE;
+}
+
 E_API Eina_Bool
 e_plane_is_fb_target(E_Plane *plane)
 {
index b03f88bd4b51a8dc747db423a75a3b66bacd4b2b..f951d76b5b93453586ac272ce0ab16fc63cff312 100644 (file)
@@ -141,6 +141,7 @@ EINTERN Eina_Bool            e_plane_is_unset_candidate(E_Plane *plane);
 EINTERN Eina_Bool            e_plane_is_unset_try(E_Plane *plane);
 EINTERN void                 e_plane_unset_try_set(E_Plane *plane, Eina_Bool set);
 EINTERN Eina_Bool            e_plane_unset_commit_check(E_Plane *plane);
+EINTERN Eina_Bool            e_plane_fb_target_set(E_Plane *plane, Eina_Bool set);
 
 E_API Eina_Bool              e_plane_type_set(E_Plane *plane, E_Plane_Type type);
 E_API E_Plane_Type           e_plane_type_get(E_Plane *plane);