Flutter Engine
The Flutter Engine
Classes | Enumerations | Functions
VertBench.cpp File Reference
#include "bench/Benchmark.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkShader.h"
#include "include/core/SkString.h"
#include "include/core/SkVertices.h"
#include "src/base/SkRandom.h"
#include "tools/DecodeUtils.h"
#include "tools/Resources.h"
#include "include/core/SkRSXform.h"

Go to the source code of this file.

Classes

class  VertBench
 
class  AtlasBench
 

Enumerations

enum  VertFlags { kColors_VertFlag = 1 << 0 , kTexture_VertFlag = 1 << 1 , kPersp_VertFlag = 1 << 2 , kBilerp_VertFlag = 1 << 3 }
 
enum  AtlasFlags { kColors_Flag = 1 << 0 , kRotate_Flag = 1 << 1 , kPersp_Flag = 1 << 2 }
 

Functions

static void tiny_persp_effect (SkCanvas *canvas)
 

Enumeration Type Documentation

◆ AtlasFlags

enum AtlasFlags
Enumerator
kColors_Flag 
kRotate_Flag 
kPersp_Flag 

Definition at line 157 of file VertBench.cpp.

157 {
158 kColors_Flag = 1 << 0,
159 kRotate_Flag = 1 << 1,
160 kPersp_Flag = 1 << 2,
161};
@ kColors_Flag
Definition: VertBench.cpp:158
@ kPersp_Flag
Definition: VertBench.cpp:160
@ kRotate_Flag
Definition: VertBench.cpp:159

◆ VertFlags

enum VertFlags
Enumerator
kColors_VertFlag 
kTexture_VertFlag 
kPersp_VertFlag 
kBilerp_VertFlag 

Definition at line 26 of file VertBench.cpp.

26 {
27 kColors_VertFlag = 1 << 0,
28 kTexture_VertFlag = 1 << 1,
29 kPersp_VertFlag = 1 << 2,
30 kBilerp_VertFlag = 1 << 3,
31};
@ kColors_VertFlag
Definition: VertBench.cpp:27
@ kTexture_VertFlag
Definition: VertBench.cpp:28
@ kBilerp_VertFlag
Definition: VertBench.cpp:30
@ kPersp_VertFlag
Definition: VertBench.cpp:29

Function Documentation

◆ tiny_persp_effect()

static void tiny_persp_effect ( SkCanvas canvas)
static

Definition at line 19 of file VertBench.cpp.

19 {
20 SkMatrix m;
21 m.reset();
22 m[7] = 0.000001f;
23 canvas->concat(m);
24}
void concat(const SkMatrix &matrix)
Definition: SkCanvas.cpp:1318