Flutter Engine
The Flutter Engine
|
Go to the source code of this file.
Functions | |
bool | SkDrawTreatAAStrokeAsHairline (SkScalar strokeWidth, const SkMatrix &, SkScalar *coverage) |
bool | SkDrawTreatAsHairline (const SkPaint &paint, const SkMatrix &matrix, SkScalar *coverage) |
bool SkDrawTreatAAStrokeAsHairline | ( | SkScalar | strokeWidth, |
const SkMatrix & | matrix, | ||
SkScalar * | coverage | ||
) |
Definition at line 262 of file SkDrawBase.cpp.
|
inline |
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.
Definition at line 24 of file SkDrawProcs.h.