Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
AutoRestoreInverseness Class Reference

Public Member Functions

 AutoRestoreInverseness (GrShape *shape, const GrStyle &style)
 
 ~AutoRestoreInverseness ()
 

Detailed Description

Definition at line 512 of file GrStyledShape.cpp.

Constructor & Destructor Documentation

◆ AutoRestoreInverseness()

AutoRestoreInverseness::AutoRestoreInverseness ( GrShape shape,
const GrStyle style 
)
inline

Definition at line 514 of file GrStyledShape.cpp.

516 : fShape(shape), fInverted(!style.isDashed() && fShape->inverted()) {}
bool inverted() const
Definition: GrShape.h:99
bool isDashed() const
Definition: GrStyle.h:126

◆ ~AutoRestoreInverseness()

AutoRestoreInverseness::~AutoRestoreInverseness ( )
inline

Definition at line 518 of file GrStyledShape.cpp.

518 {
519 // Restore invertedness after any modifications were made to the shape type
520 fShape->setInverted(fInverted);
521 SkASSERT(!fShape->isPath() || fInverted == fShape->path().isInverseFillType());
522 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
bool isPath() const
Definition: GrShape.h:88
SkPath & path()
Definition: GrShape.h:140
void setInverted(bool inverted)
Definition: GrShape.h:119
bool isInverseFillType() const
Definition: SkPath.h:244

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