Flutter Engine
The Flutter Engine
Public Types | Static Public Member Functions | List of all members
SkStrokerPriv Class Reference

#include <SkStrokerPriv.h>

Public Types

typedef void(* CapProc) (SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *otherPath)
 
typedef void(* JoinProc) (SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool prevIsLine, bool currIsLine)
 

Static Public Member Functions

static CapProc CapFactory (SkPaint::Cap)
 
static JoinProc JoinFactory (SkPaint::Join)
 

Detailed Description

Definition at line 28 of file SkStrokerPriv.h.

Member Typedef Documentation

◆ CapProc

typedef void(* SkStrokerPriv::CapProc) (SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *otherPath)

Definition at line 30 of file SkStrokerPriv.h.

◆ JoinProc

typedef void(* SkStrokerPriv::JoinProc) (SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool prevIsLine, bool currIsLine)

Definition at line 36 of file SkStrokerPriv.h.

Member Function Documentation

◆ CapFactory()

SkStrokerPriv::CapProc SkStrokerPriv::CapFactory ( SkPaint::Cap  cap)
static

Definition at line 221 of file SkStrokerPriv.cpp.

221 {
222 const SkStrokerPriv::CapProc gCappers[] = {
224 };
225
226 SkASSERT((unsigned)cap < SkPaint::kCapCount);
227 return gCappers[cap];
228}
#define SkASSERT(cond)
Definition: SkAssert.h:116
static void RoundCapper(SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *)
static void ButtCapper(SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *)
static void SquareCapper(SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *otherPath)
static constexpr int kCapCount
Definition: SkPaint.h:343
void(* CapProc)(SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *otherPath)
Definition: SkStrokerPriv.h:30

◆ JoinFactory()

SkStrokerPriv::JoinProc SkStrokerPriv::JoinFactory ( SkPaint::Join  join)
static

Definition at line 230 of file SkStrokerPriv.cpp.

230 {
231 const SkStrokerPriv::JoinProc gJoiners[] = {
233 };
234
235 SkASSERT((unsigned)join < SkPaint::kJoinCount);
236 return gJoiners[join];
237}
static void MiterJoiner(SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool prevIsLine, bool currIsLine)
static void BluntJoiner(SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool, bool)
static void RoundJoiner(SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool, bool)
static constexpr int kJoinCount
Definition: SkPaint.h:368
void(* JoinProc)(SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool prevIsLine, bool currIsLine)
Definition: SkStrokerPriv.h:36
static SkString join(const CommandLineFlags::StringArray &)
Definition: skpbench.cpp:741

The documentation for this class was generated from the following files: