summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_plane.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-05-09 11:29:35 -0400
committerChris Michael <cp.michael@samsung.com>2017-05-09 11:47:04 -0400
commitaf587c01cb75e10f766316c66a02c8d258259a94 (patch)
treeedc6de759e5817bf54cca3c37fb94274a8d34747 /src/lib/ecore_drm2/ecore_drm2_plane.c
parent544cffaa19fca975970e773b209c40c40d1208d6 (diff)
ecore-drm2: Add start of refcounting for FB objects
Small patch which starts to implement refcounting on framebuffer objects. This will be needed so that we do not free FB objects while they are on the screen. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_plane.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c
index e90a740073..2bf1917545 100644
--- a/src/lib/ecore_drm2/ecore_drm2_plane.c
+++ b/src/lib/ecore_drm2/ecore_drm2_plane.c
@@ -119,6 +119,8 @@ out:
119 return NULL; 119 return NULL;
120 } 120 }
121 121
122 fb->ref++;
123
122 DBG("FB %d assigned to Plane %d", fb->id, pstate->obj_id); 124 DBG("FB %d assigned to Plane %d", fb->id, pstate->obj_id);
123 output->planes = eina_list_append(output->planes, plane); 125 output->planes = eina_list_append(output->planes, plane);
124 126