summaryrefslogtreecommitdiff
path: root/graphics/java
diff options
context:
space:
mode:
authorRob Carr <racarr@google.com>2020-04-27 17:20:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-04-27 17:20:42 +0000
commit9005cdcf0179bc472df956e8292770dab9b981cd (patch)
tree1050c5407bba17a452ce816d08ff77e1393c18ea /graphics/java
parent88191952ece34be76fdcf1255e70c5b88a6b8098 (diff)
parentb9cf275b9bf4a5cd2f941c422ee728a4bf155601 (diff)
Merge "BLAST: Two start-up optimizations" into rvc-dev
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/BLASTBufferQueue.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/graphics/java/android/graphics/BLASTBufferQueue.java b/graphics/java/android/graphics/BLASTBufferQueue.java
index 8c6a9371d53b..4c7e960eb0a4 100644
--- a/graphics/java/android/graphics/BLASTBufferQueue.java
+++ b/graphics/java/android/graphics/BLASTBufferQueue.java
@@ -26,15 +26,17 @@ public final class BLASTBufferQueue {
// Note: This field is accessed by native code.
private long mNativeObject; // BLASTBufferQueue*
- private static native long nativeCreate(long surfaceControl, long width, long height);
+ private static native long nativeCreate(long surfaceControl, long width, long height,
+ boolean tripleBufferingEnabled);
private static native void nativeDestroy(long ptr);
private static native Surface nativeGetSurface(long ptr);
private static native void nativeSetNextTransaction(long ptr, long transactionPtr);
private static native void nativeUpdate(long ptr, long surfaceControl, long width, long height);
/** Create a new connection with the surface flinger. */
- public BLASTBufferQueue(SurfaceControl sc, int width, int height) {
- mNativeObject = nativeCreate(sc.mNativeObject, width, height);
+ public BLASTBufferQueue(SurfaceControl sc, int width, int height,
+ boolean tripleBufferingEnabled) {
+ mNativeObject = nativeCreate(sc.mNativeObject, width, height, tripleBufferingEnabled);
}
public void destroy() {
@@ -64,4 +66,3 @@ public final class BLASTBufferQueue {
}
}
}
-