| Index: src/core/SkTileGrid.cpp
|
| diff --git a/src/core/SkTileGrid.cpp b/src/core/SkTileGrid.cpp
|
| index 317d74a2d76297bda4d43649c2c458bb6b7dba90..00d459f8345c6d56cbec7b9ea172cb2b14b417f9 100644
|
| --- a/src/core/SkTileGrid.cpp
|
| +++ b/src/core/SkTileGrid.cpp
|
| @@ -25,16 +25,11 @@ SkTileGrid::~SkTileGrid() {
|
|
|
| void SkTileGrid::insert(unsigned opIndex, const SkRect& fbounds, bool) {
|
| SkASSERT(!fbounds.isEmpty());
|
| +
|
| SkIRect dilatedBounds;
|
| - if (fbounds.isLargest()) {
|
| - // Dilating the largest SkIRect will overflow. Other nearly-largest rects may overflow too,
|
| - // but we don't make active use of them like we do the largest.
|
| - dilatedBounds.setLargest();
|
| - } else {
|
| - fbounds.roundOut(&dilatedBounds);
|
| - dilatedBounds.outset(fInfo.fMargin.width(), fInfo.fMargin.height());
|
| - dilatedBounds.offset(fInfo.fOffset);
|
| - }
|
| + fbounds.roundOut(&dilatedBounds);
|
| + dilatedBounds.outset(fInfo.fMargin.width(), fInfo.fMargin.height());
|
| + dilatedBounds.offset(fInfo.fOffset);
|
|
|
| const SkIRect gridBounds =
|
| { 0, 0, fInfo.fTileInterval.width() * fXTiles, fInfo.fTileInterval.height() * fYTiles };
|
|
|