Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
flutter::DisplayListComplexityCalculator Class Referenceabstract

#include <dl_complexity.h>

Inheritance diagram for flutter::DisplayListComplexityCalculator:
flutter::DisplayListGLComplexityCalculator flutter::DisplayListMetalComplexityCalculator flutter::DisplayListNaiveComplexityCalculator

Public Member Functions

virtual ~DisplayListComplexityCalculator ()=default
 
virtual unsigned int Compute (const DisplayList *display_list)=0
 
virtual bool ShouldBeCached (unsigned int complexity_score)=0
 
virtual void SetComplexityCeiling (unsigned int ceiling)=0
 

Static Public Member Functions

static DisplayListComplexityCalculatorGetForSoftware ()
 
static DisplayListComplexityCalculatorGetForBackend (GrBackendApi backend)
 

Detailed Description

Definition at line 14 of file dl_complexity.h.

Constructor & Destructor Documentation

◆ ~DisplayListComplexityCalculator()

virtual flutter::DisplayListComplexityCalculator::~DisplayListComplexityCalculator ( )
virtualdefault

Member Function Documentation

◆ Compute()

virtual unsigned int flutter::DisplayListComplexityCalculator::Compute ( const DisplayList display_list)
pure virtual

◆ GetForBackend()

DisplayListComplexityCalculator * flutter::DisplayListComplexityCalculator::GetForBackend ( GrBackendApi  backend)
static

Definition at line 25 of file dl_complexity.cc.

26 {
27 switch (backend) {
29#if !SLIMPELLER
31#else
33#endif // !SLIMPELLER
36 default:
38 }
39}
const char * backend
static DisplayListGLComplexityCalculator * GetInstance()
static DisplayListMetalComplexityCalculator * GetInstance()
static DisplayListComplexityCalculator * GetInstance()

◆ GetForSoftware()

DisplayListComplexityCalculator * flutter::DisplayListComplexityCalculator::GetForSoftware ( )
static

Definition at line 42 of file dl_complexity.cc.

◆ SetComplexityCeiling()

virtual void flutter::DisplayListComplexityCalculator::SetComplexityCeiling ( unsigned int  ceiling)
pure virtual

◆ ShouldBeCached()

virtual bool flutter::DisplayListComplexityCalculator::ShouldBeCached ( unsigned int  complexity_score)
pure virtual

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