summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_buffer.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-02-27 16:24:25 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-02-27 16:27:56 -0600
commitec3784774d4e488e28d23b8c20772be75b31f91a (patch)
treed2856c4601c894a4e7af603741e8ff90476b4ba2 /src/lib/ecore_wl2/ecore_wl2_buffer.c
parentcb431b2b0ef083c4d15b500684c63fa25b0ebe49 (diff)
ecore_wl2: Disable horizontal resize optimization
We had a "clever" optimization that would keep a buffer on resize if it was resizing up horizontal and fit within the previously allocated stride. Unfortunately, there still needs to be a buffer reconfigure between client and compositor that wasn't taking place. Remove this for now.
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_buffer.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_buffer.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index a7cb174cb2..19f8bb5e7e 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -729,6 +729,17 @@ ecore_wl2_buffer_age_inc(Ecore_Wl2_Buffer *buffer)
729 buffer->age++; 729 buffer->age++;
730} 730}
731 731
732/* The only user of this function has been removed, but it
733 * will likely come back later. The problem is that
734 * a dmabuf buffer needs to be resized on the compositor
735 * even if the allocation still fits. Doing the resize
736 * properly isn't something that will be fixed in the 1.21
737 * timeframe, so the optimization has been (temporarily)
738 * removed.
739 *
740 * This is currently beta api - don't move it out of beta
741 * with no users...
742 */
732EAPI Eina_Bool 743EAPI Eina_Bool
733ecore_wl2_buffer_fit(Ecore_Wl2_Buffer *b, int w, int h) 744ecore_wl2_buffer_fit(Ecore_Wl2_Buffer *b, int w, int h)
734{ 745{