From 5dda7f7cf23a02fff2e35d7eb6bb7c9f0d620f95 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Fri, 17 Sep 2010 12:17:15 -0700 Subject: [PATCH] Fix a SurfaceFlinger bug. The bug caused SurfaceFlinger to constantly trigger reallocation of buffers that requested a fixed size. Change-Id: Ic993a60e6474e36a344c8b48d541a0d08b8c4faf --- services/surfaceflinger/Layer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 194c29550..833181ba4 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -380,6 +380,7 @@ sp Layer::requestBuffer(int index, mReqWidth = reqWidth; mReqHeight = reqHeight; mReqFormat = reqFormat; + mFixedSize = reqWidth && reqHeight; lcblk->reallocateAllExcept(index); }