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:05:11 +0000 (16:05 +0000)
commit03031766dd3978edbb4b6e6d39139d215036921c
treeb7b18b5a1f70b4121326e15b8815bf3ec7a07b42
parentca3b20ff0dd8fed5dae26409c255c68ce73723af
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
(cherry picked from commit 6298285500362b217b73b96def2ce207e206171d)
opengl/system/gralloc/gralloc.cpp