aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrShape.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-06-14 14:37:21 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-14 14:37:21 -0700
commitfd32df716cfc787a3ac50efb293a9317a97078c5 (patch)
treee7d7de97ef88ee4d9cc8a526d646eeff245209f5 /src/gpu/GrShape.h
parentf7fcdb226dc1a2d2929ef26c5ce7cea4460b809c (diff)
Fix GrShape to preserve inverseness of rrects for strokes but not dashes.
Diffstat (limited to 'src/gpu/GrShape.h')
-rw-r--r--src/gpu/GrShape.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gpu/GrShape.h b/src/gpu/GrShape.h
index 93896ce3f0..6da1a41acb 100644
--- a/src/gpu/GrShape.h
+++ b/src/gpu/GrShape.h
@@ -293,13 +293,9 @@ private:
SkASSERT(Type::kRRect == fType);
SkASSERT(!fInheritedKey.count());
if (fRRectIsInverted) {
- if (!fStyle.hasNonDashPathEffect()) {
- SkStrokeRec::Style recStyle = fStyle.strokeRec().getStyle();
- if (SkStrokeRec::kStroke_Style == recStyle ||
- SkStrokeRec::kHairline_Style == recStyle) {
- // stroking ignores the path fill rule.
- fRRectIsInverted = false;
- }
+ if (fStyle.isDashed()) {
+ // Dashing ignores the inverseness (currently). skbug.com/5421
+ fRRectIsInverted = false;
}
} else if (fRRect.isEmpty()) {
fType = Type::kEmpty;