| Index: src/gpu/GrStyle.h
|
| diff --git a/src/gpu/GrStyle.h b/src/gpu/GrStyle.h
|
| index 326f800442c9d2061102ffa2bcfc89b25a552ffc..478564f3f918196125269e9bcd10b523a313390a 100644
|
| --- a/src/gpu/GrStyle.h
|
| +++ b/src/gpu/GrStyle.h
|
| @@ -113,6 +113,13 @@ public:
|
| /** Is this style a hairline with no path effect? */
|
| bool isSimpleHairline() const { return fStrokeRec.isHairlineStyle() && !fPathEffect; }
|
|
|
| + bool couldBeHairline() const {
|
| + // If the original stroke rec has hairline style then either a null or dash patheffect
|
| + // would preserve the hairline status. An arbitrary path effect could introduce hairline
|
| + // style.
|
| + return this->strokeRec().isHairlineStyle() || this->hasNonDashPathEffect();
|
| + }
|
| +
|
| SkPathEffect* pathEffect() const { return fPathEffect.get(); }
|
|
|
| bool hasPathEffect() const { return SkToBool(fPathEffect.get()); }
|
|
|