Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 577 of file GrStyledShape.cpp.

Constructor & Destructor Documentation

◆ AutoRestoreInverseness()

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

Definition at line 579 of file GrStyledShape.cpp.

581 : 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 583 of file GrStyledShape.cpp.

583 {
584 // Restore invertedness after any modifications were made to the shape type
585 fShape->setInverted(fInverted);
586 SkASSERT(!fShape->isPath() || fInverted == fShape->path().isInverseFillType());
587 }
#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: