OSDN Git Service

Add support for timestamps into SurfaceTexture.
authorEino-Ville Talvala <etalvala@google.com>
Fri, 18 Feb 2011 19:02:42 +0000 (11:02 -0800)
committerEino-Ville Talvala <etalvala@google.com>
Thu, 17 Mar 2011 20:10:03 +0000 (13:10 -0700)
commit1d01a12e7150be569557b64da9b8663c62c13594
tree796f86331ff79593bd6483e4b947c61d63c5c243
parentf75ad0db1959cccfdee9086732236605c2800423
Add support for timestamps into SurfaceTexture.

API addition: The timestamps are represented as nanoseconds from some
arbitrary time point. Like the SurfaceTexture transform matrix, the
timestamp retrieved by getTimestamp is for the last frame sent to the
GL texture using updateTexImage().

Camera HAL change: Expect vendors to set these timestamps using
native_window_set_buffers_timestamp().  For now, they are
autogenerated by SurfaceTextureClient if set_buffers_timestamp() is
never called, but such timing is likely not accurate enough to pass a
CTS test.

bug:3300707

Change-Id: Ife131a0c2a826ac27342e11b8a6c42ff49e1bea7
include/gui/ISurfaceTexture.h
include/gui/SurfaceTexture.h
include/gui/SurfaceTextureClient.h
include/surfaceflinger/Surface.h
include/ui/egl/android_natives.h
libs/gui/ISurfaceTexture.cpp
libs/gui/SurfaceTexture.cpp
libs/gui/SurfaceTextureClient.cpp
libs/surfaceflinger_client/Surface.cpp