Fix a SurfaceFlinger bug.

The bug caused SurfaceFlinger to constantly trigger reallocation of buffers
that requested a fixed size.

Change-Id: Ic993a60e6474e36a344c8b48d541a0d08b8c4faf
This commit is contained in:
Jamie Gennis 2010-09-17 12:17:15 -07:00
parent b7070deffb
commit 5dda7f7cf2

View File

@ -380,6 +380,7 @@ sp<GraphicBuffer> Layer::requestBuffer(int index,
mReqWidth = reqWidth;
mReqHeight = reqHeight;
mReqFormat = reqFormat;
mFixedSize = reqWidth && reqHeight;
lcblk->reallocateAllExcept(index);
}