Flutter Engine
The Flutter Engine
Classes | Macros | Enumerations | Variables
HairlinePathBench.cpp File Reference
#include "bench/Benchmark.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPath.h"
#include "include/core/SkShader.h"
#include "include/core/SkString.h"
#include "src/base/SkRandom.h"

Go to the source code of this file.

Classes

class  HairlinePathBench
 
class  LinePathBench
 
class  QuadPathBench
 
class  ConicPathBench
 
class  CubicPathBench
 

Macros

#define FLAGS00   Flags(0)
 
#define FLAGS01   Flags(kBig_Flag)
 
#define FLAGS10   Flags(kAA_Flag)
 
#define FLAGS11   Flags(kBig_Flag | kAA_Flag)
 

Enumerations

enum  Flags {
  kBig_Flag = 1 << 0 , kAA_Flag = 1 << 1 , kStroke_Flag = 1 << 0 , kBig_Flag = 1 << 1 ,
  kNone = 0 , kA = 1 , kB = 2 , kC = 4
}
 

Variables

static const int points []
 
static const int kMaxPathSize = 10
 

Macro Definition Documentation

◆ FLAGS00

#define FLAGS00   Flags(0)

Definition at line 21 of file HairlinePathBench.cpp.

◆ FLAGS01

#define FLAGS01   Flags(kBig_Flag)

Definition at line 22 of file HairlinePathBench.cpp.

◆ FLAGS10

#define FLAGS10   Flags(kAA_Flag)

Definition at line 23 of file HairlinePathBench.cpp.

◆ FLAGS11

#define FLAGS11   Flags(kBig_Flag | kAA_Flag)

Definition at line 24 of file HairlinePathBench.cpp.

Enumeration Type Documentation

◆ Flags

enum Flags
Enumerator
kBig_Flag 
kAA_Flag 
kStroke_Flag 
kBig_Flag 
kNone 
kA 
kB 
kC 

Definition at line 16 of file HairlinePathBench.cpp.

16 {
17 kBig_Flag = 1 << 0,
18 kAA_Flag = 1 << 1
19};

Variable Documentation

◆ kMaxPathSize

const int kMaxPathSize = 10
static

Definition at line 33 of file HairlinePathBench.cpp.

◆ points

const int points[]
static
Initial value:
= {
10, 10, 15, 5, 20, 20,
30, 5, 25, 20, 15, 12,
21, 21, 30, 30, 12, 4,
32, 28, 20, 18, 12, 10
}

Definition at line 26 of file HairlinePathBench.cpp.