OSDN Git Service

Drop frames based on presentation timestamp
authorAndy McFadden <fadden@android.com>
Thu, 1 Aug 2013 20:37:42 +0000 (13:37 -0700)
committerAndy McFadden <fadden@android.com>
Thu, 1 Aug 2013 22:58:08 +0000 (15:58 -0700)
commit14fab7dd794cd6bf29e6425340683c6221062b3c
treeb8dac9c7ca47ea21852711cb3af0dfad1e343e9e
parent8776c34ca2e6cc92c453f5a83e11bcb67b0d5aff
Drop frames based on presentation timestamp

If there are two or more buffers pending that are ready for
immediate presentation, drop all but the last one.

Any code that didn't explicitly specify timestamps for buffers
was using the default value (auto-generated "now").  As a result,
surfaceflinger would drop frames whenever more than one buffer
was queued.  We now use zero as the auto-generated timestamp,
and we don't set the timestamp in eglBeginFrame().

Change-Id: I187f42d33de227cd3411ff0dcd3b9ce1961457eb
libs/gui/BufferQueue.cpp
libs/gui/Surface.cpp
opengl/libs/EGL/eglApi.cpp