OSDN Git Service

Re-enable frame dropping for non-auto timestamps
authorAndy McFadden <fadden@android.com>
Fri, 16 Aug 2013 21:55:39 +0000 (14:55 -0700)
committerAndy McFadden <fadden@android.com>
Fri, 16 Aug 2013 22:15:16 +0000 (15:15 -0700)
commit3c25621ad7d13f64d3ab95a27fa970fbc9998f73
tree2115e7f38faf3ac66c885f9be003d2fc1082220a
parenta33b62cc4700c68a3481d415a55e1a7b688981e1
Re-enable frame dropping for non-auto timestamps

This change adds an entire field to note whether the timestamp was
auto-generated by Surface or supplied by the application.

The value is used when deciding whether or not to drop frames based
on buffer presentation timestamps.  If a desired presentation time
was set explicitly, BufferQueue will use that value to decide if a
frame should be dropped.  If the timestamp was generated by Surface
at the time the buffer was queued, the timestamp is ignored.

Bug 10151804

Change-Id: Ibd571a7578351063b813cbdad2ddbeed70655ba5
include/gui/IGraphicBufferConsumer.h
include/gui/IGraphicBufferProducer.h
libs/gui/BufferQueue.cpp
libs/gui/IGraphicBufferConsumer.cpp
libs/gui/IGraphicBufferProducer.cpp
libs/gui/Surface.cpp
services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp