blob: 760259a12c422f733f1b9fa54dad1d605493260d [file] [log] [blame] [edit]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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