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

This commit is contained in:
Chinmay Garde
2016-12-13 17:14:25 -08:00
committed by GitHub
parent 07b11ca18b
commit 327e5163cf

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)