diff options
| author | Mathias Agopian <mathias@google.com> | 2012-04-23 18:23:08 -0700 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2012-04-24 15:50:27 -0700 |
| commit | c14bacf1fb511472138eeb5dc84a9423fc003214 (patch) | |
| tree | 672a9edd76a0dbf51b2e6b0402c171702971c69f /core/java/android/view/Surface.java | |
| parent | b2b15716d8b5b5814e82575a592e76f522f6a4c6 (diff) | |
add a (hidden) api on Surface to query if the consumer is running behind the producer
Change-Id: I71ec1602f66a4850b130893fc7017b5b1ac1b647
Diffstat (limited to 'core/java/android/view/Surface.java')
| -rw-r--r-- | core/java/android/view/Surface.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/view/Surface.java b/core/java/android/view/Surface.java index eb80290d5991..53af3c56bf21 100644 --- a/core/java/android/view/Surface.java +++ b/core/java/android/view/Surface.java @@ -323,6 +323,15 @@ public class Surface implements Parcelable { return mSurfaceGenerationId; } + + /** + * Whether the consumer of this Surface is running behind the producer; + * that is, isConsumerRunningBehind() returns true if the consumer is more + * than one buffer ahead of the producer. + * @hide + */ + public native boolean isConsumerRunningBehind(); + /** * A Canvas class that can handle the compatibility mode. This does two * things differently. |
