| Index: src/gpu/batches/GrRectBatchFactory.cpp
|
| diff --git a/src/gpu/batches/GrRectBatchFactory.cpp b/src/gpu/batches/GrRectBatchFactory.cpp
|
| index f144d1b5325ec40a0f4fe25bc9dd2f1ccdc1ce87..d2ba7f4442d7a223507c9063a58ddaef69d038ce 100644
|
| --- a/src/gpu/batches/GrRectBatchFactory.cpp
|
| +++ b/src/gpu/batches/GrRectBatchFactory.cpp
|
| @@ -22,9 +22,14 @@ GrDrawBatch* CreateAAFillNestedRects(GrColor color,
|
| SkRect devOutside, devInside;
|
| viewMatrix.mapRect(&devOutside, rects[0]);
|
| viewMatrix.mapRect(&devInside, rects[1]);
|
| -
|
| - return GrAAStrokeRectBatch::Create(color, viewMatrix, devOutside, devOutside, devInside, true,
|
| - devInside.isEmpty());
|
| + if (devInside.isEmpty()) {
|
| + if (devOutside.isEmpty()) {
|
| + return nullptr;
|
| + }
|
| + return GrAAFillRectBatch::Create(color, viewMatrix, devOutside, devOutside);
|
| + }
|
| +
|
| + return GrAAStrokeRectBatch::CreateFillBetweenRects(color, viewMatrix, devOutside, devInside);
|
| }
|
|
|
| };
|
|
|