SurfaceFlinger: mFbProducerSlot initailization

b/12487813

SurfaceFlinger crash is observed during simulation of
Secondary display

Note: change 14e8b01a76
removed the initialization leading to the crash when
simulating secondary display.  Restore the initialization
to solve the problem.

Change-Id: Iae5845fb82735e01de5cc0dc582d13c27e3c614f
Signed-off-by: mayank parshar <mayankp@broadcom.com>
Signed-off-by: Pierre Couillaud <pierre@broadcom.com>
This commit is contained in:
mayank parshar 2014-01-23 15:08:31 +05:30 committed by Pierre Couillaud
parent 851b2cb18c
commit fdfde88d0b

View File

@ -461,6 +461,7 @@ void VirtualDisplaySurface::resetPerFrameState() {
mFbFence = Fence::NO_FENCE;
mOutputFence = Fence::NO_FENCE;
mOutputProducerSlot = -1;
mFbProducerSlot = -1;
}
status_t VirtualDisplaySurface::refreshOutputBuffer() {