diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-18 16:12:09 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-18 16:12:09 +0000 |
commit | 548a1f321011292359ef163f78c8a1d4871b3b7f (patch) | |
tree | 191732df6a038211427ed81cd0936670e935f971 /src/effects/SkCornerPathEffect.cpp | |
parent | 78c0c30987075821547979de55200c32bcaa3e49 (diff) |
change all patheffect methods to const, in preparation for marking its
subclasses as immutable/re-entrant safe.
Review URL: https://codereview.appspot.com/6949071
git-svn-id: http://skia.googlecode.com/svn/trunk@6877 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects/SkCornerPathEffect.cpp')
-rw-r--r-- | src/effects/SkCornerPathEffect.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/effects/SkCornerPathEffect.cpp b/src/effects/SkCornerPathEffect.cpp index 1ce62ecc03..b63045ddf9 100644 --- a/src/effects/SkCornerPathEffect.cpp +++ b/src/effects/SkCornerPathEffect.cpp @@ -12,13 +12,8 @@ #include "SkPoint.h" #include "SkFlattenableBuffers.h" -SkCornerPathEffect::SkCornerPathEffect(SkScalar radius) : fRadius(radius) -{ -} - -SkCornerPathEffect::~SkCornerPathEffect() -{ -} +SkCornerPathEffect::SkCornerPathEffect(SkScalar radius) : fRadius(radius) {} +SkCornerPathEffect::~SkCornerPathEffect() {} static bool ComputeStep(const SkPoint& a, const SkPoint& b, SkScalar radius, SkPoint* step) { @@ -36,8 +31,8 @@ static bool ComputeStep(const SkPoint& a, const SkPoint& b, SkScalar radius, } bool SkCornerPathEffect::filterPath(SkPath* dst, const SkPath& src, - SkStrokeRec*) { - if (fRadius == 0) { + SkStrokeRec*) const { + if (0 == fRadius) { return false; } |