提交 2bb8fdcd 编写于 作者: O openharmony_ci 提交者: Gitee

!482 修改GetBitMap截图缺少ReMeasure问题

Merge pull request !482 from wangtiantian/bug_measure_m
......@@ -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.
先完成此消息的编辑!
想要评论请 注册