diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-08 14:42:56 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-08 14:42:56 +0000 |
commit | 1b20a10f0205da2d53e0837e4ddc6b2bd3b8a462 (patch) | |
tree | cf919a6c7d0402284ede9539ae44e1f8fd8cb803 /src/core/SkDrawProcs.h | |
parent | ab7442c8d733e0642d1cd80af23cdab43d77039e (diff) |
Revert "Do not apply hairline optimization for paths if nv_path_rendering is used"
This reverts commit r12185.
Review URL: https://codereview.chromium.org/66813002
git-svn-id: http://skia.googlecode.com/svn/trunk@12187 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkDrawProcs.h')
-rw-r--r-- | src/core/SkDrawProcs.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/core/SkDrawProcs.h b/src/core/SkDrawProcs.h index 44532298f0..8b8c382667 100644 --- a/src/core/SkDrawProcs.h +++ b/src/core/SkDrawProcs.h @@ -59,32 +59,12 @@ struct SkDrawProcs { SkDraw1Glyph::Proc fD1GProc; }; -bool SkDrawTreatAAStrokeAsHairline(SkScalar strokeWidth, const SkMatrix&, - SkScalar* coverage); - /** * If the current paint is set to stroke and the stroke-width when applied to * the matrix is <= 1.0, then this returns true, and sets coverage (simulating * a stroke by drawing a hairline with partial coverage). If any of these * conditions are false, then this returns false and coverage is ignored. */ -inline bool SkDrawTreatAsHairline(const SkPaint& paint, const SkMatrix& matrix, - SkScalar* coverage) { - if (SkPaint::kStroke_Style != paint.getStyle()) { - return false; - } - - SkScalar strokeWidth = paint.getStrokeWidth(); - if (0 == strokeWidth) { - *coverage = SK_Scalar1; - return true; - } - - if (!paint.isAntiAlias()) { - return false; - } - - return SkDrawTreatAAStrokeAsHairline(strokeWidth, matrix, coverage); -} +bool SkDrawTreatAsHairline(const SkPaint&, const SkMatrix&, SkScalar* coverage); #endif |