diff options
author | Jamie Gennis <jgennis@google.com> | 2011-06-23 13:02:40 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-23 13:02:40 -0700 |
commit | b950b8e23e18cbe23069b791bca93c8cfbbab5ce (patch) | |
tree | 2d916950915f40a4b067f2f9415b0b2762cd232a /graphics | |
parent | 58b868417755805ebdfe4feb65664ad98c00bf35 (diff) | |
parent | 925bcaabde5a21687b51caa7ab329310a819f068 (diff) | |
download | frameworks_base-b950b8e23e18cbe23069b791bca93c8cfbbab5ce.zip frameworks_base-b950b8e23e18cbe23069b791bca93c8cfbbab5ce.tar.gz frameworks_base-b950b8e23e18cbe23069b791bca93c8cfbbab5ce.tar.bz2 |
Merge "Fix the issue where onFrameAvailable is not triggered if SurfaceTexture is in sync mode."
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/SurfaceTexture.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/SurfaceTexture.java b/graphics/java/android/graphics/SurfaceTexture.java index 6c7341f..9e498d0 100644 --- a/graphics/java/android/graphics/SurfaceTexture.java +++ b/graphics/java/android/graphics/SurfaceTexture.java @@ -131,6 +131,10 @@ public class SurfaceTexture { */ public void updateTexImage() { nativeUpdateTexImage(); + if (nativeGetQueuedCount() > 0) { + Message m = mEventHandler.obtainMessage(); + mEventHandler.sendMessage(m); + } } /** @@ -215,6 +219,7 @@ public class SurfaceTexture { private native long nativeGetTimestamp(); private native void nativeSetDefaultBufferSize(int width, int height); private native void nativeUpdateTexImage(); + private native int nativeGetQueuedCount(); /* * We use a class initializer to allow the native code to cache some |