gfx/skia/trunk/src/core/SkStrokerPriv.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/core/SkStrokerPriv.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2006 The Android Open Source Project
     1.7 + *
     1.8 + * Use of this source code is governed by a BSD-style license that can be
     1.9 + * found in the LICENSE file.
    1.10 + */
    1.11 +
    1.12 +
    1.13 +#ifndef SkStrokerPriv_DEFINED
    1.14 +#define SkStrokerPriv_DEFINED
    1.15 +
    1.16 +#include "SkStroke.h"
    1.17 +
    1.18 +#define CWX(x, y)   (-y)
    1.19 +#define CWY(x, y)   (x)
    1.20 +#define CCWX(x, y)  (y)
    1.21 +#define CCWY(x, y)  (-x)
    1.22 +
    1.23 +#define CUBIC_ARC_FACTOR    ((SK_ScalarSqrt2 - SK_Scalar1) * 4 / 3)
    1.24 +
    1.25 +class SkStrokerPriv {
    1.26 +public:
    1.27 +    typedef void (*CapProc)(SkPath* path,
    1.28 +                            const SkPoint& pivot,
    1.29 +                            const SkVector& normal,
    1.30 +                            const SkPoint& stop,
    1.31 +                            SkPath* otherPath);
    1.32 +
    1.33 +    typedef void (*JoinProc)(SkPath* outer, SkPath* inner,
    1.34 +                             const SkVector& beforeUnitNormal,
    1.35 +                             const SkPoint& pivot,
    1.36 +                             const SkVector& afterUnitNormal,
    1.37 +                             SkScalar radius, SkScalar invMiterLimit,
    1.38 +                             bool prevIsLine, bool currIsLine);
    1.39 +
    1.40 +    static CapProc  CapFactory(SkPaint::Cap);
    1.41 +    static JoinProc JoinFactory(SkPaint::Join);
    1.42 +};
    1.43 +
    1.44 +#endif

mercurial