mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Dont override the explicitly set paint bounds in Layer::Preroll. (#3313)
This commit is contained in:
parent
b65e1b91b5
commit
37231e749c
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user