提交 039a475b 编写于 作者: L lancer 提交者: 郝烁

fixed 02443c02 from https://gitee.com/shengu_lancer/graphic_ui/pulls/812

Description: unlock immediately after finish render
IssueNo:https://gitee.com/openharmony/graphic_ui/issues/I61IQH
Feature or Bugfix: Bugfix
Binary Source:NO
Signed-off-by: Nlancer <haoshuo@huawei.com>
上级 2aad83ca
......@@ -544,6 +544,10 @@ void RootView::Render()
invalidateRects_.Clear();
#endif
#if defined __linux__ || defined __LITEOS__ || defined __APPLE__
pthread_mutex_unlock(&lock_);
#endif
#if ENABLE_WINDOW
if (boundWindow_) {
boundWindow_->Flush();
......@@ -551,10 +555,11 @@ void RootView::Render()
}
#endif
BaseGfxEngine::GetInstance()->Flush(flushRect);
}
} else {
#if defined __linux__ || defined __LITEOS__ || defined __APPLE__
pthread_mutex_unlock(&lock_);
#endif
}
}
void RootView::BlitMapBuffer(Rect& curViewRect, TransformMap& transMap, const Rect& invalidatedArea)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册