提交 0825de52 编写于 作者: W wangtiantian

IssueNo:https://gitee.com/openharmony/graphic_ui/issues/I4DTMW

Description:fix GetBitmap bug
Sig:graphic
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: Nwangtiantian <wangtiantian19@huawei.com>
上级 95fc398e
......@@ -1019,7 +1019,7 @@ bool UIView::GetBitmap(ImageInfo& bitmap)
RootView::GetInstance()->SaveDrawContext();
RootView::GetInstance()->UpdateBufferInfo(&newBufferInfo);
RootView::GetInstance()->Measure();
RootView::GetInstance()->MeasureView(this);
RootView::GetInstance()->DrawTop(this, mask);
RootView::GetInstance()->RestoreDrawContext();
nextSibling_ = tempSibling;
......
......@@ -265,6 +265,8 @@ public:
*/
void Measure();
void MeasureView(UIView* view);
/**
* @brief update momory info based on FB buffer info.
*
......@@ -304,7 +306,6 @@ private:
inline Rect GetScreenRect();
void AddInvalidateRectWithLock(Rect& rect, UIView *view);
void AddInvalidateRect(Rect& rect, UIView* view);
void MeasureView(UIView* view);
void Render();
UIView* GetTopUIView(const Rect& rect);
void InitDrawContext();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册