Flutter Engine
The Flutter Engine
Classes | Macros | Typedefs
Benchmark.h File Reference
#include "include/core/SkRefCnt.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/private/base/SkTArray.h"
#include "tools/Registry.h"

Go to the source code of this file.

Classes

class  Benchmark
 

Macros

#define DEF_BENCH3(code, N)    static BenchRegistry gBench##N([](void*) -> Benchmark* { code; });
 
#define DEF_BENCH2(code, N)   DEF_BENCH3(code, N)
 
#define DEF_BENCH(code)   DEF_BENCH2(code, __COUNTER__)
 

Typedefs

typedef sk_tools::Registry< Benchmark *(*)(void *)> BenchRegistry
 

Macro Definition Documentation

◆ DEF_BENCH

#define DEF_BENCH (   code )    DEF_BENCH2(code, __COUNTER__)

Definition at line 20 of file Benchmark.h.

◆ DEF_BENCH2

#define DEF_BENCH2 (   code,
  N 
)    DEF_BENCH3(code, N)

Definition at line 19 of file Benchmark.h.

◆ DEF_BENCH3

#define DEF_BENCH3 (   code,
  N 
)     static BenchRegistry gBench##N([](void*) -> Benchmark* { code; });

Definition at line 17 of file Benchmark.h.

Typedef Documentation

◆ BenchRegistry

Definition at line 118 of file Benchmark.h.