Flutter Engine
The Flutter Engine
|
#include "bench/Benchmark.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/effects/SkGradientShader.h"
#include "src/core/SkBlendModePriv.h"
#include <ctype.h>
Go to the source code of this file.
Classes | |
class | RotRectBench |
Macros | |
#define | DEF_FOR_COLOR_TYPES(aa, blend) |
#define | DEF_FOR_AA_MODES(blend) |
#define | DEF_FOR_PERSP_MODES(aa) |
Functions | |
static SkColor | start_color (ColorType ct) |
static SkColor | advance_color (SkColor old, ColorType ct, int step) |
static SkString | to_lower (const char *str) |
#define DEF_FOR_AA_MODES | ( | blend | ) |
Definition at line 195 of file RotatedRectBench.cpp.
#define DEF_FOR_COLOR_TYPES | ( | aa, | |
blend | |||
) |
Definition at line 188 of file RotatedRectBench.cpp.
#define DEF_FOR_PERSP_MODES | ( | aa | ) |
Definition at line 206 of file RotatedRectBench.cpp.
enum ColorType |
This benchmark tests rendering rotated rectangles. It can optionally apply AA and/or change the paint color between each rect in different ways using the ColorType enum. The xfermode used can be specified as well.
Enumerator | |
---|---|
kConstantOpaque_ColorType | |
kConstantTransparent_ColorType | |
kChangingOpaque_ColorType | |
kChangingTransparent_ColorType | |
kAlternatingOpaqueAndTransparent_ColorType | |
kShaderOpaque_ColorType |
Definition at line 21 of file RotatedRectBench.cpp.
Definition at line 45 of file RotatedRectBench.cpp.
Definition at line 30 of file RotatedRectBench.cpp.
|
static |
Definition at line 64 of file RotatedRectBench.cpp.