Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
SkOpGlobalState Class Reference

#include <SkPathOpsTypes.h>

Public Types

enum  { kMaxWindingTries = 10 }
 

Public Member Functions

 SkOpGlobalState (SkOpContourHead *head, SkArenaAlloc *allocator SkDEBUGPARAMS(bool debugSkipAssert) SkDEBUGPARAMS(const char *testName))
 
bool allocatedOpSpan () const
 
SkArenaAllocallocator ()
 
void bumpNested ()
 
void clearNested ()
 
SkOpCoincidencecoincidence ()
 
SkOpContourHeadcontourHead ()
 
int nested () const
 
SkOpPhase phase () const
 
void resetAllocatedOpSpan ()
 
void setAllocatedOpSpan ()
 
void setCoincidence (SkOpCoincidence *coincidence)
 
void setContourHead (SkOpContourHead *contourHead)
 
void setPhase (SkOpPhase phase)
 
void setWindingFailed ()
 
bool windingFailed () const
 

Static Public Member Functions

static bool DebugRunFail ()
 

Detailed Description

Definition at line 36 of file SkPathOpsTypes.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kMaxWindingTries 

Definition at line 42 of file SkPathOpsTypes.h.

42 {
44 };

Constructor & Destructor Documentation

◆ SkOpGlobalState()

SkOpGlobalState::SkOpGlobalState ( SkOpContourHead head,
SkArenaAlloc *allocator   SkDEBUGPARAMSbool debugSkipAssert) SkDEBUGPARAMS(const char *testName 
)

Definition at line 203 of file SkPathOpsTypes.cpp.

207 : fAllocator(allocator)
208 , fCoincidence(nullptr)
209 , fContourHead(head)
210 , fNested(0)
211 , fWindingFailed(false)
213 SkDEBUGPARAMS(fDebugTestName(testName))
214 SkDEBUGPARAMS(fAngleID(0))
215 SkDEBUGPARAMS(fCoinID(0))
216 SkDEBUGPARAMS(fContourID(0))
217 SkDEBUGPARAMS(fPtTID(0))
218 SkDEBUGPARAMS(fSegmentID(0))
219 SkDEBUGPARAMS(fSpanID(0))
220 SkDEBUGPARAMS(fDebugSkipAssert(debugSkipAssert)) {
221#if DEBUG_T_SECT_LOOP_COUNT
222 debugResetLoopCounts();
223#endif
224#if DEBUG_COIN
225 fPreviousFuncName = nullptr;
226#endif
227}
#define SkDEBUGPARAMS(...)
SkArenaAlloc * allocator()

Member Function Documentation

◆ allocatedOpSpan()

bool SkOpGlobalState::allocatedOpSpan ( ) const
inline

Definition at line 46 of file SkPathOpsTypes.h.

46 {
47 return fAllocatedOpSpan;
48 }

◆ allocator()

SkArenaAlloc * SkOpGlobalState::allocator ( )
inline

Definition at line 50 of file SkPathOpsTypes.h.

50 {
51 return fAllocator;
52 }

◆ bumpNested()

void SkOpGlobalState::bumpNested ( )
inline

Definition at line 54 of file SkPathOpsTypes.h.

54 {
55 ++fNested;
56 }

◆ clearNested()

void SkOpGlobalState::clearNested ( )
inline

Definition at line 58 of file SkPathOpsTypes.h.

58 {
59 fNested = 0;
60 }

◆ coincidence()

SkOpCoincidence * SkOpGlobalState::coincidence ( )
inline

Definition at line 62 of file SkPathOpsTypes.h.

62 {
63 return fCoincidence;
64 }

◆ contourHead()

SkOpContourHead * SkOpGlobalState::contourHead ( )
inline

Definition at line 66 of file SkPathOpsTypes.h.

66 {
67 return fContourHead;
68 }

◆ DebugRunFail()

bool SkOpGlobalState::DebugRunFail ( )
static

Definition at line 657 of file SkPathOpsDebug.cpp.

657 {
659}
static bool gRunFail

◆ nested()

int SkOpGlobalState::nested ( ) const
inline

Definition at line 113 of file SkPathOpsTypes.h.

113 {
114 return fNested;
115 }

◆ phase()

SkOpPhase SkOpGlobalState::phase ( ) const
inline

Definition at line 143 of file SkPathOpsTypes.h.

143 {
144 return fPhase;
145 }

◆ resetAllocatedOpSpan()

void SkOpGlobalState::resetAllocatedOpSpan ( )
inline

Definition at line 147 of file SkPathOpsTypes.h.

147 {
148 fAllocatedOpSpan = false;
149 }

◆ setAllocatedOpSpan()

void SkOpGlobalState::setAllocatedOpSpan ( )
inline

Definition at line 151 of file SkPathOpsTypes.h.

151 {
152 fAllocatedOpSpan = true;
153 }

◆ setCoincidence()

void SkOpGlobalState::setCoincidence ( SkOpCoincidence coincidence)
inline

Definition at line 155 of file SkPathOpsTypes.h.

155 {
156 fCoincidence = coincidence;
157 }
SkOpCoincidence * coincidence()

◆ setContourHead()

void SkOpGlobalState::setContourHead ( SkOpContourHead contourHead)
inline

Definition at line 159 of file SkPathOpsTypes.h.

159 {
160 fContourHead = contourHead;
161 }
SkOpContourHead * contourHead()

◆ setPhase()

void SkOpGlobalState::setPhase ( SkOpPhase  phase)
inline

Definition at line 163 of file SkPathOpsTypes.h.

163 {
165 return;
166 }
167 SkASSERT(fPhase != phase);
168 fPhase = phase;
169 }
#define SkASSERT(cond)
Definition SkAssert.h:116
SkOpPhase phase() const

◆ setWindingFailed()

void SkOpGlobalState::setWindingFailed ( )
inline

Definition at line 172 of file SkPathOpsTypes.h.

172 {
173 fWindingFailed = true;
174 }

◆ windingFailed()

bool SkOpGlobalState::windingFailed ( ) const
inline

Definition at line 176 of file SkPathOpsTypes.h.

176 {
177 return fWindingFailed;
178 }

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