From 1a4a981199860f0f9c4738dc426d8349e16b0dd5 Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 18 Apr 2018 16:13:31 -0700 Subject: Revert "Add support for render-ahead" This reverts commit ec100976e0655acaa204c8800dfb83dadae20cc8. Reason for revert: b/77971494 Test: hwuiunit passes Change-Id: I2e7dc719d2df1dd939b275496c0edc38e458c434 --- libs/hwui/renderthread/DrawFrameTask.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp') diff --git a/libs/hwui/renderthread/DrawFrameTask.cpp b/libs/hwui/renderthread/DrawFrameTask.cpp index 5b0e28125502..778e7689d0f9 100644 --- a/libs/hwui/renderthread/DrawFrameTask.cpp +++ b/libs/hwui/renderthread/DrawFrameTask.cpp @@ -103,8 +103,9 @@ 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)) { -- cgit v1.2.3