提交 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) ...@@ -551,6 +551,12 @@ void RootView::DrawTop(UIView* view, const Rect& rect)
bool enableAnimator = false; bool enableAnimator = false;
TransformMap curTransMap; TransformMap curTransMap;
#if ENABLE_WINDOW
WindowImpl* boundWin = static_cast<WindowImpl*>(GetBoundWindow());
BufferInfo* gfxDstBuffer = boundWin->GetBufferInfo();
UpdateBufferInfo(gfxDstBuffer);
#endif
while (par != nullptr) { while (par != nullptr) {
if (curView != nullptr) { if (curView != nullptr) {
if (curView->IsVisible()) { if (curView->IsVisible()) {
...@@ -726,7 +732,6 @@ void RootView::DestroyMapBufferInfo() ...@@ -726,7 +732,6 @@ void RootView::DestroyMapBufferInfo()
void RootView::InitDrawContext() void RootView::InitDrawContext()
{ {
dc_.bufferInfo = BaseGfxEngine::GetInstance()->GetFBBufferInfo(); dc_.bufferInfo = BaseGfxEngine::GetInstance()->GetFBBufferInfo();
if (dc_.bufferInfo != nullptr) { if (dc_.bufferInfo != nullptr) {
InitMapBufferInfo(dc_.bufferInfo); InitMapBufferInfo(dc_.bufferInfo);
} }
......
...@@ -214,9 +214,6 @@ void WindowImpl::UpdateHalDisplayBuffer() ...@@ -214,9 +214,6 @@ void WindowImpl::UpdateHalDisplayBuffer()
return; return;
} }
surface->Lock((void**)&gfxAlloc_.virAddr, (void**)&gfxAlloc_.phyAddr, &gfxAlloc_.stride); 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.
先完成此消息的编辑!
想要评论请 注册