Support render-ahead in vulkan
Bug: 127822449 Test: verified render_ahead working with skiavk Change-Id: Iae1b227a763f6def035057f38cca4b0ab65c7e82
This commit is contained in:
@@ -109,9 +109,8 @@ void DrawFrameTask::run() {
|
||||
|
||||
// Even if we aren't drawing this vsync pulse the next frame number will still be accurate
|
||||
if (CC_UNLIKELY(callback)) {
|
||||
context->enqueueFrameWork([callback, frameNr = context->getFrameNumber()]() {
|
||||
callback(frameNr);
|
||||
});
|
||||
context->enqueueFrameWork(
|
||||
[callback, frameNr = context->getFrameNumber()]() { callback(frameNr); });
|
||||
}
|
||||
|
||||
if (CC_LIKELY(canDrawThisFrame)) {
|
||||
|
||||
Reference in New Issue
Block a user