Dont override the explicitly set paint bounds in Layer::Preroll. (flutter/engine#3313)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user