提交 37231e74 编写于 作者: C Chinmay Garde 提交者: GitHub

Dont override the explicitly set paint bounds in Layer::Preroll. (#3313)

上级 b65e1b91
......@@ -17,7 +17,9 @@ Layer::Layer()
Layer::~Layer() = default;
void Layer::Preroll(PrerollContext* context, const SkMatrix& matrix) {
set_paint_bounds(SkRect::MakeEmpty());
if (!has_paint_bounds()) {
set_paint_bounds(SkRect::MakeEmpty());
}
}
#if defined(OS_FUCHSIA)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册