OSDN Git Service

Don't optimize out rcUpdateColorBuffer
authorLingfeng Yang <lfy@google.com>
Wed, 25 May 2016 15:31:06 +0000 (08:31 -0700)
committerLingfeng Yang <lfy@google.com>
Fri, 27 May 2016 16:04:52 +0000 (16:04 +0000)
commit0da8a2420118730699a6924012080957ee3558fd
tree4ce18522de95e56040a976987ebeadcd063e5a60
parent2d4908df5328f839da292c72692bfe3b555b66cb
Don't optimize out rcUpdateColorBuffer

bug:28406160

If we want to use rcUpdateColorBuffer to
synchronize on the host in order to remove
out of order webcam frames, we need to call it
if (cb->hostHandle), not just when
the width and height are nonzero.

Otherwise, we get deadlocks.

Change-Id: Ib98774b935e8786e307dd38711a0f2f9ffea440e
system/gralloc/gralloc.cpp