diff options
author | Brian Salomon <bsalomon@google.com> | 2017-12-20 13:28:55 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-20 18:47:36 +0000 |
commit | 2fad74a0fdc5eb3f505a052849c3cbeffa6e2d17 (patch) | |
tree | 6a3ec7975dc7ff37a6e8ccfe817fc3ccbd723b18 /src/gpu/GrShape.h | |
parent | 939e6719abb657096b5837d67d594256aa69da45 (diff) |
Make GrRenderTargetContext::drawPath() use GrShape to identify simpler
geometries.
Change-Id: I24230efc8bcb60f00c0c855090e3311ad13d7da8
Reviewed-on: https://skia-review.googlesource.com/85962
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
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; |