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() {
|
void DrawFrameTask::postAndWait() {
|
||||||
|
ATRACE_CALL();
|
||||||
AutoMutex _lock(mLock);
|
AutoMutex _lock(mLock);
|
||||||
mRenderThread->queue().post([this]() { run(); });
|
mRenderThread->queue().post([this]() { run(); });
|
||||||
mSignal.wait(mLock);
|
mSignal.wait(mLock);
|
||||||
|
|||||||
Reference in New Issue
Block a user