Flutter Engine
The Flutter Engine
Classes | Public Member Functions | List of all members
skgpu::tess::MiddleOutPolygonTriangulator::PoppedTriangleStack Class Reference

#include <MiddleOutPolygonTriangulator.h>

Classes

struct  Iter
 

Public Member Functions

 PoppedTriangleStack (MiddleOutPolygonTriangulator *middleOut, SkPoint lastPoint, StackVertex *end, StackVertex *newTopVertex, StackVertex newTopValue)
 
 PoppedTriangleStack (PoppedTriangleStack &&that)
 
 ~PoppedTriangleStack ()
 
Iter begin () const
 
Iter end () const
 

Detailed Description

Definition at line 78 of file MiddleOutPolygonTriangulator.h.

Constructor & Destructor Documentation

◆ PoppedTriangleStack() [1/2]

skgpu::tess::MiddleOutPolygonTriangulator::PoppedTriangleStack::PoppedTriangleStack ( MiddleOutPolygonTriangulator middleOut,
SkPoint  lastPoint,
StackVertex *  end,
StackVertex *  newTopVertex,
StackVertex  newTopValue 
)
inline

Definition at line 80 of file MiddleOutPolygonTriangulator.h.

85 : fMiddleOut(middleOut)
86 , fLastPoint(lastPoint)
87 , fEnd(end)
88 , fNewTopVertex(newTopVertex)
89 , fNewTopValue(newTopValue) {
90 }

◆ PoppedTriangleStack() [2/2]

skgpu::tess::MiddleOutPolygonTriangulator::PoppedTriangleStack::PoppedTriangleStack ( PoppedTriangleStack &&  that)
inline

Definition at line 92 of file MiddleOutPolygonTriangulator.h.

92 {
93 memcpy(this, &that, sizeof(*this));
94 that.fMiddleOut = nullptr; // Don't do a stack update during our destructor.
95 }

◆ ~PoppedTriangleStack()

skgpu::tess::MiddleOutPolygonTriangulator::PoppedTriangleStack::~PoppedTriangleStack ( )
inline

Definition at line 97 of file MiddleOutPolygonTriangulator.h.

97 {
98 if (fMiddleOut) {
99 fMiddleOut->fTop = fNewTopVertex;
100 *fNewTopVertex = fNewTopValue;
101 }
102 }

Member Function Documentation

◆ begin()

Iter skgpu::tess::MiddleOutPolygonTriangulator::PoppedTriangleStack::begin ( ) const
inline

Definition at line 114 of file MiddleOutPolygonTriangulator.h.

114{ return {fMiddleOut ? fMiddleOut->fTop : fEnd, fLastPoint}; }

◆ end()

Iter skgpu::tess::MiddleOutPolygonTriangulator::PoppedTriangleStack::end ( ) const
inline

Definition at line 115 of file MiddleOutPolygonTriangulator.h.

115{ return {fEnd, fLastPoint}; }

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