Flutter Engine
The Flutter Engine
Classes | Enumerations | Functions
HardStopGradientBench_SpecialHardStops.cpp File Reference
#include "bench/Benchmark.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkPaint.h"
#include "include/core/SkShader.h"
#include "include/core/SkString.h"
#include "include/effects/SkGradientShader.h"

Go to the source code of this file.

Classes

class  HardStopGradientBench_SpecialHardStops
 

Enumerations

enum class  Kind { k001 , k011 , kCentered }
 

Functions

const char * kindstr (Kind k)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(100, 100, Kind::k001);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(200, 200, Kind::k001);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(300, 300, Kind::k001);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(400, 400, Kind::k001);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(500, 500, Kind::k001);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(100, 100, Kind::k011);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(200, 200, Kind::k011);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(300, 300, Kind::k011);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(400, 400, Kind::k011);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(500, 500, Kind::k011);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(100, 100, Kind::kCentered);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(200, 200, Kind::kCentered);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(300, 300, Kind::kCentered);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(400, 400, Kind::kCentered);)
 
 DEF_BENCH (return new HardStopGradientBench_SpecialHardStops(500, 500, Kind::kCentered);)
 

Enumeration Type Documentation

◆ Kind

enum class Kind
strong
Enumerator
k001 
k011 
kCentered 

Definition at line 17 of file HardStopGradientBench_SpecialHardStops.cpp.

17 {
18 k001,
19 k011,
21};
@ kCentered

Function Documentation

◆ DEF_BENCH() [1/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(100, 100, Kind::k001);  )

◆ DEF_BENCH() [2/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(100, 100, Kind::k011);  )

◆ DEF_BENCH() [3/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(100, 100, Kind::kCentered);  )

◆ DEF_BENCH() [4/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(200, 200, Kind::k001);  )

◆ DEF_BENCH() [5/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(200, 200, Kind::k011);  )

◆ DEF_BENCH() [6/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(200, 200, Kind::kCentered);  )

◆ DEF_BENCH() [7/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(300, 300, Kind::k001);  )

◆ DEF_BENCH() [8/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(300, 300, Kind::k011);  )

◆ DEF_BENCH() [9/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(300, 300, Kind::kCentered);  )

◆ DEF_BENCH() [10/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(400, 400, Kind::k001);  )

◆ DEF_BENCH() [11/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(400, 400, Kind::k011);  )

◆ DEF_BENCH() [12/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(400, 400, Kind::kCentered);  )

◆ DEF_BENCH() [13/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(500, 500, Kind::k001);  )

◆ DEF_BENCH() [14/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(500, 500, Kind::k011);  )

◆ DEF_BENCH() [15/15]

DEF_BENCH ( return new HardStopGradientBench_SpecialHardStops(500, 500, Kind::kCentered);  )

◆ kindstr()

const char * kindstr ( Kind  k)

Definition at line 23 of file HardStopGradientBench_SpecialHardStops.cpp.

23 {
24 switch (k) {
25 case Kind::k001:
26 return "001";
27 case Kind::k011:
28 return "011";
29 case Kind::kCentered:
30 return "centered";
31 default:
32 return "Invalid kind";
33 }
34}