提交 d6e29598 编写于 作者: O openharmony_ci 提交者: Gitee

!176 fix setting app crash

Merge pull request !176 from niulihua/master
......@@ -551,6 +551,12 @@ void RootView::DrawTop(UIView* view, const Rect& rect)
bool enableAnimator = false;
TransformMap curTransMap;
#if ENABLE_WINDOW
WindowImpl* boundWin = static_cast<WindowImpl*>(GetBoundWindow());
BufferInfo* gfxDstBuffer = boundWin->GetBufferInfo();
UpdateBufferInfo(gfxDstBuffer);
#endif
while (par != nullptr) {
if (curView != nullptr) {
if (curView->IsVisible()) {
......@@ -726,7 +732,6 @@ void RootView::DestroyMapBufferInfo()
void RootView::InitDrawContext()
{
dc_.bufferInfo = BaseGfxEngine::GetInstance()->GetFBBufferInfo();
if (dc_.bufferInfo != nullptr) {
InitMapBufferInfo(dc_.bufferInfo);
}
......
......@@ -214,9 +214,6 @@ void WindowImpl::UpdateHalDisplayBuffer()
return;
}
surface->Lock((void**)&gfxAlloc_.virAddr, (void**)&gfxAlloc_.phyAddr, &gfxAlloc_.stride);
BufferInfo* bufferInfo = GetBufferInfo();
rootView_->UpdateBufferInfo(bufferInfo);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册