DO NOT MERGE: ViewRoot/BBQ: Cleanup flushShadowQueue
It's already a noop, we just never cleaned up the frameworks/base side. Bug: 200285149 Test: Existing tests pass Change-Id: I7d79404f93a9386b16fb9770bbd7290dfb236cc0
This commit is contained in:
@@ -4164,11 +4164,6 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else if (reportNextDraw) {
|
|
||||||
// If we need to report next draw, wait for adapter to flush its shadow queue
|
|
||||||
// by processing previously queued buffers so that we can submit the
|
|
||||||
// transaction a timely manner.
|
|
||||||
mBlastBufferQueue.flushShadowQueue();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
registerRtFrameCallback(frameDrawingCallback);
|
registerRtFrameCallback(frameDrawingCallback);
|
||||||
|
|||||||
@@ -112,11 +112,6 @@ static void nativeUpdate(JNIEnv* env, jclass clazz, jlong ptr, jlong surfaceCont
|
|||||||
transaction);
|
transaction);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nativeFlushShadowQueue(JNIEnv* env, jclass clazz, jlong ptr) {
|
|
||||||
sp<BLASTBufferQueue> queue = reinterpret_cast<BLASTBufferQueue*>(ptr);
|
|
||||||
queue->flushShadowQueue();
|
|
||||||
}
|
|
||||||
|
|
||||||
static void nativeMergeWithNextTransaction(JNIEnv*, jclass clazz, jlong ptr, jlong transactionPtr,
|
static void nativeMergeWithNextTransaction(JNIEnv*, jclass clazz, jlong ptr, jlong transactionPtr,
|
||||||
jlong framenumber) {
|
jlong framenumber) {
|
||||||
sp<BLASTBufferQueue> queue = reinterpret_cast<BLASTBufferQueue*>(ptr);
|
sp<BLASTBufferQueue> queue = reinterpret_cast<BLASTBufferQueue*>(ptr);
|
||||||
@@ -147,7 +142,6 @@ static const JNINativeMethod gMethods[] = {
|
|||||||
{"nativeDestroy", "(J)V", (void*)nativeDestroy},
|
{"nativeDestroy", "(J)V", (void*)nativeDestroy},
|
||||||
{"nativeSetNextTransaction", "(JJ)V", (void*)nativeSetNextTransaction},
|
{"nativeSetNextTransaction", "(JJ)V", (void*)nativeSetNextTransaction},
|
||||||
{"nativeUpdate", "(JJJJIJ)V", (void*)nativeUpdate},
|
{"nativeUpdate", "(JJJJIJ)V", (void*)nativeUpdate},
|
||||||
{"nativeFlushShadowQueue", "(J)V", (void*)nativeFlushShadowQueue},
|
|
||||||
{"nativeMergeWithNextTransaction", "(JJJ)V", (void*)nativeMergeWithNextTransaction},
|
{"nativeMergeWithNextTransaction", "(JJJ)V", (void*)nativeMergeWithNextTransaction},
|
||||||
{"nativeSetTransactionCompleteCallback",
|
{"nativeSetTransactionCompleteCallback",
|
||||||
"(JJLandroid/graphics/BLASTBufferQueue$TransactionCompleteCallback;)V",
|
"(JJLandroid/graphics/BLASTBufferQueue$TransactionCompleteCallback;)V",
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ public final class BLASTBufferQueue {
|
|||||||
private static native void nativeSetNextTransaction(long ptr, long transactionPtr);
|
private static native void nativeSetNextTransaction(long ptr, long transactionPtr);
|
||||||
private static native void nativeUpdate(long ptr, long surfaceControl, long width, long height,
|
private static native void nativeUpdate(long ptr, long surfaceControl, long width, long height,
|
||||||
int format, long transactionPtr);
|
int format, long transactionPtr);
|
||||||
private static native void nativeFlushShadowQueue(long ptr);
|
|
||||||
private static native void nativeMergeWithNextTransaction(long ptr, long transactionPtr,
|
private static native void nativeMergeWithNextTransaction(long ptr, long transactionPtr,
|
||||||
long frameNumber);
|
long frameNumber);
|
||||||
private static native void nativeSetTransactionCompleteCallback(long ptr, long frameNumber,
|
private static native void nativeSetTransactionCompleteCallback(long ptr, long frameNumber,
|
||||||
@@ -124,10 +123,6 @@ public final class BLASTBufferQueue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void flushShadowQueue() {
|
|
||||||
nativeFlushShadowQueue(mNativeObject);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Merge the transaction passed in to the next transaction in BlastBufferQueue. The next
|
* Merge the transaction passed in to the next transaction in BlastBufferQueue. The next
|
||||||
* transaction will be applied or merged when the next frame with specified frame number
|
* transaction will be applied or merged when the next frame with specified frame number
|
||||||
|
|||||||
Reference in New Issue
Block a user