5#ifndef FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_
6#define FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_
8#include "flutter/display_list/display_list.h"
46 return complexity_score > 5u;
53 static DisplayListNaiveComplexityCalculator* instance_;
static DisplayListComplexityCalculator * GetForBackend(GrBackendApi backend)
virtual void SetComplexityCeiling(unsigned int ceiling)=0
static DisplayListComplexityCalculator * GetForSoftware()
virtual ~DisplayListComplexityCalculator()=default
virtual bool ShouldBeCached(unsigned int complexity_score)=0
virtual unsigned int Compute(const DisplayList *display_list)=0
unsigned int Compute(const DisplayList *display_list) override
bool ShouldBeCached(unsigned int complexity_score) override
void SetComplexityCeiling(unsigned int ceiling) override
static DisplayListComplexityCalculator * GetInstance()
uint32_t op_count(bool nested=false) const