diff options
| author | 2010-09-17 12:17:15 -0700 | |
|---|---|---|
| committer | 2010-09-17 12:19:07 -0700 | |
| commit | 5dda7f7cf23a02fff2e35d7eb6bb7c9f0d620f95 (patch) | |
| tree | 73fa23f8b6e669b8b50cd5c6a37fd7f4b0a6d3a0 /services/surfaceflinger/Layer.cpp | |
| parent | b7070deffbccc69a5db6540cb558ca6c745b6b20 (diff) | |
Fix a SurfaceFlinger bug.
The bug caused SurfaceFlinger to constantly trigger reallocation of buffers
that requested a fixed size.
Change-Id: Ic993a60e6474e36a344c8b48d541a0d08b8c4faf
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 194c29550d..833181ba48 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -380,6 +380,7 @@ sp<GraphicBuffer> Layer::requestBuffer(int index, mReqWidth = reqWidth; mReqHeight = reqHeight; mReqFormat = reqFormat; + mFixedSize = reqWidth && reqHeight; lcblk->reallocateAllExcept(index); } |