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

This commit is contained in:
Chinmay Garde 2016-12-13 17:14:25 -08:00 committed by GitHub
parent b65e1b91b5
commit 37231e749c

View File

@ -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)