Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | Friends | List of all members
skgpu::graphite::ClipStack::ElementIter Class Reference

#include <ClipStack_graphite.h>

Public Member Functions

bool operator!= (const ElementIter &o) const
 
const Elementoperator* () const
 
ElementIteroperator++ ()
 
 ElementIter (RawElement::Stack::CRIter::Item item, int r)
 

Public Attributes

RawElement::Stack::CRIter::Item fItem
 
int fRemaining
 

Friends

class ClipStack
 

Detailed Description

Definition at line 343 of file ClipStack_graphite.h.

Constructor & Destructor Documentation

◆ ElementIter()

skgpu::graphite::ClipStack::ElementIter::ElementIter ( RawElement::Stack::CRIter::Item  item,
int  r 
)
inline

Definition at line 361 of file ClipStack_graphite.h.

Member Function Documentation

◆ operator!=()

bool skgpu::graphite::ClipStack::ElementIter::operator!= ( const ElementIter o) const
inline

Definition at line 345 of file ClipStack_graphite.h.

345 {
346 return o.fItem != fItem && o.fRemaining != fRemaining;
347 }

◆ operator*()

const Element & skgpu::graphite::ClipStack::ElementIter::operator* ( ) const
inline

Definition at line 349 of file ClipStack_graphite.h.

349{ return *fItem; }

◆ operator++()

ElementIter & skgpu::graphite::ClipStack::ElementIter::operator++ ( )
inline

Definition at line 351 of file ClipStack_graphite.h.

351 {
352 // Skip over invalidated elements
353 do {
354 fRemaining--;
355 ++fItem;
356 } while(fRemaining > 0 && (*fItem).isInvalid());
357
358 return *this;
359 }

Friends And Related Function Documentation

◆ ClipStack

friend class ClipStack
friend

Definition at line 366 of file ClipStack_graphite.h.

Member Data Documentation

◆ fItem

RawElement::Stack::CRIter::Item skgpu::graphite::ClipStack::ElementIter::fItem

Definition at line 363 of file ClipStack_graphite.h.

◆ fRemaining

int skgpu::graphite::ClipStack::ElementIter::fRemaining

Definition at line 364 of file ClipStack_graphite.h.


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