Merge "Add postAndWait() trace for calculating frame drawing time" into tm-dev am: 5591cf0712
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17184229 Change-Id: If133d592bcebd679134f8601bfe43eac6689ca79
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