Merge "Add postAndWait() trace for calculating frame drawing time" into tm-dev
This commit is contained in:
@@ -133,6 +133,7 @@ int DrawFrameTask::drawFrame() {
|
||||
}
|
||||
|
||||
void DrawFrameTask::postAndWait() {
|
||||
ATRACE_CALL();
|
||||
AutoMutex _lock(mLock);
|
||||
mRenderThread->queue().post([this]() { run(); });
|
||||
mSignal.wait(mLock);
|
||||
|
||||
Reference in New Issue
Block a user