OSDN Git Service

BufferQueueProducer: Throttle EGL frame production.
authorEric Penner <epenner@google.com>
Tue, 30 Sep 2014 18:28:30 +0000 (11:28 -0700)
committerEric Penner <epenner@google.com>
Fri, 3 Oct 2014 21:57:09 +0000 (14:57 -0700)
commit99a0afbaee9eddabc2b544e3a5c432901c1d498c
treeeb2add5f603b0709134e855f35d2a8016bcfc642
parent6c925ede620f4080227bb1fe8a41e4b4502348f8
BufferQueueProducer: Throttle EGL frame production.

Throttling was previously controlled by a combination of the
driver and the number of buffers in the queue. This patch makes
a more consistent trade-off, which allows two GPU frames pending
but not three. More buffering could improve throughput in the
case of varying frame times, but this also increases latency.

Bug: 17502897
Change-Id: I4ee68019ca94c635294c5959931a555a6c4ef2df
include/gui/BufferQueueProducer.h
libs/gui/BufferQueueProducer.cpp