Flutter Engine
The Flutter Engine
Classes | Macros | Typedefs | Functions | Variables
SlidesSlide.cpp File Reference
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkVertices.h"
#include "include/effects/SkGradientShader.h"
#include "src/core/SkBlurMask.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkWriteBuffer.h"
#include "tools/EncodeUtils.h"
#include "tools/viewer/ClickHandlerSlide.h"
#include "include/effects/Sk1DPathEffect.h"
#include "include/effects/Sk2DPathEffect.h"
#include "include/effects/SkCornerPathEffect.h"
#include "include/effects/SkDashPathEffect.h"
#include "include/effects/SkDiscretePathEffect.h"
#include "include/core/SkStream.h"
#include "src/base/SkRandom.h"
#include "src/core/SkOSFile.h"
#include "tools/DecodeUtils.h"
#include "include/core/SkTypeface.h"

Go to the source code of this file.

Classes

struct  GradData
 
class  Rec
 
class  SlidesSlide
 

Macros

#define BG_COLOR   0xFFDDDDDD
 

Typedefs

typedef void(* SlideProc) (SkCanvas *)
 
typedef void(* PE_Proc) (SkPaint *)
 
typedef sk_sp< SkShader >(* GradMaker) (const SkPoint pts[2], const GradData &, SkTileMode)
 

Functions

static void compose_pe (SkPaint *paint)
 
static void hair_pe (SkPaint *paint)
 
static void hair2_pe (SkPaint *paint)
 
static void stroke_pe (SkPaint *paint)
 
static void dash_pe (SkPaint *paint)
 
static void scale (SkPath *path, SkScalar scale)
 
static void one_d_pe (SkPaint *paint)
 
static void fill_pe (SkPaint *paint)
 
static void discrete_pe (SkPaint *paint)
 
static sk_sp< SkPathEffectMakeTileEffect ()
 
static void tile_pe (SkPaint *paint)
 
static void patheffect_slide (SkCanvas *canvas)
 
static sk_sp< SkShaderMakeLinear (const SkPoint pts[2], const GradData &data, SkTileMode tm)
 
static sk_sp< SkShaderMakeRadial (const SkPoint pts[2], const GradData &data, SkTileMode tm)
 
static sk_sp< SkShaderMakeSweep (const SkPoint pts[2], const GradData &data, SkTileMode tm)
 
static sk_sp< SkShaderMake2Conical (const SkPoint pts[2], const GradData &data, SkTileMode tm)
 
static void gradient_slide (SkCanvas *canvas)
 
static sk_sp< SkShadermake_shader0 (SkIPoint *size)
 
static sk_sp< SkShadermake_shader1 (const SkIPoint &size)
 
static void make_tris (Rec *rec)
 
static void make_fan (Rec *rec, int texWidth, int texHeight)
 
static void make_strip (Rec *rec, int texWidth, int texHeight)
 
static void mesh_slide (SkCanvas *canvas)
 

Variables

static const int gXY []
 
static const PE_Proc gPE [] = { hair_pe, hair2_pe, stroke_pe, dash_pe, one_d_pe }
 
static const PE_Proc gPE2 [] = { fill_pe, discrete_pe, tile_pe }
 
static const SkColor gColors []
 
static const SkScalar gPos0 [] = { 0, SK_Scalar1 }
 
static const SkScalar gPos1 [] = { SK_Scalar1/4, SK_Scalar1*3/4 }
 
static const SkScalar gPos2 []
 
static const GradData gGradData []
 
static const GradMaker gGradMakers []
 
static const SlideProc gProc []
 

Macro Definition Documentation

◆ BG_COLOR

#define BG_COLOR   0xFFDDDDDD

Definition at line 18 of file SlidesSlide.cpp.

Typedef Documentation

◆ GradMaker

typedef sk_sp< SkShader >(* GradMaker) (const SkPoint pts[2], const GradData &, SkTileMode)

Definition at line 207 of file SlidesSlide.cpp.

◆ PE_Proc

typedef void(* PE_Proc) (SkPaint *)

Definition at line 87 of file SlidesSlide.cpp.

◆ SlideProc

typedef void(* SlideProc) (SkCanvas *)

Definition at line 20 of file SlidesSlide.cpp.

Function Documentation

◆ compose_pe()

static void compose_pe ( SkPaint paint)
static

Definition at line 30 of file SlidesSlide.cpp.

30 {
31 SkPathEffect* pe = paint->getPathEffect();
33 sk_sp<SkPathEffect> compose;
34 if (pe) {
35 compose = SkPathEffect::MakeCompose(sk_ref_sp(pe), corner);
36 } else {
37 compose = corner;
38 }
39 paint->setPathEffect(compose);
40}
sk_sp< T > sk_ref_sp(T *obj)
Definition: SkRefCnt.h:381
static sk_sp< SkPathEffect > Make(SkScalar radius)
static sk_sp< SkPathEffect > MakeCompose(sk_sp< SkPathEffect > outer, sk_sp< SkPathEffect > inner)
const Paint & paint
Definition: color_source.cc:38

◆ dash_pe()

static void dash_pe ( SkPaint paint)
static

Definition at line 56 of file SlidesSlide.cpp.

56 {
57 SkScalar inter[] = { 20, 10, 10, 10 };
58 paint->setStrokeWidth(12);
59 paint->setPathEffect(SkDashPathEffect::Make(inter, std::size(inter), 0));
61}
static void compose_pe(SkPaint *paint)
Definition: SlidesSlide.cpp:30
static sk_sp< SkPathEffect > Make(const SkScalar intervals[], int count, SkScalar phase)
float SkScalar
Definition: extension.cpp:12
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
Definition: switches.h:259

◆ discrete_pe()

static void discrete_pe ( SkPaint paint)
static

Definition at line 95 of file SlidesSlide.cpp.

95 {
96 paint->setPathEffect(SkDiscretePathEffect::Make(10, 4));
97}
static sk_sp< SkPathEffect > Make(SkScalar segLength, SkScalar dev, uint32_t seedAssist=0)

◆ fill_pe()

static void fill_pe ( SkPaint paint)
static

Definition at line 90 of file SlidesSlide.cpp.

90 {
91 paint->setStyle(SkPaint::kFill_Style);
92 paint->setPathEffect(nullptr);
93}
@ kFill_Style
set to fill geometry
Definition: SkPaint.h:193

◆ gradient_slide()

static void gradient_slide ( SkCanvas canvas)
static

Definition at line 212 of file SlidesSlide.cpp.

212 {
213 SkPoint pts[2] = {
214 { 0, 0 },
215 { SkIntToScalar(100), SkIntToScalar(100) }
216 };
218 SkRect r = { 0, 0, SkIntToScalar(100), SkIntToScalar(100) };
220 paint.setAntiAlias(true);
221 paint.setDither(true);
222
223 canvas->translate(SkIntToScalar(20), SkIntToScalar(10));
224 for (size_t i = 0; i < std::size(gGradData); i++) {
225 canvas->save();
226 for (size_t j = 0; j < std::size(gGradMakers); j++) {
227 paint.setShader(gGradMakers[j](pts, gGradData[i], tm));
228 canvas->drawRect(r, paint);
229 canvas->translate(0, SkIntToScalar(120));
230 }
231 canvas->restore();
232 canvas->translate(SkIntToScalar(120), 0);
233 }
234}
#define SkIntToScalar(x)
Definition: SkScalar.h:57
SkTileMode
Definition: SkTileMode.h:13
static const GradData gGradData[]
static const GradMaker gGradMakers[]
void drawRect(const SkRect &rect, const SkPaint &paint)
Definition: SkCanvas.cpp:1673
void restore()
Definition: SkCanvas.cpp:461
void translate(SkScalar dx, SkScalar dy)
Definition: SkCanvas.cpp:1278
int save()
Definition: SkCanvas.cpp:447

◆ hair2_pe()

static void hair2_pe ( SkPaint paint)
static

Definition at line 46 of file SlidesSlide.cpp.

46 {
47 paint->setStrokeWidth(0);
49}

◆ hair_pe()

static void hair_pe ( SkPaint paint)
static

Definition at line 42 of file SlidesSlide.cpp.

42 {
43 paint->setStrokeWidth(0);
44}

◆ Make2Conical()

static sk_sp< SkShader > Make2Conical ( const SkPoint  pts[2],
const GradData data,
SkTileMode  tm 
)
static

Definition at line 196 of file SlidesSlide.cpp.

196 {
197 SkPoint center0, center1;
198 center0.set(SkScalarAve(pts[0].fX, pts[1].fX),
199 SkScalarAve(pts[0].fY, pts[1].fY));
200 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5),
201 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4));
202 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7,
203 center0, (pts[1].fX - pts[0].fX) / 2,
204 data.fColors, data.fPos, data.fCount, tm);
205}
#define SkScalarAve(a, b)
Definition: SkScalar.h:74
static SkScalar SkScalarInterp(SkScalar A, SkScalar B, SkScalar t)
Definition: SkScalar.h:131
static sk_sp< SkShader > MakeTwoPointConical(const SkPoint &start, SkScalar startRadius, const SkPoint &end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
void set(float x, float y)
Definition: SkPoint_impl.h:200
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ make_fan()

static void make_fan ( Rec rec,
int  texWidth,
int  texHeight 
)
static

Definition at line 285 of file SlidesSlide.cpp.

285 {
286 const SkScalar tx = SkIntToScalar(texWidth);
287 const SkScalar ty = SkIntToScalar(texHeight);
288 const int n = 24;
289
291 rec->fCount = n + 2;
292 rec->fVerts = new SkPoint[rec->fCount];
293 rec->fTexs = new SkPoint[rec->fCount];
294
295 SkPoint* v = rec->fVerts;
296 SkPoint* t = rec->fTexs;
297
298 v[0].set(0, 0);
299 t[0].set(0, 0);
300 for (int i = 0; i < n; i++) {
301 SkScalar r = SK_ScalarPI * 2 * i / n,
302 sin = SkScalarSin(r),
303 cos = SkScalarCos(r);
304 v[i+1].set(cos, sin);
305 t[i+1].set(i*tx/n, ty);
306 }
307 v[n+1] = v[1];
308 t[n+1].set(tx, ty);
309
310 SkMatrix m;
311 m.setScale(SkIntToScalar(100), SkIntToScalar(100));
312 m.postTranslate(SkIntToScalar(110), SkIntToScalar(110));
313 m.mapPoints(v, rec->fCount);
314}
#define SkScalarSin(radians)
Definition: SkScalar.h:45
#define SkScalarCos(radians)
Definition: SkScalar.h:46
#define SK_ScalarPI
Definition: SkScalar.h:21
@ kTriangleFan_VertexMode
Definition: SkVertices.h:33

◆ make_shader0()

static sk_sp< SkShader > make_shader0 ( SkIPoint size)
static

Definition at line 243 of file SlidesSlide.cpp.

243 {
244 SkBitmap bm;
245 ToolUtils::GetResourceAsBitmap("images/baby_tux.png", &bm);
246 size->set(bm.width(), bm.height());
248}
int width() const
Definition: SkBitmap.h:149
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
Definition: SkBitmap.cpp:669
int height() const
Definition: SkBitmap.h:158
bool GetResourceAsBitmap(const char *resource, SkBitmap *dst)
Definition: DecodeUtils.h:21
SkSamplingOptions(SkFilterMode::kLinear))

◆ make_shader1()

static sk_sp< SkShader > make_shader1 ( const SkIPoint size)
static

Definition at line 250 of file SlidesSlide.cpp.

250 {
251 SkPoint pts[] = { { 0, 0 },
252 { SkIntToScalar(size.fX), SkIntToScalar(size.fY) } };
254 return SkGradientShader::MakeLinear(pts, colors, nullptr,
256}
uint32_t SkColor
Definition: SkColor.h:37
constexpr SkColor SK_ColorBLUE
Definition: SkColor.h:135
constexpr SkColor SK_ColorRED
Definition: SkColor.h:126
constexpr SkColor SK_ColorGREEN
Definition: SkColor.h:131
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
PODArray< SkColor > colors
Definition: SkRecords.h:276

◆ make_strip()

static void make_strip ( Rec rec,
int  texWidth,
int  texHeight 
)
static

Definition at line 316 of file SlidesSlide.cpp.

316 {
317 const SkScalar tx = SkIntToScalar(texWidth);
318 const SkScalar ty = SkIntToScalar(texHeight);
319 const int n = 24;
320
322 rec->fCount = 2 * (n + 1);
323 rec->fVerts = new SkPoint[rec->fCount];
324 rec->fTexs = new SkPoint[rec->fCount];
325
326 SkPoint* v = rec->fVerts;
327 SkPoint* t = rec->fTexs;
328
329 for (int i = 0; i < n; i++) {
330 SkScalar r = SK_ScalarPI * 2 * i / n,
331 sin = SkScalarSin(r),
332 cos = SkScalarCos(r);
333 v[i*2 + 0].set(cos/2, sin/2);
334 v[i*2 + 1].set(cos, sin);
335
336 t[i*2 + 0].set(tx * i / n, ty);
337 t[i*2 + 1].set(tx * i / n, 0);
338 }
339 v[2*n + 0] = v[0];
340 v[2*n + 1] = v[1];
341
342 t[2*n + 0].set(tx, ty);
343 t[2*n + 1].set(tx, 0);
344
345 SkMatrix m;
346 m.setScale(SkIntToScalar(100), SkIntToScalar(100));
347 m.postTranslate(SkIntToScalar(110), SkIntToScalar(110));
348 m.mapPoints(v, rec->fCount);
349}
@ kTriangleStrip_VertexMode
Definition: SkVertices.h:32

◆ make_tris()

static void make_tris ( Rec rec)
static

Definition at line 269 of file SlidesSlide.cpp.

269 {
270 int n = 10;
271 SkRandom rand;
272
274 rec->fCount = n * 3;
275 rec->fVerts = new SkPoint[rec->fCount];
276
277 for (int i = 0; i < n; i++) {
278 SkPoint* v = &rec->fVerts[i*3];
279 for (int j = 0; j < 3; j++) {
280 v[j].set(rand.nextUScalar1() * 250, rand.nextUScalar1() * 250);
281 }
282 }
283}
SkScalar nextUScalar1()
Definition: SkRandom.h:101
@ kTriangles_VertexMode
Definition: SkVertices.h:31

◆ MakeLinear()

static sk_sp< SkShader > MakeLinear ( const SkPoint  pts[2],
const GradData data,
SkTileMode  tm 
)
static

Definition at line 177 of file SlidesSlide.cpp.

177 {
178 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm);
179}

◆ MakeRadial()

static sk_sp< SkShader > MakeRadial ( const SkPoint  pts[2],
const GradData data,
SkTileMode  tm 
)
static

Definition at line 181 of file SlidesSlide.cpp.

181 {
183 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
184 SkScalarAve(pts[0].fY, pts[1].fY));
186 data.fPos, data.fCount, tm);
187}
static SkScalar center(float pos0, float pos1)
static sk_sp< SkShader > MakeRadial(const SkPoint &center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)

◆ MakeSweep()

static sk_sp< SkShader > MakeSweep ( const SkPoint  pts[2],
const GradData data,
SkTileMode  tm 
)
static

Definition at line 189 of file SlidesSlide.cpp.

189 {
191 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
192 SkScalarAve(pts[0].fY, pts[1].fY));
193 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount);
194}
static sk_sp< SkShader > MakeSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, SkScalar startAngle, SkScalar endAngle, uint32_t flags, const SkMatrix *localMatrix)

◆ MakeTileEffect()

static sk_sp< SkPathEffect > MakeTileEffect ( )
static

Definition at line 99 of file SlidesSlide.cpp.

99 {
100 SkMatrix m;
101 m.setScale(SkIntToScalar(12), SkIntToScalar(12));
102
103 SkPath path;
104 path.addCircle(0, 0, SkIntToScalar(5));
105
107}
static sk_sp< SkPathEffect > Make(const SkMatrix &matrix, const SkPath &path)
Definition: SkPath.h:59
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57

◆ mesh_slide()

static void mesh_slide ( SkCanvas canvas)
static

Definition at line 351 of file SlidesSlide.cpp.

351 {
352 Rec fRecs[3];
354
355 auto fShader0 = make_shader0(&size);
356 auto fShader1 = make_shader1(size);
357
358 make_strip(&fRecs[0], size.fX, size.fY);
359 make_fan(&fRecs[1], size.fX, size.fY);
360 make_tris(&fRecs[2]);
361
363 paint.setDither(true);
364
365 for (size_t i = 0; i < std::size(fRecs); i++) {
366 auto verts = SkVertices::MakeCopy(fRecs[i].fMode, fRecs[i].fCount,
367 fRecs[i].fVerts, fRecs[i].fTexs, nullptr);
368 canvas->save();
369
370 paint.setShader(nullptr);
372
373 canvas->translate(SkIntToScalar(210), 0);
374
375 paint.setShader(fShader0);
377
378 canvas->translate(SkIntToScalar(210), 0);
379
380 paint.setShader(fShader1);
382 canvas->restore();
383
384 canvas->translate(0, SkIntToScalar(250));
385 }
386}
@ kModulate
r = s*d
static sk_sp< SkShader > make_shader0(SkIPoint *size)
static void make_strip(Rec *rec, int texWidth, int texHeight)
static void make_fan(Rec *rec, int texWidth, int texHeight)
static sk_sp< SkShader > make_shader1(const SkIPoint &size)
static void make_tris(Rec *rec)
void drawVertices(const SkVertices *vertices, SkBlendMode mode, const SkPaint &paint)
Definition: SkCanvas.cpp:1720
static sk_sp< SkVertices > MakeCopy(VertexMode mode, int vertexCount, const SkPoint positions[], const SkPoint texs[], const SkColor colors[], int indexCount, const uint16_t indices[])
Definition: SkVertices.cpp:200
SkBlendMode fMode
Definition: xfermodes.cpp:52

◆ one_d_pe()

static void one_d_pe ( SkPaint paint)
static

Definition at line 73 of file SlidesSlide.cpp.

73 {
75 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1]));
76 for (unsigned i = 2; i < std::size(gXY); i += 2)
77 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1]));
78 path.close();
79 path.offset(SkIntToScalar(-6), 0);
80 scale(&path, 1.5f);
81
82 paint->setPathEffect(SkPath1DPathEffect::Make(path, SkIntToScalar(21), 0,
85}
static void scale(SkPath *path, SkScalar scale)
Definition: SlidesSlide.cpp:67
static const int gXY[]
Definition: SlidesSlide.cpp:63
static sk_sp< SkPathEffect > Make(const SkPath &path, SkScalar advance, SkScalar phase, Style)

◆ patheffect_slide()

static void patheffect_slide ( SkCanvas canvas)
static

Definition at line 115 of file SlidesSlide.cpp.

115 {
117 paint.setAntiAlias(true);
119
120 SkPath path;
121 path.moveTo(20, 20);
122 path.lineTo(70, 120);
123 path.lineTo(120, 30);
124 path.lineTo(170, 80);
125 path.lineTo(240, 50);
126
127 size_t i;
128 canvas->save();
129 for (i = 0; i < std::size(gPE); i++) {
130 gPE[i](&paint);
131 canvas->drawPath(path, paint);
132 canvas->translate(0, 75);
133 }
134 canvas->restore();
135
136 path.reset();
137 SkRect r = { 0, 0, 250, 120 };
138 path.addOval(r, SkPathDirection::kCW);
139 r.inset(50, 50);
140 path.addRect(r, SkPathDirection::kCCW);
141
142 canvas->translate(320, 20);
143 for (i = 0; i < std::size(gPE2); i++) {
144 gPE2[i](&paint);
145 canvas->drawPath(path, paint);
146 canvas->translate(0, 160);
147 }
148}
static const PE_Proc gPE2[]
static const PE_Proc gPE[]
Definition: SlidesSlide.cpp:88
void drawPath(const SkPath &path, const SkPaint &paint)
Definition: SkCanvas.cpp:1747
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194
void inset(float dx, float dy)
Definition: SkRect.h:1060

◆ scale()

static void scale ( SkPath path,
SkScalar  scale 
)
static

Definition at line 67 of file SlidesSlide.cpp.

67 {
68 SkMatrix m;
69 m.setScale(scale, scale);
70 path->transform(m);
71}

◆ stroke_pe()

static void stroke_pe ( SkPaint paint)
static

Definition at line 51 of file SlidesSlide.cpp.

51 {
52 paint->setStrokeWidth(12);
54}

◆ tile_pe()

static void tile_pe ( SkPaint paint)
static

Definition at line 109 of file SlidesSlide.cpp.

109 {
110 paint->setPathEffect(MakeTileEffect());
111}
static sk_sp< SkPathEffect > MakeTileEffect()
Definition: SlidesSlide.cpp:99

Variable Documentation

◆ gColors

const SkColor gColors[]
static
Initial value:
= {
}
constexpr SkColor SK_ColorBLACK
Definition: SkColor.h:103
constexpr SkColor SK_ColorWHITE
Definition: SkColor.h:122

Definition at line 160 of file SlidesSlide.cpp.

◆ gGradData

const GradData gGradData[]
static
Initial value:
= {
{ 2, gColors, nullptr },
{ 2, gColors, gPos0 },
{ 2, gColors, gPos1 },
{ 5, gColors, nullptr },
{ 5, gColors, gPos2 }
}
static const SkScalar gPos2[]
static const SkScalar gPos1[]
static const SkScalar gPos0[]
static const SkColor gColors[]

Definition at line 169 of file SlidesSlide.cpp.

◆ gGradMakers

const GradMaker gGradMakers[]
static
Initial value:
= {
}
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const GradData &data, SkTileMode tm)
static sk_sp< SkShader > MakeRadial(const SkPoint pts[2], const GradData &data, SkTileMode tm)
static sk_sp< SkShader > Make2Conical(const SkPoint pts[2], const GradData &data, SkTileMode tm)
static sk_sp< SkShader > MakeSweep(const SkPoint pts[2], const GradData &data, SkTileMode tm)

Definition at line 208 of file SlidesSlide.cpp.

◆ gPE

const PE_Proc gPE[] = { hair_pe, hair2_pe, stroke_pe, dash_pe, one_d_pe }
static

Definition at line 88 of file SlidesSlide.cpp.

◆ gPE2

const PE_Proc gPE2[] = { fill_pe, discrete_pe, tile_pe }
static

Definition at line 113 of file SlidesSlide.cpp.

◆ gPos0

const SkScalar gPos0[] = { 0, SK_Scalar1 }
static

Definition at line 163 of file SlidesSlide.cpp.

◆ gPos1

const SkScalar gPos1[] = { SK_Scalar1/4, SK_Scalar1*3/4 }
static

Definition at line 164 of file SlidesSlide.cpp.

◆ gPos2

const SkScalar gPos2[]
static
Initial value:
= {
}
#define SK_Scalar1
Definition: SkScalar.h:18

Definition at line 165 of file SlidesSlide.cpp.

◆ gProc

const SlideProc gProc[]
static
Initial value:
= {
}
static void mesh_slide(SkCanvas *canvas)
static void gradient_slide(SkCanvas *canvas)
static void patheffect_slide(SkCanvas *canvas)

Definition at line 395 of file SlidesSlide.cpp.

◆ gXY

const int gXY[]
static
Initial value:
= {
4, 0, 0, -4, 8, -4, 12, 0, 8, 4, 0, 4
}

Definition at line 63 of file SlidesSlide.cpp.