Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Public Attributes | List of all members
Edge Struct Reference

Public Types

enum  { kY0Link = 0x01 , kY1Link = 0x02 , kCompleteLink = (kY0Link | kY1Link) }
 

Public Member Functions

void set (int x, int y0, int y1)
 
int top () const
 
Edge reverse () const
 

Public Attributes

SkRegionPriv::RunType fX
 
SkRegionPriv::RunType fY0
 
SkRegionPriv::RunType fY1
 
uint8_t fFlags
 
EdgefNext
 
SkPoint fP0
 
SkPoint fP1
 

Detailed Description

Definition at line 445 of file SkRegion_path.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kY0Link 
kY1Link 
kCompleteLink 

Definition at line 446 of file SkRegion_path.cpp.

446 {
447 kY0Link = 0x01,
448 kY1Link = 0x02,
449
451 };
@ kCompleteLink

Member Function Documentation

◆ reverse()

Edge Edge::reverse ( ) const
inline

Definition at line 951 of file TriangulatingPathRendererTests.cpp.

951{ return {fP1, fP0}; }

◆ set()

void Edge::set ( int  x,
int  y0,
int  y1 
)
inline

Definition at line 458 of file SkRegion_path.cpp.

458 {
459 SkASSERT(y0 != y1);
460
464 fFlags = 0;
465 SkDEBUGCODE(fNext = nullptr;)
466 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
SkRegion::RunType RunType
Definition: SkRegionPriv.h:22
double x
uint8_t fFlags
SkRegionPriv::RunType fX
SkRegionPriv::RunType fY0
SkRegionPriv::RunType fY1
Edge * fNext

◆ top()

int Edge::top ( ) const
inline

Definition at line 468 of file SkRegion_path.cpp.

468 {
469 return std::min(fY0, fY1);
470 }
static float min(float r, float g, float b)
Definition: hsl.cpp:48

Member Data Documentation

◆ fFlags

uint8_t Edge::fFlags

Definition at line 455 of file SkRegion_path.cpp.

◆ fNext

Edge* Edge::fNext

Definition at line 456 of file SkRegion_path.cpp.

◆ fP0

SkPoint Edge::fP0

Definition at line 952 of file TriangulatingPathRendererTests.cpp.

◆ fP1

SkPoint Edge::fP1

Definition at line 952 of file TriangulatingPathRendererTests.cpp.

◆ fX

Definition at line 453 of file SkRegion_path.cpp.

◆ fY0

Definition at line 454 of file SkRegion_path.cpp.

◆ fY1

Definition at line 454 of file SkRegion_path.cpp.


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