ecore_drm2: fix scanout_on callback firing too often
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 30 Jun 2017 15:26:41 +0000 (10:26 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 30 Jun 2017 15:26:41 +0000 (10:26 -0500)
commit3775a9645da7e92599babccfe8454304cec367b7
tree3687063a6df14cb95a51730f9f2862cf1573fce7
parentd2b614111cea61420cfc4ca0aa938310b9b549f8
ecore_drm2: fix scanout_on callback firing too often

We need to increase the on scanout count for a buffer only when the
plane it's on makes its transition from pending to visible.

Previously it was firing for every refresh which would break refcounting
for any plane using surface that didn't change every frame.
src/lib/ecore_drm2/ecore_drm2_fb.c