Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrDeferredDisplayList::ProgramIterator Class Reference

#include <GrDeferredDisplayList.h>

Public Member Functions

 ProgramIterator (GrDirectContext *, GrDeferredDisplayList *)
 
 ~ProgramIterator ()
 
bool compile ()
 
bool done () const
 
void next ()
 

Detailed Description

Iterate through the programs required by the DDL.

Definition at line 37 of file GrDeferredDisplayList.h.

Constructor & Destructor Documentation

◆ ProgramIterator()

GrDeferredDisplayList::ProgramIterator::ProgramIterator ( GrDirectContext dContext,
GrDeferredDisplayList ddl 
)

Definition at line 37 of file GrDeferredDisplayList.cpp.

39 : fDContext(dContext)
40 , fProgramData(ddl->programData())
41 , fIndex(0) {
42}

◆ ~ProgramIterator()

GrDeferredDisplayList::ProgramIterator::~ProgramIterator ( )

Definition at line 44 of file GrDeferredDisplayList.cpp.

44{}

Member Function Documentation

◆ compile()

bool GrDeferredDisplayList::ProgramIterator::compile ( )

Definition at line 46 of file GrDeferredDisplayList.cpp.

46 {
47 if (!fDContext || fIndex < 0 || fIndex >= (int) fProgramData.size()) {
48 return false;
49 }
50
51 return fDContext->priv().compile(fProgramData[fIndex].desc(), fProgramData[fIndex].info());
52}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
bool compile(const GrProgramDesc &, const GrProgramInfo &)
GrDirectContextPriv priv()
int size() const
Definition: SkTArray.h:421

◆ done()

bool GrDeferredDisplayList::ProgramIterator::done ( ) const

Definition at line 54 of file GrDeferredDisplayList.cpp.

54 {
55 return fIndex >= (int) fProgramData.size();
56}

◆ next()

void GrDeferredDisplayList::ProgramIterator::next ( )

Definition at line 58 of file GrDeferredDisplayList.cpp.

58 {
59 ++fIndex;
60}

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