Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkSL::RP::AutoLoopTarget Class Reference

Public Member Functions

 AutoLoopTarget (Generator *gen, int *targetPtr)
 
 ~AutoLoopTarget ()
 
int labelID ()
 

Detailed Description

Definition at line 650 of file SkSLRasterPipelineCodeGenerator.cpp.

Constructor & Destructor Documentation

◆ AutoLoopTarget()

SkSL::RP::AutoLoopTarget::AutoLoopTarget ( Generator gen,
int targetPtr 
)
inline

Definition at line 652 of file SkSLRasterPipelineCodeGenerator.cpp.

652 : fGenerator(gen), fLoopTargetPtr(targetPtr) {
653 fLabelID = fGenerator->builder()->nextLabelID();
654 fPreviousLoopTarget = *fLoopTargetPtr;
655 *fLoopTargetPtr = fLabelID;
656 }
Definition: gen.py:1

◆ ~AutoLoopTarget()

SkSL::RP::AutoLoopTarget::~AutoLoopTarget ( )
inline

Definition at line 658 of file SkSLRasterPipelineCodeGenerator.cpp.

658 {
659 *fLoopTargetPtr = fPreviousLoopTarget;
660 }

Member Function Documentation

◆ labelID()

int SkSL::RP::AutoLoopTarget::labelID ( )
inline

Definition at line 662 of file SkSLRasterPipelineCodeGenerator.cpp.

662 {
663 return fLabelID;
664 }

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