diff options
Diffstat (limited to 'src/gpu/GrShape.h')
-rw-r--r-- | src/gpu/GrShape.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrShape.h b/src/gpu/GrShape.h index 032c4d5e57..924232e8cf 100644 --- a/src/gpu/GrShape.h +++ b/src/gpu/GrShape.h @@ -338,7 +338,8 @@ public: case Type::kRRect: if (fRRectData.fRRect.getType() == SkRRect::kOval_Type) { return SkPath::kConic_SegmentMask; - } else if (fRRectData.fRRect.getType() == SkRRect::kRect_Type) { + } else if (fRRectData.fRRect.getType() == SkRRect::kRect_Type || + fRRectData.fRRect.getType() == SkRRect::kEmpty_Type) { return SkPath::kLine_SegmentMask; } return SkPath::kLine_SegmentMask | SkPath::kConic_SegmentMask; |