提交 4b0851b3 编写于 作者: N niulihua

fix setting app crash

Change-Id: If4aa9f395ca027aa154586901d383d7c3aaa85c3
上级 86b5ee61
......@@ -550,6 +550,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()) {
......@@ -725,7 +731,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.
先完成此消息的编辑!
想要评论请 注册