23 static std::unique_ptr<BenchmarkTarget>
FromConfig(std::string surfaceConfig,
36 virtual void setup()
const;
45 virtual void warmUp(
int loops)
const {}
50 double time(
int loops)
const;
69 virtual std::map<std::string, std::string>
getKeyValuePairs(std::string cpuName,
70 std::string gpuName)
const;
virtual void setup() const
virtual std::tuple< int, bool > autoTuneLoops() const =0
virtual void warmUp(int loops) const
static std::unique_ptr< BenchmarkTarget > FromConfig(std::string surfaceConfig, Benchmark *benchmark)
BenchmarkTarget(std::unique_ptr< SurfaceManager > surfaceManager, Benchmark *benchmark)
std::unique_ptr< SurfaceManager > fSurfaceManager
virtual std::map< std::string, std::string > getKeyValuePairs(std::string cpuName, std::string gpuName) const
virtual SurfaceManager::CpuOrGpu isCpuOrGpuBound() const
static void printGlobalStats()
virtual Benchmark::Backend getBackend() const =0
virtual void printStats() const
virtual void onAfterDraw() const
virtual void dumpStats(skia_private::TArray< SkString > *keys, skia_private::TArray< double > *values) const
virtual ~BenchmarkTarget()=default
Benchmark * getBenchmark() const
virtual SkCanvas * onBeforeDraw(SkCanvas *canvas) const
double time(int loops) const
SkCanvas * getCanvas() const