blob: 76c71195a89dd7c371a68575e584d13f8242318b [file] [log] [blame]
#include "flutter/flow/paint_region.h"
namespace flutter {
#ifdef FLUTTER_ENABLE_DIFF_CONTEXT
SkRect PaintRegion::ComputeBounds() const {
SkRect res = SkRect::MakeEmpty();
for (const auto& r : *this) {
res.join(r);
}
return res;
}
#endif // FLUTTER_ENABLE_DIFF_CONTEXT
} // namespace flutter