Home
last modified time | relevance | path

Searched refs:SkIntToScalar (Results 1 – 25 of 853) sorted by relevance

12345678910>>...35

/external/skqp/samplecode/
DSampleConcavePaths.cpp47 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); in onDrawContent()
48 path.lineTo(SkIntToScalar(80), SkIntToScalar(20)); in onDrawContent()
49 path.lineTo(SkIntToScalar(30), SkIntToScalar(30)); in onDrawContent()
50 path.lineTo(SkIntToScalar(20), SkIntToScalar(80)); in onDrawContent()
58 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); in onDrawContent()
59 path.lineTo(SkIntToScalar(20), SkIntToScalar(80)); in onDrawContent()
60 path.lineTo(SkIntToScalar(30), SkIntToScalar(30)); in onDrawContent()
61 path.lineTo(SkIntToScalar(80), SkIntToScalar(20)); in onDrawContent()
70 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); in onDrawContent()
71 path.lineTo(SkIntToScalar(80), SkIntToScalar(80)); in onDrawContent()
[all …]
DSampleComplexClip.cpp31 path.moveTo(SkIntToScalar(0), SkIntToScalar(50)); in onDrawContent()
32 path.quadTo(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(50), SkIntToScalar(0)); in onDrawContent()
33 path.lineTo(SkIntToScalar(175), SkIntToScalar(0)); in onDrawContent()
34 path.quadTo(SkIntToScalar(200), SkIntToScalar(0), SkIntToScalar(200), SkIntToScalar(25)); in onDrawContent()
35 path.lineTo(SkIntToScalar(200), SkIntToScalar(150)); in onDrawContent()
36 path.quadTo(SkIntToScalar(200), SkIntToScalar(200), SkIntToScalar(150), SkIntToScalar(200)); in onDrawContent()
37 path.lineTo(SkIntToScalar(0), SkIntToScalar(200)); in onDrawContent()
39 path.moveTo(SkIntToScalar(50), SkIntToScalar(50)); in onDrawContent()
40 path.lineTo(SkIntToScalar(150), SkIntToScalar(50)); in onDrawContent()
41 path.lineTo(SkIntToScalar(150), SkIntToScalar(125)); in onDrawContent()
[all …]
DSampleLayers.cpp47 r.set(0, 0, SkIntToScalar(100), SkIntToScalar(100)); in test_fade()
50 r.fBottom = SkIntToScalar(20); in test_fade()
53 r.fTop = SkIntToScalar(80); in test_fade()
54 r.fBottom = SkIntToScalar(100); in test_fade()
60 r.set(0, 0, SkIntToScalar(100), SkIntToScalar(100)); in test_fade()
71 r.set(0, 0, SkIntToScalar(100), SkIntToScalar(100)); in test_fade()
84 m.postTranslate(0, SkIntToScalar(100)); in test_fade()
88 r.set(0, 0, SkIntToScalar(100), SkIntToScalar(20)); in test_fade()
92 r.fTop = SkIntToScalar(80); in test_fade()
93 r.fBottom = SkIntToScalar(100); in test_fade()
[all …]
DSamplePathEffects.cpp30 return SkCornerPathEffect::Make(SkIntToScalar(CORNER_RADIUS)); in make_pe()
34 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in make_pe()
36 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in make_pe()
38 path.offset(SkIntToScalar(-6), 0); in make_pe()
45 auto inner = SkCornerPathEffect::Make(SkIntToScalar(CORNER_RADIUS)); in make_pe()
52 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in make_warp_pe()
54 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in make_warp_pe()
57 path.offset(SkIntToScalar(-6), 0); in make_warp_pe()
61 auto inner = SkCornerPathEffect::Make(SkIntToScalar(CORNER_RADIUS)); in make_warp_pe()
83 SkScalar dist = SkIntToScalar(400); in onOnceBeforeDraw()
[all …]
DSamplePolyToPoly.cpp55 { SkIntToScalar(1), SkIntToScalar(0) }, in PolyToPolyView()
56 { SkIntToScalar(4), SkIntToScalar(7) }, in PolyToPolyView()
57 { SkIntToScalar(10), SkIntToScalar(2) } in PolyToPolyView()
60 { SkIntToScalar(4), SkIntToScalar(2) }, in PolyToPolyView()
61 { SkIntToScalar(45), SkIntToScalar(26) }, in PolyToPolyView()
62 { SkIntToScalar(32), SkIntToScalar(17) } in PolyToPolyView()
86 src[i].set(SkIntToScalar(isrc[2*i+0]), SkIntToScalar(isrc[2*i+1])); in doDraw()
87 dst[i].set(SkIntToScalar(idst[2*i+0]), SkIntToScalar(idst[2*i+1])); in doDraw()
96 const SkScalar D = SkIntToScalar(64); in doDraw()
117 paint.setStrokeWidth(SkIntToScalar(4)); in onDrawContent()
[all …]
DSampleLines.cpp43 canvas->scale(SkIntToScalar(1)/2, SkIntToScalar(1)/2); in drawRings()
46 SkScalar x = SkIntToScalar(10); in drawRings()
47 SkScalar y = SkIntToScalar(10); in drawRings()
48 r.set(x, y, x + SkIntToScalar(100), y + SkIntToScalar(100)); in drawRings()
53 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); in drawRings()
74 SkScalar x = SkIntToScalar(10); in onDrawContent()
75 SkScalar y = SkIntToScalar(10); in onDrawContent()
76 r.set(x, y, x + SkIntToScalar(100), y + SkIntToScalar(100)); in onDrawContent()
82 paint.setStrokeWidth(SkIntToScalar(2)); in onDrawContent()
86 canvas->drawLine(x, y, x + SkIntToScalar(90), y + SkIntToScalar(90), paint); in onDrawContent()
[all …]
/external/skqp/gm/
Dconcavepaths.cpp17 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)) in test_concave()
18 .lineTo(SkIntToScalar(80), SkIntToScalar(20)) in test_concave()
19 .lineTo(SkIntToScalar(30), SkIntToScalar(30)) in test_concave()
20 .lineTo(SkIntToScalar(20), SkIntToScalar(80)); in test_concave()
29 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)) in test_reverse_concave()
30 .lineTo(SkIntToScalar(20), SkIntToScalar(80)) in test_reverse_concave()
31 .lineTo(SkIntToScalar(30), SkIntToScalar(30)) in test_reverse_concave()
32 .lineTo(SkIntToScalar(80), SkIntToScalar(20)); in test_reverse_concave()
42 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)) in test_bowtie()
43 .lineTo(SkIntToScalar(80), SkIntToScalar(80)) in test_bowtie()
[all …]
Dshadows.cpp38 fCirclePath.addCircle(SkIntToScalar(20), SkIntToScalar(20), SkIntToScalar(10) ); in onOnceBeforeDraw()
39 fRect.set(SkIntToScalar(10), SkIntToScalar(10), in onOnceBeforeDraw()
40 SkIntToScalar(30), SkIntToScalar(30)); in onOnceBeforeDraw()
61 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), in onDraw()
62 SkIntToScalar(5), SkIntToScalar(10)), in onDraw()
64 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), in onDraw()
65 SkIntToScalar(5), SkIntToScalar(10)), in onDraw()
67 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)), in onDraw()
68 SkIntToScalar(5), in onDraw()
69 SkIntToScalar(10)), in onDraw()
[all …]
Dimagefiltersscaled.cpp26 #define RESIZE_FACTOR SkIntToScalar(4)
29 SkScalar x = SkIntToScalar(width / 2); in make_gradient_circle()
30 SkScalar y = SkIntToScalar(height / 2); in make_gradient_circle()
81 SkPoint3 pointLocation = SkPoint3::Make(0, 0, SkIntToScalar(10)); in onDraw()
82 SkPoint3 spotLocation = SkPoint3::Make(SkIntToScalar(-10), in onDraw()
83 SkIntToScalar(-10), in onDraw()
84 SkIntToScalar(20)); in onDraw()
85 SkPoint3 spotTarget = SkPoint3::Make(SkIntToScalar(40), SkIntToScalar(40), 0); in onDraw()
87 SkScalar cutoffAngle = SkIntToScalar(15); in onDraw()
88 SkScalar kd = SkIntToScalar(2); in onDraw()
[all …]
Dcircles.cpp57 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)))); in makePaints()
65 SkPoint center = SkPoint::Make(SkIntToScalar(40), SkIntToScalar(40)); in makePaints()
78 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), in makePaints()
79 SkIntToScalar(5), SkIntToScalar(10))); in makePaints()
88 p.setStrokeWidth(SkIntToScalar(3)); in makePaints()
105 p.setStrokeWidth(SkIntToScalar(2)); in makePaints()
113 m.setScale(SkIntToScalar(2), SkIntToScalar(3)); in makeMatrices()
119 m.setScale(SkIntToScalar(2), SkIntToScalar(2)); in makeMatrices()
125 m.setSkew(SkIntToScalar(2), SkIntToScalar(3)); in makeMatrices()
131 m.setSkew(SkIntToScalar(2), SkIntToScalar(2)); in makeMatrices()
[all …]
Dhairlines.cpp33 SkScalar angle = SK_ScalarPI * SkIntToScalar(i) / kNumAngles; in onOnceBeforeDraw()
44 kindaTightQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), -10 * SK_Scalar1, 0); in onOnceBeforeDraw()
50 tightQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), -5 * SK_Scalar1, 0); in onOnceBeforeDraw()
56 tighterQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), -2 * SK_Scalar1, 0); in onOnceBeforeDraw()
63 p.set(-2 * SK_Scalar1 + 3 * SkIntToScalar(102) / 4, SkIntToScalar(75)); in onOnceBeforeDraw()
64 unevenTighterQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), p.fX, p.fY); in onOnceBeforeDraw()
70 reallyTightQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), -1 * SK_Scalar1, 0); in onOnceBeforeDraw()
76 closedQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), 0, 0); in onOnceBeforeDraw()
82 unevenClosedQuad->quadTo(SkIntToScalar(100), SkIntToScalar(100), in onOnceBeforeDraw()
83 SkIntToScalar(75), SkIntToScalar(75)); in onOnceBeforeDraw()
[all …]
Dfilltypespersp.cpp21 const SkScalar radius = SkIntToScalar(45); in makePath()
22 fPath.addCircle(SkIntToScalar(50), SkIntToScalar(50), radius); in makePath()
23 fPath.addCircle(SkIntToScalar(100), SkIntToScalar(100), radius); in makePath()
39 const SkRect r = { 0, 0, SkIntToScalar(150), SkIntToScalar(150) }; in showPath()
42 canvas->translate(SkIntToScalar(x), SkIntToScalar(y)); in showPath()
55 SkPoint center = SkPoint::Make(SkIntToScalar(100), SkIntToScalar(100)); in showFour()
59 SkIntToScalar(100), in showFour()
81 SkPoint center = SkPoint::Make(SkIntToScalar(100), in onDraw()
82 SkIntToScalar(100)); in onDraw()
88 SkIntToScalar(1000), in onDraw()
[all …]
Ddashing.cpp15 SkScalar finalX = SkIntToScalar(600), SkScalar finalY = SkIntToScalar(0), in drawline()
16 SkScalar phase = SkIntToScalar(0), in drawline()
17 SkScalar startX = SkIntToScalar(0), SkScalar startY = SkIntToScalar(0)) { in drawline()
21 SkIntToScalar(on), in drawline()
22 SkIntToScalar(off), in drawline()
35 drawline(canvas, 1, 1, paint, SkIntToScalar(20 * 1000)); in show_giant_dash()
41 drawline(canvas, 2, 2, paint, SkIntToScalar(0)); in show_zero_len_dash()
43 paint.setStrokeWidth(SkIntToScalar(2)); in show_zero_len_dash()
44 canvas->translate(0, SkIntToScalar(20)); in show_zero_len_dash()
45 drawline(canvas, 4, 4, paint, SkIntToScalar(0)); in show_zero_len_dash()
[all …]
Drecordopts.cpp57 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_save_layer_draw_rect_restore_sequence()
81 canvas.drawRect(SkRect::MakeWH(SkIntToScalar(7), SkIntToScalar(7)), p); in draw_save_layer_draw_bitmap_restore_sequence()
85 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_save_layer_draw_bitmap_restore_sequence()
91 canvas->drawBitmap(bitmap, SkIntToScalar(0), SkIntToScalar(0), &drawPaint); in draw_save_layer_draw_bitmap_restore_sequence()
100 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_svg_opacity_and_filter_layer_sequence()
104 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kTestRectSize + 2), in draw_svg_opacity_and_filter_layer_sequence()
105 SkIntToScalar(kTestRectSize + 2)); in draw_svg_opacity_and_filter_layer_sequence()
156 canvas->translate(SkIntToScalar(kTestRectSize) + SkIntToScalar(1), SkIntToScalar(0));
159 drawTestSequence(recorder.beginRecording(SkIntToScalar(kTestRectSize),
160 SkIntToScalar(kTestRectSize)),
[all …]
Dsmallpaths.cpp17 path->moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])); in make_triangle()
18 path->lineTo(SkIntToScalar(gCoord[2]), SkIntToScalar(gCoord[3])); in make_triangle()
19 path->lineTo(SkIntToScalar(gCoord[4]), SkIntToScalar(gCoord[5])); in make_triangle()
21 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_triangle()
22 return SkIntToScalar(30); in make_triangle()
26 SkRect r = { SkIntToScalar(10), SkIntToScalar(10), in make_rect()
27 SkIntToScalar(30), SkIntToScalar(30) }; in make_rect()
29 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_rect()
30 return SkIntToScalar(30); in make_rect()
34 SkRect r = { SkIntToScalar(10), SkIntToScalar(10), in make_oval()
[all …]
Dpathfill.cpp14 SkRect r = { SkIntToScalar(10), SkIntToScalar(10), in make_frame()
15 SkIntToScalar(630), SkIntToScalar(470) }; in make_frame()
16 path->addRoundRect(r, SkIntToScalar(15), SkIntToScalar(15)); in make_frame()
20 paint.setStrokeWidth(SkIntToScalar(5)); in make_frame()
22 return SkIntToScalar(15); in make_frame()
29 path->moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])); in make_triangle()
30 path->lineTo(SkIntToScalar(gCoord[2]), SkIntToScalar(gCoord[3])); in make_triangle()
31 path->lineTo(SkIntToScalar(gCoord[4]), SkIntToScalar(gCoord[5])); in make_triangle()
33 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_triangle()
34 return SkIntToScalar(30); in make_triangle()
[all …]
Dimagefiltersgraph.cpp60 canvas->translate(SkIntToScalar(100), 0); in onDraw()
78 canvas->translate(SkIntToScalar(100), 0); in onDraw()
96 canvas->translate(SkIntToScalar(100), 0); in onDraw()
99 sk_sp<SkImageFilter> blur(SkBlurImageFilter::Make(SkIntToScalar(10), in onDraw()
100 SkIntToScalar(10), in onDraw()
103 SkImageFilter::CropRect cropRect(SkRect::MakeWH(SkIntToScalar(95), SkIntToScalar(100))); in onDraw()
109 canvas->translate(SkIntToScalar(100), 0); in onDraw()
119 SkIntToScalar(-1), SkIntToScalar( -1 ), SkIntToScalar(-1), in onDraw()
120 SkIntToScalar(-1), SkIntToScalar( 7 ), SkIntToScalar(-1), in onDraw()
121 SkIntToScalar(-1), SkIntToScalar( -1 ), SkIntToScalar(-1), in onDraw()
[all …]
/external/skia/samplecode/
DSampleComplexClip.cpp23 path.moveTo(SkIntToScalar(0), SkIntToScalar(50)); in onDrawContent()
24 path.quadTo(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(50), SkIntToScalar(0)); in onDrawContent()
25 path.lineTo(SkIntToScalar(175), SkIntToScalar(0)); in onDrawContent()
26 path.quadTo(SkIntToScalar(200), SkIntToScalar(0), SkIntToScalar(200), SkIntToScalar(25)); in onDrawContent()
27 path.lineTo(SkIntToScalar(200), SkIntToScalar(150)); in onDrawContent()
28 path.quadTo(SkIntToScalar(200), SkIntToScalar(200), SkIntToScalar(150), SkIntToScalar(200)); in onDrawContent()
29 path.lineTo(SkIntToScalar(0), SkIntToScalar(200)); in onDrawContent()
31 path.moveTo(SkIntToScalar(50), SkIntToScalar(50)); in onDrawContent()
32 path.lineTo(SkIntToScalar(150), SkIntToScalar(50)); in onDrawContent()
33 path.lineTo(SkIntToScalar(150), SkIntToScalar(125)); in onDrawContent()
[all …]
DSamplePolyToPoly.cpp55 { SkIntToScalar(1), SkIntToScalar(0) }, in PolyToPolyView()
56 { SkIntToScalar(4), SkIntToScalar(7) }, in PolyToPolyView()
57 { SkIntToScalar(10), SkIntToScalar(2) } in PolyToPolyView()
60 { SkIntToScalar(4), SkIntToScalar(2) }, in PolyToPolyView()
61 { SkIntToScalar(45), SkIntToScalar(26) }, in PolyToPolyView()
62 { SkIntToScalar(32), SkIntToScalar(17) } in PolyToPolyView()
80 src[i].set(SkIntToScalar(isrc[2*i+0]), SkIntToScalar(isrc[2*i+1])); in doDraw()
81 dst[i].set(SkIntToScalar(idst[2*i+0]), SkIntToScalar(idst[2*i+1])); in doDraw()
90 const SkScalar D = SkIntToScalar(64); in doDraw()
111 paint.setStrokeWidth(SkIntToScalar(4)); in onDrawContent()
[all …]
DSamplePathEffects.cpp30 return SkCornerPathEffect::Make(SkIntToScalar(CORNER_RADIUS)); in make_pe()
34 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in make_pe()
36 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in make_pe()
38 path.offset(SkIntToScalar(-6), 0); in make_pe()
45 auto inner = SkCornerPathEffect::Make(SkIntToScalar(CORNER_RADIUS)); in make_pe()
52 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in make_warp_pe()
54 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in make_warp_pe()
57 path.offset(SkIntToScalar(-6), 0); in make_warp_pe()
61 auto inner = SkCornerPathEffect::Make(SkIntToScalar(CORNER_RADIUS)); in make_warp_pe()
83 SkScalar dist = SkIntToScalar(400); in onOnceBeforeDraw()
[all …]
/external/skia/gm/
Dfilltypespersp.cpp33 const SkScalar radius = SkIntToScalar(45); in makePath()
34 fPath = SkPathBuilder().addCircle(SkIntToScalar(50), SkIntToScalar(50), radius) in makePath()
35 .addCircle(SkIntToScalar(100), SkIntToScalar(100), radius) in makePath()
52 const SkRect r = { 0, 0, SkIntToScalar(150), SkIntToScalar(150) }; in showPath()
55 canvas->translate(SkIntToScalar(x), SkIntToScalar(y)); in showPath()
68 SkPoint center = SkPoint::Make(SkIntToScalar(100), SkIntToScalar(100)); in showFour()
72 SkIntToScalar(100), in showFour()
94 SkPoint center = SkPoint::Make(SkIntToScalar(100), in onDraw()
95 SkIntToScalar(100)); in onDraw()
101 SkIntToScalar(1000), in onDraw()
[all …]
Dimagefiltersscaled.cpp35 #define RESIZE_FACTOR SkIntToScalar(4)
38 SkScalar x = SkIntToScalar(width / 2); in make_gradient_circle()
39 SkScalar y = SkIntToScalar(height / 2); in make_gradient_circle()
85 SkPoint3 pointLocation = SkPoint3::Make(0, 0, SkIntToScalar(10)); in onDraw()
86 SkPoint3 spotLocation = SkPoint3::Make(SkIntToScalar(-10), in onDraw()
87 SkIntToScalar(-10), in onDraw()
88 SkIntToScalar(20)); in onDraw()
89 SkPoint3 spotTarget = SkPoint3::Make(SkIntToScalar(40), SkIntToScalar(40), 0); in onDraw()
91 SkScalar cutoffAngle = SkIntToScalar(15); in onDraw()
92 SkScalar kd = SkIntToScalar(2); in onDraw()
[all …]
/external/skia/bench/
DBlurRectBench.cpp16 #define SMALL SkIntToScalar(2)
18 static const SkScalar kMedium = SkIntToScalar(5);
19 #define BIG SkIntToScalar(10)
20 static const SkScalar kMedBig = SkIntToScalar(20);
32 if (fRadius > SkIntToScalar(25)) { in BlurRectBench()
34 } else if (fRadius > SkIntToScalar(5)) { in BlurRectBench()
210 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(1));)
211 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(2));)
212 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(3));)
213 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(4));)
[all …]
/external/skqp/bench/
DBlurRectBench.cpp16 #define SMALL SkIntToScalar(2)
18 static const SkScalar kMedium = SkIntToScalar(5);
19 #define BIG SkIntToScalar(10)
20 static const SkScalar kMedBig = SkIntToScalar(20);
32 if (fRadius > SkIntToScalar(25)) { in BlurRectBench()
34 } else if (fRadius > SkIntToScalar(5)) { in BlurRectBench()
210 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(1));)
211 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(2));)
212 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(3));)
213 DEF_BENCH(return new BlurRectGaussianBench(SkIntToScalar(4));)
[all …]
DHairlinePathBench.cpp39 fPaint.setStrokeWidth(SkIntToScalar(0)); in HairlinePathBench()
63 const SkMatrix m = SkMatrix::MakeScale(SkIntToScalar(3), SkIntToScalar(3)); in onDraw()
101 path->moveTo(SkIntToScalar(points[base1] + xTrans), in makePath()
102 SkIntToScalar(points[base1+1] + yTrans)); in makePath()
103 path->lineTo(SkIntToScalar(points[base2] + xTrans), in makePath()
104 SkIntToScalar(points[base2+1] + yTrans)); in makePath()
105 path->lineTo(SkIntToScalar(points[base3] + xTrans), in makePath()
106 SkIntToScalar(points[base3+1] + yTrans)); in makePath()
133 path->moveTo(SkIntToScalar(points[base1] + xTrans), in makePath()
134 SkIntToScalar(points[base1+1] + yTrans)); in makePath()
[all …]

12345678910>>...35