summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/BLASTBufferQueue.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/BLASTBufferQueue.java b/graphics/java/android/graphics/BLASTBufferQueue.java
index 4534d36342db..3badb5f2b4d9 100644
--- a/graphics/java/android/graphics/BLASTBufferQueue.java
+++ b/graphics/java/android/graphics/BLASTBufferQueue.java
@@ -31,6 +31,8 @@ public final class BLASTBufferQueue {
long height, int format);
private static native void nativeDestroy(long ptr);
private static native Surface nativeGetSurface(long ptr, boolean includeSurfaceControlHandle);
+ private static native void nativeSetUndequeuedBufferCount(long ptr, int count);
+ private static native int nativeGetUndequeuedBufferCount(long ptr);
private static native void nativeSetNextTransaction(long ptr, long transactionPtr);
private static native void nativeUpdate(long ptr, long surfaceControl, long width, long height,
int format);
@@ -78,6 +80,20 @@ public final class BLASTBufferQueue {
}
/**
+ * Set undequeued buffer count
+ */
+ public void setUndequeuedBufferCount(int count) {
+ nativeSetUndequeuedBufferCount(mNativeObject, count);
+ }
+
+ /**
+ * @return the count of undequeued buffer
+ */
+ public int getUndequeuedBufferCount() {
+ return nativeGetUndequeuedBufferCount(mNativeObject);
+ }
+
+ /**
* Send the transaction to BBQ so the next frame can be added and not applied immediately.
* This gives the caller a chance to apply the transaction when it's ready.
* @param t The transaction to add the frame to. This can be null to clear the transaction.