OSDN Git Service

Set the outbuf acquire fence after we actually have it.
authorJesse Hall <jessehall@google.com>
Wed, 2 Oct 2013 00:25:20 +0000 (17:25 -0700)
committerJesse Hall <jessehall@google.com>
Wed, 2 Oct 2013 00:25:20 +0000 (17:25 -0700)
commitb716e57048e945d5bceda33c2434c65d06464dba
treea79308eca2c9da13bb3b79ca0519c9b6805a0887
parentb65f32ebe2c86869b07ac1c986660dfb2187b7d3
Set the outbuf acquire fence after we actually have it.

In GLES-only mode, we don't have the outbuf acquire fence until after
GLES composition is done for the frame. We were setting the fence in
HWC's state immediately after dequeueing the buffer from the consumer,
before GLES had started. This fence got passed through HWC and on to
the consumer, so the consumer was reading the buffer before GLES was
done writing to it.

Now we update HWC's state just before set(), when we know we have the
right fence.

Bug: 11000763
Change-Id: Iea9db4c69634c352dc2d600f0bdb6bef2a432636
services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp