Flutter Engine
The Flutter Engine
|
#include "bench/Benchmark.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkPaint.h"
#include "include/core/SkShader.h"
#include "include/core/SkString.h"
#include "include/effects/SkGradientShader.h"
#include "tools/ToolUtils.h"
Go to the source code of this file.
Classes | |
struct | GradData |
class | GradientBench |
class | Gradient2Bench |
Typedefs | |
typedef sk_sp< SkShader >(* | GradMaker) (const SkPoint pts[2], const GradData &data, SkTileMode tm, float scale) |
Enumerations | |
enum | GradType { kLinear_GradType , kRadial_GradType , kSweep_GradType , kConical_GradType , kConicalZero_GradType , kConicalOut_GradType , kConicalOutZero_GradType } |
enum | GeomType { kRect_GeomType , kOval_GeomType } |
Functions | |
static sk_sp< SkShader > | MakeLinear (const SkPoint pts[2], const GradData &data, SkTileMode tm, float scale) |
Ignores scale. More... | |
static sk_sp< SkShader > | MakeRadial (const SkPoint pts[2], const GradData &data, SkTileMode tm, float scale) |
static sk_sp< SkShader > | MakeSweep (const SkPoint pts[2], const GradData &data, SkTileMode tm, float scale) |
Ignores scale. More... | |
static sk_sp< SkShader > | MakeConical (const SkPoint pts[2], const GradData &data, SkTileMode tm, float scale) |
Ignores scale. More... | |
static sk_sp< SkShader > | MakeConicalZeroRad (const SkPoint pts[2], const GradData &data, SkTileMode tm, float scale) |
Ignores scale. More... | |
static sk_sp< SkShader > | MakeConicalOutside (const SkPoint pts[2], const GradData &data, SkTileMode tm, float scale) |
Ignores scale. More... | |
static sk_sp< SkShader > | MakeConicalOutsideZeroRad (const SkPoint pts[2], const GradData &data, SkTileMode tm, float scale) |
Ignores scale. More... | |
static const char * | geomtypename (GeomType gt) |
Variables | |
static const SkColor | gColors [] |
static const SkColor | gShallowColors [] = { 0xFF555555, 0xFF444444 } |
static const SkScalar | gPos [] = {0.25f, 0.75f} |
static const GradData | gGradData [] |
struct { | |
GradMaker fMaker | |
const char * fName | |
} | gGrads [] |
typedef sk_sp< SkShader >(* GradMaker) (const SkPoint pts[2], const GradData &data, SkTileMode tm, float scale) |
Definition at line 129 of file GradientBench.cpp.
enum GeomType |
Enumerator | |
---|---|
kRect_GeomType | |
kOval_GeomType |
Definition at line 155 of file GradientBench.cpp.
enum GradType |
Enumerator | |
---|---|
kLinear_GradType | |
kRadial_GradType | |
kSweep_GradType | |
kConical_GradType | |
kConicalZero_GradType | |
kConicalOut_GradType | |
kConicalOutZero_GradType |
Definition at line 145 of file GradientBench.cpp.
|
static |
Definition at line 160 of file GradientBench.cpp.
|
static |
Ignores scale.
Definition at line 76 of file GradientBench.cpp.
|
static |
|
static |
|
static |
Ignores scale.
Definition at line 89 of file GradientBench.cpp.
|
static |
Ignores scale.
Definition at line 52 of file GradientBench.cpp.
|
static |
Definition at line 57 of file GradientBench.cpp.
|
static |
Ignores scale.
Definition at line 67 of file GradientBench.cpp.
GradMaker fMaker |
Definition at line 133 of file GradientBench.cpp.
const char* fName |
Definition at line 134 of file GradientBench.cpp.
|
static |
Definition at line 25 of file GradientBench.cpp.
|
static |
Definition at line 43 of file GradientBench.cpp.
const struct { ... } gGrads[] |
|
static |
Definition at line 39 of file GradientBench.cpp.
|
static |
Definition at line 38 of file GradientBench.cpp.