Definition at line 49 of file drawatlas.cpp.
◆ DrawAtlasGM()
DrawAtlasGM::DrawAtlasGM |
( |
| ) |
|
|
inline |
◆ getISize()
|
inlineoverrideprotectedvirtual |
◆ getName()
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void DrawAtlasGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 79 of file drawatlas.cpp.
79 {
82
83 const struct {
88
95 }
96 } rec[] = {
97 { 1, 0, 10, 10 },
98 { 2, 0, 110, 10 },
99 { 1, 30, 210, 10 },
100 { 2, -30, 310, 30 },
101 };
102
107
108 for (
int i = 0;
i <
N; ++
i) {
109 rec[
i].apply(&xform[
i]);
111 colors[
i] = 0x80FF0000 + (
i * 40 * 256);
112 }
113
115 paint.setAntiAlias(
true);
117
123 }
static bool apply(Pass *pass, SkRecord *record)
#define SkDegreesToRadians(degrees)
#define SkScalarSin(radians)
#define SkScalarCos(radians)
void translate(SkScalar dx, SkScalar dy)
void drawAtlas(const SkImage *atlas, const SkRSXform xform[], const SkRect tex[], const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions &sampling, const SkRect *cullRect, const SkPaint *paint)
sk_sp< const SkImage > atlas
PODArray< SkColor > colors
SkSamplingOptions sampling
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
The documentation for this class was generated from the following file: