ecore_wl2: Add buffer_fit API and use it from surface code
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 25 Jan 2018 23:01:23 +0000 (17:01 -0600)
committerJiyoun Park <jy0703.park@samsung.com>
Tue, 3 Apr 2018 13:06:00 +0000 (22:06 +0900)
commite782b7d50ebe6950bc2b9e8deead322bea30bc5f
treefba08d57d7a2dbb9b8c9d1395ca91134d5bb04f1
parent0b4154d9de6f601297d4ea4e153df96f7789db62
ecore_wl2: Add buffer_fit API and use it from surface code

This tries to resize the buffer's useable area to fit the specified size -
this is possible if the stride of the buffer is larger than the current
width.
src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_buffer.c
src/lib/ecore_wl2/ecore_wl2_surface.c