2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef SkArcToPathEffect_DEFINED
9 #define SkArcToPathEffect_DEFINED
11 #include "SkPathEffect.h"
13 class SK_API SkArcToPathEffect : public SkPathEffect {
15 /** radius must be > 0 to have an effect. It specifies the distance from each corner
16 that should be "rounded".
18 static SkPathEffect* Create(SkScalar radius) {
22 return SkNEW_ARGS(SkArcToPathEffect, (radius));
25 bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec*, const SkRect*) const SK_OVERRIDE;
27 SK_TO_STRING_OVERRIDE()
28 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkArcToPathEffect)
31 explicit SkArcToPathEffect(SkScalar radius);
32 void flatten(SkWriteBuffer&) const SK_OVERRIDE;
37 typedef SkPathEffect INHERITED;