diff options
author | Brian Salomon <bsalomon@google.com> | 2017-12-21 11:56:42 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-21 22:45:15 +0000 |
commit | 72f78c37010eb2bf20be4884d4f376d122830dfd (patch) | |
tree | 3ff52aa1e3f3bc8776e85f9c64f4c371772b336b /src/gpu/GrShape.h | |
parent | 6925fc0429424cae67a887e6faa27f168995612a (diff) |
Make GrShape recognize horizontal/vertical dashed lines with 0 off intervals as rrects.
Change-Id: Ic29b41911e0185d36093d5352f4494709e8124ba
Reviewed-on: https://skia-review.googlesource.com/88428
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrShape.h')
-rw-r--r-- | src/gpu/GrShape.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrShape.h b/src/gpu/GrShape.h index 924232e8cf..07cccb8a83 100644 --- a/src/gpu/GrShape.h +++ b/src/gpu/GrShape.h @@ -438,6 +438,8 @@ private: void attemptToSimplifyRRect(); void attemptToSimplifyLine(); + bool attemptToSimplifyStrokedLineToRRect(); + // Defaults to use when there is no distinction between even/odd and winding fills. static constexpr SkPath::FillType kDefaultPathFillType = SkPath::kEvenOdd_FillType; static constexpr SkPath::FillType kDefaultPathInverseFillType = |