summaryrefslogtreecommitdiffstats
path: root/graphics/java/android/graphics/SurfaceTexture.java
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2011-03-21 11:04:34 -0700
committerEino-Ville Talvala <etalvala@google.com>2011-03-21 15:38:36 -0700
commite309a0fd2e528039b3c1f1372a9a7095bcd852cc (patch)
tree695e1fd00b7471195c7e04ab81688956872ef823 /graphics/java/android/graphics/SurfaceTexture.java
parentaffb58e727863fdc8d2c0ea444054b581eb41be5 (diff)
downloadframeworks_base-e309a0fd2e528039b3c1f1372a9a7095bcd852cc.zip
frameworks_base-e309a0fd2e528039b3c1f1372a9a7095bcd852cc.tar.gz
frameworks_base-e309a0fd2e528039b3c1f1372a9a7095bcd852cc.tar.bz2
NEW_API: Add getTimestamp() to SurfaceTexture.
Like getTransformMatrix, getTimestamp provides a timestamp for the OpenGL texture produced by the latest call to updateTexImage(). Timestamps are measured in nanoseconds, and are monotonically increasing. Other properties of the timestamps (zero point, comparability) depend on the source providing frames to the SurfaceTexture, and need to be documented by the source. bug:3300707 Change-Id: I380d94926d0e9f1c77bb5c1576b72d5ef4e2eba1
Diffstat (limited to 'graphics/java/android/graphics/SurfaceTexture.java')
-rw-r--r--graphics/java/android/graphics/SurfaceTexture.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/SurfaceTexture.java b/graphics/java/android/graphics/SurfaceTexture.java
index b8327a8..cfae0c1 100644
--- a/graphics/java/android/graphics/SurfaceTexture.java
+++ b/graphics/java/android/graphics/SurfaceTexture.java
@@ -153,7 +153,6 @@ public class SurfaceTexture {
* the SurfaceTexture. Unless otherwise specified by the image source, timestamps cannot
* generally be compared across SurfaceTexture instances, or across multiple program
* invocations. It is mostly useful for determining time offsets between subsequent frames.
- * @hide
*/
public long getTimestamp() {
return nativeGetTimestamp();